mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-15 01:01:43 +00:00
I must be some kind of idiot.
This commit is contained in:
parent
d294be2054
commit
c517862f7e
2 changed files with 5 additions and 103 deletions
|
@ -128,7 +128,6 @@ FUNCNORETURN static ATTRNORETURN void Command_Quit_f(void);
|
||||||
static void Command_Playintro_f(void);
|
static void Command_Playintro_f(void);
|
||||||
|
|
||||||
static void Command_Displayplayer_f(void);
|
static void Command_Displayplayer_f(void);
|
||||||
static void Command_Tunes_f(void);
|
|
||||||
|
|
||||||
static void Command_ExitLevel_f(void);
|
static void Command_ExitLevel_f(void);
|
||||||
static void Command_Showmap_f(void);
|
static void Command_Showmap_f(void);
|
||||||
|
@ -320,8 +319,6 @@ consvar_t cv_overtime = {"overtime", "Yes", CV_NETVAR, CV_YesNo, NULL, 0, NULL,
|
||||||
consvar_t cv_rollingdemos = {"rollingdemos", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
|
consvar_t cv_rollingdemos = {"rollingdemos", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||||
|
|
||||||
consvar_t cv_timetic = {"timerres", "Normal", CV_SAVE, timetic_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; // use tics in display
|
consvar_t cv_timetic = {"timerres", "Normal", CV_SAVE, timetic_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; // use tics in display
|
||||||
consvar_t cv_resetmusic = {"resetmusic", "No", CV_SAVE, CV_YesNo, NULL, 0, NULL, NULL, 0, 0, NULL};
|
|
||||||
|
|
||||||
static CV_PossibleValue_t pointlimit_cons_t[] = {{0, "MIN"}, {999999990, "MAX"}, {0, NULL}};
|
static CV_PossibleValue_t pointlimit_cons_t[] = {{0, "MIN"}, {999999990, "MAX"}, {0, NULL}};
|
||||||
consvar_t cv_pointlimit = {"pointlimit", "0", CV_NETVAR|CV_CALL|CV_NOINIT, pointlimit_cons_t,
|
consvar_t cv_pointlimit = {"pointlimit", "0", CV_NETVAR|CV_CALL|CV_NOINIT, pointlimit_cons_t,
|
||||||
PointLimit_OnChange, 0, NULL, NULL, 0, 0, NULL};
|
PointLimit_OnChange, 0, NULL, NULL, 0, 0, NULL};
|
||||||
|
@ -585,7 +582,6 @@ void D_RegisterServerCommands(void)
|
||||||
*/
|
*/
|
||||||
void D_RegisterClientCommands(void)
|
void D_RegisterClientCommands(void)
|
||||||
{
|
{
|
||||||
const char *username;
|
|
||||||
INT32 i;
|
INT32 i;
|
||||||
|
|
||||||
for (i = 0; i < MAXSKINCOLORS; i++)
|
for (i = 0; i < MAXSKINCOLORS; i++)
|
||||||
|
@ -642,8 +638,6 @@ void D_RegisterClientCommands(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// register these so it is saved to config
|
// register these so it is saved to config
|
||||||
if ((username = I_GetUserName()))
|
|
||||||
cv_playername.defaultvalue = username;
|
|
||||||
CV_RegisterVar(&cv_playername);
|
CV_RegisterVar(&cv_playername);
|
||||||
CV_RegisterVar(&cv_playercolor);
|
CV_RegisterVar(&cv_playercolor);
|
||||||
CV_RegisterVar(&cv_skin); // r_things.c (skin NAME)
|
CV_RegisterVar(&cv_skin); // r_things.c (skin NAME)
|
||||||
|
@ -674,8 +668,6 @@ void D_RegisterClientCommands(void)
|
||||||
CV_RegisterVar(&cv_ghost_guest);
|
CV_RegisterVar(&cv_ghost_guest);
|
||||||
|
|
||||||
COM_AddCommand("displayplayer", Command_Displayplayer_f);
|
COM_AddCommand("displayplayer", Command_Displayplayer_f);
|
||||||
COM_AddCommand("tunes", Command_Tunes_f);
|
|
||||||
CV_RegisterVar(&cv_resetmusic);
|
|
||||||
|
|
||||||
// FIXME: not to be here.. but needs be done for config loading
|
// FIXME: not to be here.. but needs be done for config loading
|
||||||
CV_RegisterVar(&cv_usegamma);
|
CV_RegisterVar(&cv_usegamma);
|
||||||
|
@ -1374,9 +1366,9 @@ void SendWeaponPref(void)
|
||||||
XBOXSTATIC UINT8 buf[1];
|
XBOXSTATIC UINT8 buf[1];
|
||||||
|
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
if (players[consoleplayer].pflags & PF_FLIPCAM)
|
if (cv_flipcam.value)
|
||||||
buf[0] |= 1;
|
buf[0] |= 1;
|
||||||
if (players[consoleplayer].pflags & PF_ANALOGMODE)
|
if (cv_analog.value)
|
||||||
buf[0] |= 2;
|
buf[0] |= 2;
|
||||||
SendNetXCmd(XD_WEAPONPREF, buf, 1);
|
SendNetXCmd(XD_WEAPONPREF, buf, 1);
|
||||||
}
|
}
|
||||||
|
@ -1386,9 +1378,9 @@ void SendWeaponPref2(void)
|
||||||
XBOXSTATIC UINT8 buf[1];
|
XBOXSTATIC UINT8 buf[1];
|
||||||
|
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
if (players[secondarydisplayplayer].pflags & PF_FLIPCAM)
|
if (cv_flipcam2.value)
|
||||||
buf[0] |= 1;
|
buf[0] |= 1;
|
||||||
if (players[secondarydisplayplayer].pflags & PF_ANALOGMODE)
|
if (cv_analog2.value)
|
||||||
buf[0] |= 2;
|
buf[0] |= 2;
|
||||||
SendNetXCmd2(XD_WEAPONPREF, buf, 1);
|
SendNetXCmd2(XD_WEAPONPREF, buf, 1);
|
||||||
}
|
}
|
||||||
|
@ -3986,74 +3978,6 @@ static void Command_Displayplayer_f(void)
|
||||||
CONS_Printf(M_GetText("Displayplayer is %d\n"), displayplayer);
|
CONS_Printf(M_GetText("Displayplayer is %d\n"), displayplayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Command_Tunes_f(void)
|
|
||||||
{
|
|
||||||
const char *tunearg;
|
|
||||||
UINT16 tunenum, track = 0;
|
|
||||||
const size_t argc = COM_Argc();
|
|
||||||
|
|
||||||
if (argc < 2) //tunes slot ...
|
|
||||||
{
|
|
||||||
CONS_Printf("tunes <name/num> [track] [speed] / <-show> / <-default> / <-none>:\n");
|
|
||||||
CONS_Printf(M_GetText("Play an arbitrary music lump. If a map number is used, 'MAP##M' is played.\n"));
|
|
||||||
CONS_Printf(M_GetText("If the format supports multiple songs, you can specify which one to play.\n\n"));
|
|
||||||
CONS_Printf(M_GetText("* With \"-show\", shows the currently playing tune and track.\n"));
|
|
||||||
CONS_Printf(M_GetText("* With \"-default\", returns to the default music for the map.\n"));
|
|
||||||
CONS_Printf(M_GetText("* With \"-none\", any music playing will be stopped.\n"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
tunearg = COM_Argv(1);
|
|
||||||
tunenum = (UINT16)atoi(tunearg);
|
|
||||||
track = 0;
|
|
||||||
|
|
||||||
if (!strcasecmp(tunearg, "-show"))
|
|
||||||
{
|
|
||||||
CONS_Printf(M_GetText("The current tune is: %s [track %d]\n"),
|
|
||||||
mapmusname, (mapmusflags & MUSIC_TRACKMASK));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!strcasecmp(tunearg, "-none"))
|
|
||||||
{
|
|
||||||
S_StopMusic();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if (!strcasecmp(tunearg, "-default"))
|
|
||||||
{
|
|
||||||
tunearg = mapheaderinfo[gamemap-1]->musname;
|
|
||||||
track = mapheaderinfo[gamemap-1]->mustrack;
|
|
||||||
}
|
|
||||||
else if (!tunearg[2] && toupper(tunearg[0]) >= 'A' && toupper(tunearg[0]) <= 'Z')
|
|
||||||
tunenum = (UINT16)M_MapNumber(tunearg[0], tunearg[1]);
|
|
||||||
|
|
||||||
if (tunenum && tunenum >= 1036)
|
|
||||||
{
|
|
||||||
CONS_Alert(CONS_NOTICE, M_GetText("Valid music slots are 1 to 1035.\n"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!tunenum && strlen(tunearg) > 6) // This is automatic -- just show the error just in case
|
|
||||||
CONS_Alert(CONS_NOTICE, M_GetText("Music name too long - truncated to six characters.\n"));
|
|
||||||
|
|
||||||
if (argc > 2)
|
|
||||||
track = (UINT16)atoi(COM_Argv(2))-1;
|
|
||||||
|
|
||||||
if (tunenum)
|
|
||||||
snprintf(mapmusname, 7, "%sM", G_BuildMapName(tunenum));
|
|
||||||
else
|
|
||||||
strncpy(mapmusname, tunearg, 7);
|
|
||||||
mapmusname[6] = 0;
|
|
||||||
mapmusflags = (track & MUSIC_TRACKMASK);
|
|
||||||
|
|
||||||
S_ChangeMusic(mapmusname, mapmusflags, true);
|
|
||||||
|
|
||||||
if (argc > 3)
|
|
||||||
{
|
|
||||||
float speed = (float)atof(COM_Argv(3));
|
|
||||||
if (speed > 0.0f)
|
|
||||||
S_SpeedMusic(speed);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Quits a game and returns to the title screen.
|
/** Quits a game and returns to the title screen.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -38,7 +38,6 @@ extern consvar_t cv_joyport2;
|
||||||
#endif
|
#endif
|
||||||
extern consvar_t cv_joyscale;
|
extern consvar_t cv_joyscale;
|
||||||
extern consvar_t cv_joyscale2;
|
extern consvar_t cv_joyscale2;
|
||||||
extern consvar_t cv_controlperkey;
|
|
||||||
|
|
||||||
// splitscreen with second mouse
|
// splitscreen with second mouse
|
||||||
extern consvar_t cv_mouse2port;
|
extern consvar_t cv_mouse2port;
|
||||||
|
@ -46,11 +45,6 @@ extern consvar_t cv_usemouse2;
|
||||||
#if (defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON)
|
#if (defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON)
|
||||||
extern consvar_t cv_mouse2opt;
|
extern consvar_t cv_mouse2opt;
|
||||||
#endif
|
#endif
|
||||||
extern consvar_t cv_invertmouse2;
|
|
||||||
extern consvar_t cv_alwaysfreelook2;
|
|
||||||
extern consvar_t cv_mousemove2;
|
|
||||||
extern consvar_t cv_mousesens2;
|
|
||||||
extern consvar_t cv_mouseysens2;
|
|
||||||
|
|
||||||
// normally in p_mobj but the .h is not read
|
// normally in p_mobj but the .h is not read
|
||||||
extern consvar_t cv_itemrespawntime;
|
extern consvar_t cv_itemrespawntime;
|
||||||
|
@ -76,9 +70,6 @@ extern consvar_t cv_autobalance;
|
||||||
extern consvar_t cv_teamscramble;
|
extern consvar_t cv_teamscramble;
|
||||||
extern consvar_t cv_scrambleonchange;
|
extern consvar_t cv_scrambleonchange;
|
||||||
|
|
||||||
extern consvar_t cv_useranalog, cv_useranalog2;
|
|
||||||
extern consvar_t cv_analog, cv_analog2;
|
|
||||||
|
|
||||||
extern consvar_t cv_netstat;
|
extern consvar_t cv_netstat;
|
||||||
#ifdef WALLSPLATS
|
#ifdef WALLSPLATS
|
||||||
extern consvar_t cv_splats;
|
extern consvar_t cv_splats;
|
||||||
|
@ -108,8 +99,6 @@ extern consvar_t cv_startinglives;
|
||||||
// for F_finale.c
|
// for F_finale.c
|
||||||
extern consvar_t cv_rollingdemos;
|
extern consvar_t cv_rollingdemos;
|
||||||
|
|
||||||
extern consvar_t cv_resetmusic;
|
|
||||||
|
|
||||||
extern consvar_t cv_ringslinger, cv_soundtest;
|
extern consvar_t cv_ringslinger, cv_soundtest;
|
||||||
|
|
||||||
extern consvar_t cv_specialrings, cv_powerstones, cv_matchboxes, cv_competitionboxes;
|
extern consvar_t cv_specialrings, cv_powerstones, cv_matchboxes, cv_competitionboxes;
|
||||||
|
@ -120,17 +109,7 @@ extern consvar_t cv_maxping;
|
||||||
|
|
||||||
extern consvar_t cv_skipmapcheck;
|
extern consvar_t cv_skipmapcheck;
|
||||||
|
|
||||||
extern consvar_t cv_sleep, cv_screenshot_option, cv_screenshot_folder;
|
extern consvar_t cv_sleep;
|
||||||
|
|
||||||
extern consvar_t cv_moviemode;
|
|
||||||
|
|
||||||
extern consvar_t cv_zlib_level, cv_zlib_memory, cv_zlib_strategy;
|
|
||||||
|
|
||||||
extern consvar_t cv_zlib_window_bits, cv_zlib_levela, cv_zlib_memorya;
|
|
||||||
|
|
||||||
extern consvar_t cv_zlib_strategya, cv_zlib_window_bitsa;
|
|
||||||
|
|
||||||
extern consvar_t cv_apng_delay;
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
@ -212,7 +191,6 @@ void Command_ExitGame_f(void);
|
||||||
void Command_Retry_f(void);
|
void Command_Retry_f(void);
|
||||||
void D_GameTypeChanged(INT32 lastgametype); // not a real _OnChange function anymore
|
void D_GameTypeChanged(INT32 lastgametype); // not a real _OnChange function anymore
|
||||||
void D_MapChange(INT32 pmapnum, INT32 pgametype, boolean pultmode, boolean presetplayers, INT32 pdelay, boolean pskipprecutscene, boolean pfromlevelselect);
|
void D_MapChange(INT32 pmapnum, INT32 pgametype, boolean pultmode, boolean presetplayers, INT32 pdelay, boolean pskipprecutscene, boolean pfromlevelselect);
|
||||||
void ObjectPlace_OnChange(void);
|
|
||||||
boolean IsPlayerAdmin(INT32 playernum);
|
boolean IsPlayerAdmin(INT32 playernum);
|
||||||
void SetAdminPlayer(INT32 playernum);
|
void SetAdminPlayer(INT32 playernum);
|
||||||
void ClearAdminPlayers(void);
|
void ClearAdminPlayers(void);
|
||||||
|
|
Loading…
Reference in a new issue