Cvar_SetValueQuick(&deathmatch, 1);
}
+/*
+==================
+Host_Quit_f
+==================
+*/
+void Host_Quit_f(cmd_state_t *cmd)
+{
+ if(host.state == host_shutdown)
+ Con_Printf("shutting down already!\n");
+ else
+ host.state = host_shutdown;
+}
+
+static void Host_Version_f(cmd_state_t *cmd)
+{
+ Con_Printf("Version: %s build %s\n", gamename, buildstring);
+}
+
/*
=======================
Host_InitLocal
extern cvar_t r_texture_jpeg_fastpicmip;
static void Host_InitLocal (void)
{
+ Cmd_AddCommand(CMD_SHARED, "quit", Host_Quit_f, "quit the game");
+ Cmd_AddCommand(CMD_SHARED, "version", Host_Version_f, "print engine version");
Cmd_AddCommand(CMD_SHARED, "saveconfig", Host_SaveConfig_f, "save settings to config.cfg (or a specified filename) immediately (also automatic when quitting)");
Cmd_AddCommand(CMD_SHARED, "loadconfig", Host_LoadConfig_f, "reset everything and reload configs");
Cvar_RegisterVariable (&cl_maxphysicsframesperserverframe);
cvar_t noaim = {CVAR_CLIENT | CVAR_USERINFO | CVAR_SAVE, "noaim", "1", "QW option to disable vertical autoaim"};
cvar_t r_fixtrans_auto = {CVAR_CLIENT, "r_fixtrans_auto", "0", "automatically fixtrans textures (when set to 2, it also saves the fixed versions to a fixtrans directory)"};
-extern cvar_t developer_entityparsing;
-
-/*
-==================
-Host_Quit_f
-==================
-*/
-
-void Host_Quit_f(cmd_state_t *cmd)
-{
- if(host.state == host_shutdown)
- Con_Printf("shutting down already!\n");
- else
- host.state = host_shutdown;
-}
-
/*
==================
CL_Reconnect_f
}
}
-static void Host_Version_f(cmd_state_t *cmd)
-{
- Con_Printf("Version: %s build %s\n", gamename, buildstring);
-}
-
/*
==================
CL_Color_f
Cvar_RegisterVariable(&skin);
Cvar_RegisterVariable(&noaim);
- // client commands - this includes server commands because the client can host a server, so they must exist
- Cmd_AddCommand(CMD_SHARED, "quit", Host_Quit_f, "quit the game");
- Cmd_AddCommand(CMD_SHARED, "version", Host_Version_f, "print engine version");
-
Cmd_AddCommand(CMD_CLIENT | CMD_SERVER_FROM_CLIENT, "name", CL_Name_f, "change your player name");
Cmd_AddCommand(CMD_CLIENT | CMD_SERVER_FROM_CLIENT, "color", CL_Color_f, "change your player shirt and pants colors");
Cmd_AddCommand(CMD_CLIENT | CMD_SERVER_FROM_CLIENT, "rate", CL_Rate_f, "change your network connection speed");