mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-21 19:51:18 +00:00
commands now sport descriptions (currently "No Description", but then I'm a
lazy bastard:)
This commit is contained in:
parent
b397f55327
commit
bbac14a7d5
36 changed files with 201 additions and 192 deletions
|
@ -79,7 +79,7 @@ void Cmd_Init_Hash (void);
|
|||
void Cmd_Init (void);
|
||||
void cl_Cmd_Init (void);
|
||||
|
||||
void Cmd_AddCommand (char *cmd_name, xcommand_t function);
|
||||
void Cmd_AddCommand (char *cmd_name, xcommand_t function, char *description);
|
||||
// called by the init functions of other parts of the program to
|
||||
// register commands and functions to call for them.
|
||||
// The cmd_name is referenced later, so it should not be in temp memory
|
||||
|
|
|
@ -842,7 +842,7 @@ CDAudio_Init (void)
|
|||
enabled = false;
|
||||
}
|
||||
|
||||
Cmd_AddCommand ("cd", CD_f);
|
||||
Cmd_AddCommand ("cd", CD_f, "No Description");
|
||||
|
||||
Con_Printf ("CD Audio Initialized\n");
|
||||
|
||||
|
|
|
@ -426,7 +426,7 @@ CDAudio_Init (void)
|
|||
cdValid = false;
|
||||
}
|
||||
|
||||
Cmd_AddCommand ("cd", CD_f);
|
||||
Cmd_AddCommand ("cd", CD_f, "No Description");
|
||||
|
||||
Con_Printf ("CD Audio Initialized\n");
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ CDAudio_Init (void)
|
|||
Con_Printf ("CDAudio_Init: CD contains no audio tracks.\n");
|
||||
cdValid = false;
|
||||
}
|
||||
Cmd_AddCommand ("cd", CD_f);
|
||||
Cmd_AddCommand ("cd", CD_f, "No Description");
|
||||
Con_Printf ("CD Audio Initialized.\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -324,7 +324,7 @@ CDAudio_Init (void)
|
|||
initialized = true;
|
||||
enabled = true;
|
||||
|
||||
Cmd_AddCommand ("cd", CD_f);
|
||||
Cmd_AddCommand ("cd", CD_f, "No Description");
|
||||
|
||||
Con_Printf ("CD Audio Initialized\n");
|
||||
|
||||
|
|
|
@ -482,7 +482,7 @@ CDAudio_Init (void)
|
|||
enabled = false;
|
||||
}
|
||||
|
||||
Cmd_AddCommand ("cd", CD_f);
|
||||
Cmd_AddCommand ("cd", CD_f, "No Description");
|
||||
|
||||
// Con_Printf("CD Audio Initialized\n");
|
||||
|
||||
|
|
|
@ -123,5 +123,5 @@ cl_Cmd_Init (void)
|
|||
//
|
||||
// register our commands
|
||||
//
|
||||
Cmd_AddCommand ("cmd", Cmd_ForwardToServer_f);
|
||||
Cmd_AddCommand ("cmd", Cmd_ForwardToServer_f, "No Description");
|
||||
}
|
||||
|
|
|
@ -707,41 +707,41 @@ CL_InitInput
|
|||
void
|
||||
CL_Input_Init (void)
|
||||
{
|
||||
Cmd_AddCommand ("+moveup", IN_UpDown);
|
||||
Cmd_AddCommand ("-moveup", IN_UpUp);
|
||||
Cmd_AddCommand ("+movedown", IN_DownDown);
|
||||
Cmd_AddCommand ("-movedown", IN_DownUp);
|
||||
Cmd_AddCommand ("+left", IN_LeftDown);
|
||||
Cmd_AddCommand ("-left", IN_LeftUp);
|
||||
Cmd_AddCommand ("+right", IN_RightDown);
|
||||
Cmd_AddCommand ("-right", IN_RightUp);
|
||||
Cmd_AddCommand ("+forward", IN_ForwardDown);
|
||||
Cmd_AddCommand ("-forward", IN_ForwardUp);
|
||||
Cmd_AddCommand ("+back", IN_BackDown);
|
||||
Cmd_AddCommand ("-back", IN_BackUp);
|
||||
Cmd_AddCommand ("+lookup", IN_LookupDown);
|
||||
Cmd_AddCommand ("-lookup", IN_LookupUp);
|
||||
Cmd_AddCommand ("+lookdown", IN_LookdownDown);
|
||||
Cmd_AddCommand ("-lookdown", IN_LookdownUp);
|
||||
Cmd_AddCommand ("+strafe", IN_StrafeDown);
|
||||
Cmd_AddCommand ("-strafe", IN_StrafeUp);
|
||||
Cmd_AddCommand ("+moveleft", IN_MoveleftDown);
|
||||
Cmd_AddCommand ("-moveleft", IN_MoveleftUp);
|
||||
Cmd_AddCommand ("+moveright", IN_MoverightDown);
|
||||
Cmd_AddCommand ("-moveright", IN_MoverightUp);
|
||||
Cmd_AddCommand ("+speed", IN_SpeedDown);
|
||||
Cmd_AddCommand ("-speed", IN_SpeedUp);
|
||||
Cmd_AddCommand ("+attack", IN_AttackDown);
|
||||
Cmd_AddCommand ("-attack", IN_AttackUp);
|
||||
Cmd_AddCommand ("+use", IN_UseDown);
|
||||
Cmd_AddCommand ("-use", IN_UseUp);
|
||||
Cmd_AddCommand ("+jump", IN_JumpDown);
|
||||
Cmd_AddCommand ("-jump", IN_JumpUp);
|
||||
Cmd_AddCommand ("impulse", IN_Impulse);
|
||||
Cmd_AddCommand ("+klook", IN_KLookDown);
|
||||
Cmd_AddCommand ("-klook", IN_KLookUp);
|
||||
Cmd_AddCommand ("+mlook", IN_MLookDown);
|
||||
Cmd_AddCommand ("-mlook", IN_MLookUp);
|
||||
Cmd_AddCommand ("+moveup", IN_UpDown, "No Description");
|
||||
Cmd_AddCommand ("-moveup", IN_UpUp, "No Description");
|
||||
Cmd_AddCommand ("+movedown", IN_DownDown, "No Description");
|
||||
Cmd_AddCommand ("-movedown", IN_DownUp, "No Description");
|
||||
Cmd_AddCommand ("+left", IN_LeftDown, "No Description");
|
||||
Cmd_AddCommand ("-left", IN_LeftUp, "No Description");
|
||||
Cmd_AddCommand ("+right", IN_RightDown, "No Description");
|
||||
Cmd_AddCommand ("-right", IN_RightUp, "No Description");
|
||||
Cmd_AddCommand ("+forward", IN_ForwardDown, "No Description");
|
||||
Cmd_AddCommand ("-forward", IN_ForwardUp, "No Description");
|
||||
Cmd_AddCommand ("+back", IN_BackDown, "No Description");
|
||||
Cmd_AddCommand ("-back", IN_BackUp, "No Description");
|
||||
Cmd_AddCommand ("+lookup", IN_LookupDown, "No Description");
|
||||
Cmd_AddCommand ("-lookup", IN_LookupUp, "No Description");
|
||||
Cmd_AddCommand ("+lookdown", IN_LookdownDown, "No Description");
|
||||
Cmd_AddCommand ("-lookdown", IN_LookdownUp, "No Description");
|
||||
Cmd_AddCommand ("+strafe", IN_StrafeDown, "No Description");
|
||||
Cmd_AddCommand ("-strafe", IN_StrafeUp, "No Description");
|
||||
Cmd_AddCommand ("+moveleft", IN_MoveleftDown, "No Description");
|
||||
Cmd_AddCommand ("-moveleft", IN_MoveleftUp, "No Description");
|
||||
Cmd_AddCommand ("+moveright", IN_MoverightDown, "No Description");
|
||||
Cmd_AddCommand ("-moveright", IN_MoverightUp, "No Description");
|
||||
Cmd_AddCommand ("+speed", IN_SpeedDown, "No Description");
|
||||
Cmd_AddCommand ("-speed", IN_SpeedUp, "No Description");
|
||||
Cmd_AddCommand ("+attack", IN_AttackDown, "No Description");
|
||||
Cmd_AddCommand ("-attack", IN_AttackUp, "No Description");
|
||||
Cmd_AddCommand ("+use", IN_UseDown, "No Description");
|
||||
Cmd_AddCommand ("-use", IN_UseUp, "No Description");
|
||||
Cmd_AddCommand ("+jump", IN_JumpDown, "No Description");
|
||||
Cmd_AddCommand ("-jump", IN_JumpUp, "No Description");
|
||||
Cmd_AddCommand ("impulse", IN_Impulse, "No Description");
|
||||
Cmd_AddCommand ("+klook", IN_KLookDown, "No Description");
|
||||
Cmd_AddCommand ("-klook", IN_KLookUp, "No Description");
|
||||
Cmd_AddCommand ("+mlook", IN_MLookDown, "No Description");
|
||||
Cmd_AddCommand ("-mlook", IN_MLookUp, "No Description");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1241,55 +1241,55 @@ CL_Init (void)
|
|||
// register our commands
|
||||
//
|
||||
|
||||
Cmd_AddCommand ("version", CL_Version_f);
|
||||
Cmd_AddCommand ("version", CL_Version_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("changing", CL_Changing_f);
|
||||
Cmd_AddCommand ("disconnect", CL_Disconnect_f);
|
||||
Cmd_AddCommand ("record", CL_Record_f);
|
||||
Cmd_AddCommand ("rerecord", CL_ReRecord_f);
|
||||
Cmd_AddCommand ("stop", CL_Stop_f);
|
||||
Cmd_AddCommand ("playdemo", CL_PlayDemo_f);
|
||||
Cmd_AddCommand ("timedemo", CL_TimeDemo_f);
|
||||
Cmd_AddCommand ("changing", CL_Changing_f, "No Description");
|
||||
Cmd_AddCommand ("disconnect", CL_Disconnect_f, "No Description");
|
||||
Cmd_AddCommand ("record", CL_Record_f, "No Description");
|
||||
Cmd_AddCommand ("rerecord", CL_ReRecord_f, "No Description");
|
||||
Cmd_AddCommand ("stop", CL_Stop_f, "No Description");
|
||||
Cmd_AddCommand ("playdemo", CL_PlayDemo_f, "No Description");
|
||||
Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("skins", Skin_Skins_f);
|
||||
Cmd_AddCommand ("allskins", Skin_AllSkins_f);
|
||||
Cmd_AddCommand ("skins", Skin_Skins_f, "No Description");
|
||||
Cmd_AddCommand ("allskins", Skin_AllSkins_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("maplist", COM_Maplist_f);
|
||||
Cmd_AddCommand ("maplist", COM_Maplist_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("quit", CL_Quit_f);
|
||||
Cmd_AddCommand ("quit", CL_Quit_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("connect", CL_Connect_f);
|
||||
Cmd_AddCommand ("reconnect", CL_Reconnect_f);
|
||||
Cmd_AddCommand ("connect", CL_Connect_f, "No Description");
|
||||
Cmd_AddCommand ("reconnect", CL_Reconnect_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("rcon", CL_Rcon_f);
|
||||
Cmd_AddCommand ("packet", CL_Packet_f);
|
||||
Cmd_AddCommand ("user", CL_User_f);
|
||||
Cmd_AddCommand ("users", CL_Users_f);
|
||||
Cmd_AddCommand ("rcon", CL_Rcon_f, "No Description");
|
||||
Cmd_AddCommand ("packet", CL_Packet_f, "No Description");
|
||||
Cmd_AddCommand ("user", CL_User_f, "No Description");
|
||||
Cmd_AddCommand ("users", CL_Users_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("setinfo", CL_SetInfo_f);
|
||||
Cmd_AddCommand ("fullinfo", CL_FullInfo_f);
|
||||
Cmd_AddCommand ("fullserverinfo", CL_FullServerinfo_f);
|
||||
Cmd_AddCommand ("setinfo", CL_SetInfo_f, "No Description");
|
||||
Cmd_AddCommand ("fullinfo", CL_FullInfo_f, "No Description");
|
||||
Cmd_AddCommand ("fullserverinfo", CL_FullServerinfo_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("color", CL_Color_f);
|
||||
Cmd_AddCommand ("download", CL_Download_f);
|
||||
Cmd_AddCommand ("color", CL_Color_f, "No Description");
|
||||
Cmd_AddCommand ("download", CL_Download_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("nextul", CL_NextUpload);
|
||||
Cmd_AddCommand ("stopul", CL_StopUpload);
|
||||
Cmd_AddCommand ("nextul", CL_NextUpload, "No Description");
|
||||
Cmd_AddCommand ("stopul", CL_StopUpload, "No Description");
|
||||
|
||||
//
|
||||
// forward to server commands
|
||||
//
|
||||
Cmd_AddCommand ("kill", NULL);
|
||||
Cmd_AddCommand ("pause", NULL);
|
||||
Cmd_AddCommand ("say", NULL);
|
||||
Cmd_AddCommand ("say_team", NULL);
|
||||
Cmd_AddCommand ("serverinfo", NULL);
|
||||
Cmd_AddCommand ("kill", NULL, "No Description");
|
||||
Cmd_AddCommand ("pause", NULL, "No Description");
|
||||
Cmd_AddCommand ("say", NULL, "No Description");
|
||||
Cmd_AddCommand ("say_team", NULL, "No Description");
|
||||
Cmd_AddCommand ("serverinfo", NULL, "No Description");
|
||||
|
||||
//
|
||||
// Windows commands
|
||||
//
|
||||
#ifdef _WIN32
|
||||
Cmd_AddCommand ("windows", CL_Windows_f);
|
||||
Cmd_AddCommand ("windows", CL_Windows_f, "No Description");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
27
source/cmd.c
27
source/cmd.c
|
@ -527,6 +527,7 @@ typedef struct cmd_function_s {
|
|||
struct cmd_function_s *next;
|
||||
char *name;
|
||||
xcommand_t function;
|
||||
char *description;
|
||||
} cmd_function_t;
|
||||
|
||||
|
||||
|
@ -641,7 +642,7 @@ Cmd_TokenizeString (char *text)
|
|||
Cmd_AddCommand
|
||||
*/
|
||||
void
|
||||
Cmd_AddCommand (char *cmd_name, xcommand_t function)
|
||||
Cmd_AddCommand (char *cmd_name, xcommand_t function, char *description)
|
||||
{
|
||||
cmd_function_t *cmd;
|
||||
|
||||
|
@ -664,6 +665,7 @@ Cmd_AddCommand (char *cmd_name, xcommand_t function)
|
|||
cmd = Hunk_Alloc (sizeof (cmd_function_t));
|
||||
cmd->name = cmd_name;
|
||||
cmd->function = function;
|
||||
cmd->description = description;
|
||||
cmd->next = cmd_functions;
|
||||
cmd_functions = cmd;
|
||||
Hash_Add (cmd_hash, cmd);
|
||||
|
@ -879,9 +881,16 @@ Cmd_CmdList_f (void)
|
|||
{
|
||||
cmd_function_t *cmd;
|
||||
int i;
|
||||
int show_description = 0;
|
||||
|
||||
if (Cmd_Argc() > 1)
|
||||
show_description = 1;
|
||||
for (cmd = cmd_functions, i = 0; cmd; cmd = cmd->next, i++) {
|
||||
Con_Printf ("%s\n", cmd->name);
|
||||
if (show_description) {
|
||||
Con_Printf ("%-20s : %s\n", cmd->name, cmd->description);
|
||||
} else {
|
||||
Con_Printf ("%s\n", cmd->name);
|
||||
}
|
||||
}
|
||||
|
||||
Con_Printf ("------------\n%d commands\n", i);
|
||||
|
@ -933,13 +942,13 @@ Cmd_Init (void)
|
|||
//
|
||||
// register our commands
|
||||
//
|
||||
Cmd_AddCommand ("stuffcmds", Cmd_StuffCmds_f);
|
||||
Cmd_AddCommand ("exec", Cmd_Exec_f);
|
||||
Cmd_AddCommand ("echo", Cmd_Echo_f);
|
||||
Cmd_AddCommand ("alias", Cmd_Alias_f);
|
||||
Cmd_AddCommand ("unalias", Cmd_UnAlias_f);
|
||||
Cmd_AddCommand ("wait", Cmd_Wait_f);
|
||||
Cmd_AddCommand ("cmdlist", Cmd_CmdList_f);
|
||||
Cmd_AddCommand ("stuffcmds", Cmd_StuffCmds_f, "No Description");
|
||||
Cmd_AddCommand ("exec", Cmd_Exec_f, "No Description");
|
||||
Cmd_AddCommand ("echo", Cmd_Echo_f, "No Description");
|
||||
Cmd_AddCommand ("alias", Cmd_Alias_f, "No Description");
|
||||
Cmd_AddCommand ("unalias", Cmd_UnAlias_f, "No Description");
|
||||
Cmd_AddCommand ("wait", Cmd_Wait_f, "No Description");
|
||||
Cmd_AddCommand ("cmdlist", Cmd_CmdList_f, "No Description");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ COM_Init (void)
|
|||
LittleFloat = FloatSwap;
|
||||
#endif
|
||||
|
||||
Cmd_AddCommand ("path", COM_Path_f);
|
||||
Cmd_AddCommand ("path", COM_Path_f, "No Description");
|
||||
|
||||
COM_Filesystem_Init ();
|
||||
COM_CheckRegistered ();
|
||||
|
|
|
@ -276,11 +276,11 @@ Con_Init (void)
|
|||
//
|
||||
// register our commands
|
||||
//
|
||||
Cmd_AddCommand ("toggleconsole", Con_ToggleConsole_f);
|
||||
Cmd_AddCommand ("togglechat", Con_ToggleChat_f);
|
||||
Cmd_AddCommand ("messagemode", Con_MessageMode_f);
|
||||
Cmd_AddCommand ("messagemode2", Con_MessageMode2_f);
|
||||
Cmd_AddCommand ("clear", Con_Clear_f);
|
||||
Cmd_AddCommand ("toggleconsole", Con_ToggleConsole_f, "No Description");
|
||||
Cmd_AddCommand ("togglechat", Con_ToggleChat_f, "No Description");
|
||||
Cmd_AddCommand ("messagemode", Con_MessageMode_f, "No Description");
|
||||
Cmd_AddCommand ("messagemode2", Con_MessageMode2_f, "No Description");
|
||||
Cmd_AddCommand ("clear", Con_Clear_f, "No Description");
|
||||
con_initialized = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -471,11 +471,11 @@ Cvar_Init (void)
|
|||
{
|
||||
developer = Cvar_Get ("developer", "0", 0, "set to enable extra debugging information");
|
||||
|
||||
Cmd_AddCommand ("set", Cvar_Set_f);
|
||||
Cmd_AddCommand ("setrom", Cvar_Setrom_f);
|
||||
Cmd_AddCommand ("toggle", Cvar_Toggle_f);
|
||||
Cmd_AddCommand ("help", Cvar_Help_f);
|
||||
Cmd_AddCommand ("cvarlist", Cvar_CvarList_f);
|
||||
Cmd_AddCommand ("set", Cvar_Set_f, "No Description");
|
||||
Cmd_AddCommand ("setrom", Cvar_Setrom_f, "No Description");
|
||||
Cmd_AddCommand ("toggle", Cvar_Toggle_f, "No Description");
|
||||
Cmd_AddCommand ("help", Cvar_Help_f, "No Description");
|
||||
Cmd_AddCommand ("cvarlist", Cvar_CvarList_f, "No Description");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -460,7 +460,7 @@ Draw_Init (void)
|
|||
lighthalf_v[0] = lighthalf_v[1] = lighthalf_v[2] = 255;
|
||||
}
|
||||
|
||||
Cmd_AddCommand ("gl_texturemode", &Draw_TextureMode_f);
|
||||
Cmd_AddCommand ("gl_texturemode", &Draw_TextureMode_f, "No Description");
|
||||
|
||||
// load the console background and the charset
|
||||
// by hand, because we need to write the version
|
||||
|
|
|
@ -188,10 +188,10 @@ R_Init (void)
|
|||
allowskybox = false; // server will decide if this is
|
||||
// allowed --KB
|
||||
|
||||
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f);
|
||||
Cmd_AddCommand ("envmap", R_Envmap_f);
|
||||
Cmd_AddCommand ("pointfile", R_ReadPointFile_f);
|
||||
Cmd_AddCommand ("loadsky", R_LoadSky_f);
|
||||
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f, "No Description");
|
||||
Cmd_AddCommand ("envmap", R_Envmap_f, "No Description");
|
||||
Cmd_AddCommand ("pointfile", R_ReadPointFile_f, "No Description");
|
||||
Cmd_AddCommand ("loadsky", R_LoadSky_f, "No Description");
|
||||
|
||||
R_InitBubble ();
|
||||
|
||||
|
|
|
@ -409,10 +409,10 @@ SCR_Init (void)
|
|||
//
|
||||
// register our commands
|
||||
//
|
||||
Cmd_AddCommand ("screenshot", SCR_ScreenShot_f);
|
||||
Cmd_AddCommand ("snap", SCR_RSShot_f);
|
||||
Cmd_AddCommand ("sizeup", SCR_SizeUp_f);
|
||||
Cmd_AddCommand ("sizedown", SCR_SizeDown_f);
|
||||
Cmd_AddCommand ("screenshot", SCR_ScreenShot_f, "No Description");
|
||||
Cmd_AddCommand ("snap", SCR_RSShot_f, "No Description");
|
||||
Cmd_AddCommand ("sizeup", SCR_SizeUp_f, "No Description");
|
||||
Cmd_AddCommand ("sizedown", SCR_SizeDown_f, "No Description");
|
||||
|
||||
scr_ram = Draw_PicFromWad ("ram");
|
||||
scr_net = Draw_PicFromWad ("net");
|
||||
|
|
|
@ -265,7 +265,7 @@ IN_InitMouse (void)
|
|||
char *mousedev;
|
||||
int mouserate = MOUSE_DEFAULTSAMPLERATE;
|
||||
|
||||
Cmd_AddCommand ("force_centerview", Force_CenterView_f);
|
||||
Cmd_AddCommand ("force_centerview", Force_CenterView_f, "No Description");
|
||||
|
||||
mouse_buttons = 3;
|
||||
|
||||
|
|
|
@ -433,7 +433,7 @@ IN_Init
|
|||
void
|
||||
IN_Init (void)
|
||||
{
|
||||
Cmd_AddCommand ("force_centerview", Force_CenterView_f);
|
||||
Cmd_AddCommand ("force_centerview", Force_CenterView_f, "No Description");
|
||||
|
||||
uiWheelMessage = RegisterWindowMessage ("MSWHEEL_ROLLMSG");
|
||||
|
||||
|
|
|
@ -392,7 +392,7 @@ void
|
|||
JOY_Init (void)
|
||||
{
|
||||
JOY_StartupJoystick();
|
||||
Cmd_AddCommand ("joyadvancedupdate", JOY_AdvancedUpdate_f);
|
||||
Cmd_AddCommand ("joyadvancedupdate", JOY_AdvancedUpdate_f, "No Description");
|
||||
|
||||
// Con_DPrintf ("This system does not have joystick support.\n");
|
||||
}
|
||||
|
|
|
@ -752,9 +752,9 @@ Key_Init (void)
|
|||
//
|
||||
// register our functions
|
||||
//
|
||||
Cmd_AddCommand ("bind", Key_Bind_f);
|
||||
Cmd_AddCommand ("unbind", Key_Unbind_f);
|
||||
Cmd_AddCommand ("unbindall", Key_Unbindall_f);
|
||||
Cmd_AddCommand ("bind", Key_Bind_f, "No Description");
|
||||
Cmd_AddCommand ("unbind", Key_Unbind_f, "No Description");
|
||||
Cmd_AddCommand ("unbindall", Key_Unbindall_f, "No Description");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1539,14 +1539,14 @@ M_Quit_Draw (void)
|
|||
void
|
||||
M_Init (void)
|
||||
{
|
||||
Cmd_AddCommand ("togglemenu", M_ToggleMenu_f);
|
||||
Cmd_AddCommand ("togglemenu", M_ToggleMenu_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("menu_main", M_Menu_Main_f);
|
||||
Cmd_AddCommand ("menu_options", M_Menu_Options_f);
|
||||
Cmd_AddCommand ("menu_keys", M_Menu_Keys_f);
|
||||
Cmd_AddCommand ("menu_video", M_Menu_Video_f);
|
||||
Cmd_AddCommand ("menu_help", M_Menu_Help_f);
|
||||
Cmd_AddCommand ("menu_quit", M_Menu_Quit_f);
|
||||
Cmd_AddCommand ("menu_main", M_Menu_Main_f, "No Description");
|
||||
Cmd_AddCommand ("menu_options", M_Menu_Options_f, "No Description");
|
||||
Cmd_AddCommand ("menu_keys", M_Menu_Keys_f, "No Description");
|
||||
Cmd_AddCommand ("menu_video", M_Menu_Video_f, "No Description");
|
||||
Cmd_AddCommand ("menu_help", M_Menu_Help_f, "No Description");
|
||||
Cmd_AddCommand ("menu_quit", M_Menu_Quit_f, "No Description");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1053,7 +1053,7 @@ COM_Filesystem_Init (void)
|
|||
{
|
||||
int i;
|
||||
|
||||
Cmd_AddCommand ("gamedir", COM_Gamedir_f);
|
||||
Cmd_AddCommand ("gamedir", COM_Gamedir_f, "No Description");
|
||||
|
||||
// start up with basegame->string by default
|
||||
COM_CreateGameDirectory (fs_basegame->string);
|
||||
|
|
|
@ -236,9 +236,9 @@ R_Init (void)
|
|||
|
||||
R_InitTurb ();
|
||||
|
||||
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f);
|
||||
Cmd_AddCommand ("pointfile", R_ReadPointFile_f);
|
||||
Cmd_AddCommand ("loadsky", R_LoadSky_f);
|
||||
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f, "No Description");
|
||||
Cmd_AddCommand ("pointfile", R_ReadPointFile_f, "No Description");
|
||||
Cmd_AddCommand ("loadsky", R_LoadSky_f, "No Description");
|
||||
|
||||
Cvar_SetValue (r_maxedges, (float) NUMSTACKEDGES);
|
||||
Cvar_SetValue (r_maxsurfs, (float) NUMSTACKSURFACES);
|
||||
|
|
|
@ -810,9 +810,9 @@ V_Init
|
|||
void
|
||||
V_Init (void)
|
||||
{
|
||||
Cmd_AddCommand ("v_cshift", V_cshift_f);
|
||||
Cmd_AddCommand ("bf", V_BonusFlash_f);
|
||||
Cmd_AddCommand ("centerview", V_StartPitchDrift);
|
||||
Cmd_AddCommand ("v_cshift", V_cshift_f, "No Description");
|
||||
Cmd_AddCommand ("bf", V_BonusFlash_f, "No Description");
|
||||
Cmd_AddCommand ("centerview", V_StartPitchDrift, "No Description");
|
||||
|
||||
BuildGammaTable (1.0, 1.0); // no gamma yet
|
||||
}
|
||||
|
|
|
@ -246,11 +246,11 @@ Sbar_Init (void)
|
|||
sb_face_invis_invuln = Draw_PicFromWad ("face_inv2");
|
||||
sb_face_quad = Draw_PicFromWad ("face_quad");
|
||||
|
||||
Cmd_AddCommand ("+showscores", Sbar_ShowScores);
|
||||
Cmd_AddCommand ("-showscores", Sbar_DontShowScores);
|
||||
Cmd_AddCommand ("+showscores", Sbar_ShowScores, "No Description");
|
||||
Cmd_AddCommand ("-showscores", Sbar_DontShowScores, "No Description");
|
||||
|
||||
Cmd_AddCommand ("+showteamscores", Sbar_ShowTeamScores);
|
||||
Cmd_AddCommand ("-showteamscores", Sbar_DontShowTeamScores);
|
||||
Cmd_AddCommand ("+showteamscores", Sbar_ShowTeamScores, "No Description");
|
||||
Cmd_AddCommand ("-showteamscores", Sbar_DontShowTeamScores, "No Description");
|
||||
|
||||
sb_sbar = Draw_PicFromWad ("sbar");
|
||||
sb_ibar = Draw_PicFromWad ("ibar");
|
||||
|
|
|
@ -426,10 +426,10 @@ SCR_Init (void)
|
|||
//
|
||||
// register our commands
|
||||
//
|
||||
Cmd_AddCommand ("screenshot", SCR_ScreenShot_f);
|
||||
Cmd_AddCommand ("snap", SCR_RSShot_f);
|
||||
Cmd_AddCommand ("sizeup", SCR_SizeUp_f);
|
||||
Cmd_AddCommand ("sizedown", SCR_SizeDown_f);
|
||||
Cmd_AddCommand ("screenshot", SCR_ScreenShot_f, "No Description");
|
||||
Cmd_AddCommand ("snap", SCR_RSShot_f, "No Description");
|
||||
Cmd_AddCommand ("sizeup", SCR_SizeUp_f, "No Description");
|
||||
Cmd_AddCommand ("sizedown", SCR_SizeDown_f, "No Description");
|
||||
|
||||
scr_ram = Draw_PicFromWad ("ram");
|
||||
scr_net = Draw_PicFromWad ("net");
|
||||
|
|
|
@ -203,11 +203,11 @@ S_Init (void)
|
|||
|
||||
Con_Printf("\nSound Initialization\n");
|
||||
|
||||
Cmd_AddCommand ("play", S_Play);
|
||||
Cmd_AddCommand ("playvol", S_PlayVol);
|
||||
Cmd_AddCommand ("stopsound", S_StopAllSoundsC);
|
||||
Cmd_AddCommand ("soundlist", S_SoundList);
|
||||
Cmd_AddCommand ("soundinfo", S_SoundInfo_f);
|
||||
Cmd_AddCommand ("play", S_Play, "No Description");
|
||||
Cmd_AddCommand ("playvol", S_PlayVol, "No Description");
|
||||
Cmd_AddCommand ("stopsound", S_StopAllSoundsC, "No Description");
|
||||
Cmd_AddCommand ("soundlist", S_SoundList, "No Description");
|
||||
Cmd_AddCommand ("soundinfo", S_SoundInfo_f, "No Description");
|
||||
|
||||
if (COM_CheckParm ("-nosound"))
|
||||
return;
|
||||
|
|
|
@ -849,30 +849,30 @@ SV_InitOperatorCommands (void)
|
|||
MAX_SERVERINFO_STRING);
|
||||
}
|
||||
|
||||
Cmd_AddCommand ("logfile", SV_Logfile_f);
|
||||
Cmd_AddCommand ("fraglogfile", SV_Fraglogfile_f);
|
||||
Cmd_AddCommand ("logfile", SV_Logfile_f, "No Description");
|
||||
Cmd_AddCommand ("fraglogfile", SV_Fraglogfile_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("snap", SV_Snap_f);
|
||||
Cmd_AddCommand ("snapall", SV_SnapAll_f);
|
||||
Cmd_AddCommand ("kick", SV_Kick_f);
|
||||
Cmd_AddCommand ("status", SV_Status_f);
|
||||
Cmd_AddCommand ("snap", SV_Snap_f, "No Description");
|
||||
Cmd_AddCommand ("snapall", SV_SnapAll_f, "No Description");
|
||||
Cmd_AddCommand ("kick", SV_Kick_f, "No Description");
|
||||
Cmd_AddCommand ("status", SV_Status_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("map", SV_Map_f);
|
||||
Cmd_AddCommand ("setmaster", SV_SetMaster_f);
|
||||
Cmd_AddCommand ("map", SV_Map_f, "No Description");
|
||||
Cmd_AddCommand ("setmaster", SV_SetMaster_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("say", SV_ConSay_f);
|
||||
Cmd_AddCommand ("heartbeat", SV_Heartbeat_f);
|
||||
Cmd_AddCommand ("quit", SV_Quit_f);
|
||||
Cmd_AddCommand ("god", SV_God_f);
|
||||
Cmd_AddCommand ("give", SV_Give_f);
|
||||
Cmd_AddCommand ("noclip", SV_Noclip_f);
|
||||
Cmd_AddCommand ("serverinfo", SV_Serverinfo_f);
|
||||
Cmd_AddCommand ("localinfo", SV_Localinfo_f);
|
||||
Cmd_AddCommand ("user", SV_User_f);
|
||||
Cmd_AddCommand ("sv_gamedir", SV_Gamedir);
|
||||
Cmd_AddCommand ("floodprot", SV_Floodprot_f);
|
||||
Cmd_AddCommand ("floodprotmsg", SV_Floodprotmsg_f);
|
||||
Cmd_AddCommand ("maplist", COM_Maplist_f);
|
||||
Cmd_AddCommand ("say", SV_ConSay_f, "No Description");
|
||||
Cmd_AddCommand ("heartbeat", SV_Heartbeat_f, "No Description");
|
||||
Cmd_AddCommand ("quit", SV_Quit_f, "No Description");
|
||||
Cmd_AddCommand ("god", SV_God_f, "No Description");
|
||||
Cmd_AddCommand ("give", SV_Give_f, "No Description");
|
||||
Cmd_AddCommand ("noclip", SV_Noclip_f, "No Description");
|
||||
Cmd_AddCommand ("serverinfo", SV_Serverinfo_f, "No Description");
|
||||
Cmd_AddCommand ("localinfo", SV_Localinfo_f, "No Description");
|
||||
Cmd_AddCommand ("user", SV_User_f, "No Description");
|
||||
Cmd_AddCommand ("sv_gamedir", SV_Gamedir, "No Description");
|
||||
Cmd_AddCommand ("floodprot", SV_Floodprot_f, "No Description");
|
||||
Cmd_AddCommand ("floodprotmsg", SV_Floodprotmsg_f, "No Description");
|
||||
Cmd_AddCommand ("maplist", COM_Maplist_f, "No Description");
|
||||
|
||||
cl_warncmd =
|
||||
Cvar_Get ("cl_warncmd", "1", CVAR_NONE, "Toggles the display of error messages for unknown commands");
|
||||
|
|
|
@ -1604,13 +1604,13 @@ SV_InitLocal (void)
|
|||
pausable = Cvar_Get ("pausable", "1", CVAR_NONE, "Toggle if server can be paused 1 is on, 0 is off");
|
||||
|
||||
// DoS protection
|
||||
Cmd_AddCommand ("netdosexpire", SV_netDoSexpire_f);
|
||||
Cmd_AddCommand ("netdosvalues", SV_netDoSvalues_f);
|
||||
Cmd_AddCommand ("netdosexpire", SV_netDoSexpire_f, "No Description");
|
||||
Cmd_AddCommand ("netdosvalues", SV_netDoSvalues_f, "No Description");
|
||||
|
||||
Cmd_AddCommand ("addip", SV_AddIP_f);
|
||||
Cmd_AddCommand ("removeip", SV_RemoveIP_f);
|
||||
Cmd_AddCommand ("listip", SV_ListIP_f);
|
||||
Cmd_AddCommand ("writeip", SV_WriteIP_f);
|
||||
Cmd_AddCommand ("addip", SV_AddIP_f, "No Description");
|
||||
Cmd_AddCommand ("removeip", SV_RemoveIP_f, "No Description");
|
||||
Cmd_AddCommand ("listip", SV_ListIP_f, "No Description");
|
||||
Cmd_AddCommand ("writeip", SV_WriteIP_f, "No Description");
|
||||
|
||||
for (i = 0; i < MAX_MODELS; i++)
|
||||
snprintf (localmodels[i], sizeof (localmodels[i]), "*%i", i);
|
||||
|
|
|
@ -141,10 +141,10 @@ SV_Progs_Init (void)
|
|||
sv_progs.unlink = SV_UnlinkEdict;
|
||||
sv_progs.flush = SV_FlushSignon;
|
||||
|
||||
Cmd_AddCommand ("edict", ED_PrintEdict_f);
|
||||
Cmd_AddCommand ("edicts", ED_PrintEdicts_f);
|
||||
Cmd_AddCommand ("edictcount", ED_Count_f);
|
||||
Cmd_AddCommand ("profile", PR_Profile_f);
|
||||
Cmd_AddCommand ("edict", ED_PrintEdict_f, "No Description");
|
||||
Cmd_AddCommand ("edicts", ED_PrintEdicts_f, "No Description");
|
||||
Cmd_AddCommand ("edictcount", ED_Count_f, "No Description");
|
||||
Cmd_AddCommand ("profile", PR_Profile_f, "No Description");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -582,12 +582,12 @@ locs_moveloc (void)
|
|||
void
|
||||
Locs_Init (void)
|
||||
{
|
||||
Cmd_AddCommand ("markloc", locs_markloc);
|
||||
Cmd_AddCommand ("dumploc", locs_dumploc);
|
||||
Cmd_AddCommand ("markloc", locs_markloc, "No Description");
|
||||
Cmd_AddCommand ("dumploc", locs_dumploc, "No Description");
|
||||
#ifdef HAVE_ZLIB
|
||||
Cmd_AddCommand ("zdumploc", locs_dumploc);
|
||||
Cmd_AddCommand ("zdumploc", locs_dumploc, "No Description");
|
||||
#endif
|
||||
Cmd_AddCommand ("delloc",locs_delloc);
|
||||
Cmd_AddCommand ("editloc",locs_editloc);
|
||||
Cmd_AddCommand ("moveloc",locs_moveloc);
|
||||
Cmd_AddCommand ("delloc",locs_delloc, "No Description");
|
||||
Cmd_AddCommand ("editloc",locs_editloc, "No Description");
|
||||
Cmd_AddCommand ("moveloc",locs_moveloc, "No Description");
|
||||
}
|
||||
|
|
|
@ -2014,15 +2014,15 @@ VID_Init (unsigned char *palette)
|
|||
int basenummodes;
|
||||
byte *ptmp;
|
||||
|
||||
Cmd_AddCommand ("vid_testmode", VID_TestMode_f);
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f);
|
||||
Cmd_AddCommand ("vid_describecurrentmode", VID_DescribeCurrentMode_f);
|
||||
Cmd_AddCommand ("vid_describemode", VID_DescribeMode_f);
|
||||
Cmd_AddCommand ("vid_describemodes", VID_DescribeModes_f);
|
||||
Cmd_AddCommand ("vid_forcemode", VID_ForceMode_f);
|
||||
Cmd_AddCommand ("vid_windowed", VID_Windowed_f);
|
||||
Cmd_AddCommand ("vid_fullscreen", VID_Fullscreen_f);
|
||||
Cmd_AddCommand ("vid_minimize", VID_Minimize_f);
|
||||
Cmd_AddCommand ("vid_testmode", VID_TestMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describecurrentmode", VID_DescribeCurrentMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describemode", VID_DescribeMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describemodes", VID_DescribeModes_f, "No Description");
|
||||
Cmd_AddCommand ("vid_forcemode", VID_ForceMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_windowed", VID_Windowed_f, "No Description");
|
||||
Cmd_AddCommand ("vid_fullscreen", VID_Fullscreen_f, "No Description");
|
||||
Cmd_AddCommand ("vid_minimize", VID_Minimize_f, "No Description");
|
||||
|
||||
if (COM_CheckParm ("-dibonly"))
|
||||
dibonly = true;
|
||||
|
|
|
@ -552,7 +552,7 @@ VID_Init (unsigned char *palette)
|
|||
return;
|
||||
|
||||
#if 0
|
||||
Cmd_AddCommand ("gamma", VID_Gamma_f);
|
||||
Cmd_AddCommand ("gamma", VID_Gamma_f, "No Description");
|
||||
#endif
|
||||
|
||||
if (UseDisplay) {
|
||||
|
@ -571,10 +571,10 @@ VID_Init (unsigned char *palette)
|
|||
|
||||
VID_InitModes ();
|
||||
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f);
|
||||
Cmd_AddCommand ("vid_describemode", VID_DescribeMode_f);
|
||||
Cmd_AddCommand ("vid_describemodes", VID_DescribeModes_f);
|
||||
Cmd_AddCommand ("vid_debug", VID_Debug_f);
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describemode", VID_DescribeMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describemodes", VID_DescribeModes_f, "No Description");
|
||||
Cmd_AddCommand ("vid_debug", VID_Debug_f, "No Description");
|
||||
|
||||
/* Interpret command-line params */
|
||||
w = h = d = 0;
|
||||
|
|
|
@ -1464,10 +1464,10 @@ VID_Init (unsigned char *palette)
|
|||
|
||||
memset (&devmode, 0, sizeof (devmode));
|
||||
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f);
|
||||
Cmd_AddCommand ("vid_describecurrentmode", VID_DescribeCurrentMode_f);
|
||||
Cmd_AddCommand ("vid_describemode", VID_DescribeMode_f);
|
||||
Cmd_AddCommand ("vid_describemodes", VID_DescribeModes_f);
|
||||
Cmd_AddCommand ("vid_nummodes", VID_NumModes_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describecurrentmode", VID_DescribeCurrentMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describemode", VID_DescribeMode_f, "No Description");
|
||||
Cmd_AddCommand ("vid_describemodes", VID_DescribeModes_f, "No Description");
|
||||
|
||||
hIcon = LoadIcon (global_hInstance, MAKEINTRESOURCE (IDI_ICON1));
|
||||
|
||||
|
|
|
@ -507,7 +507,7 @@ VID_Init (unsigned char *palette)
|
|||
VID_GetWindowSize (320, 200);
|
||||
|
||||
// plugin_load ("in_x11.so");
|
||||
// Cmd_AddCommand ("gamma", VID_Gamma_f);
|
||||
// Cmd_AddCommand ("gamma", VID_Gamma_f, "No Description");
|
||||
for (i = 0; i < 256; i++)
|
||||
vid_gamma[i] = i;
|
||||
|
||||
|
|
|
@ -617,7 +617,7 @@ Cache_Init (void)
|
|||
cache_head.next = cache_head.prev = &cache_head;
|
||||
cache_head.lru_next = cache_head.lru_prev = &cache_head;
|
||||
|
||||
Cmd_AddCommand ("flush", Cache_Flush);
|
||||
Cmd_AddCommand ("flush", Cache_Flush, "No Description");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue