/* ======================= Host_InitLocal ====================== */ void Host_InitLocal(void) { Host_InitCommands(); Cvar_RegisterVariable(&host_framerate); Cvar_RegisterVariable(&host_speeds); Cvar_RegisterVariable(&sys_ticrate); Cvar_RegisterVariable(&serverprofile); Cvar_RegisterVariable(&fraglimit); Cvar_RegisterVariable(&timelimit); Cvar_RegisterVariable(&teamplay); Cvar_RegisterVariable(&samelevel); Cvar_RegisterVariable(&noexit); Cvar_RegisterVariable(&skill); Cvar_RegisterVariable(&deathmatch); Cvar_RegisterVariable(&coop); Cvar_RegisterVariable(&pausable); Cvar_RegisterVariable(&temp1); Cvar_RegisterVariable(&developer); if (COM_CheckParm("-developer")) Cvar_SetValue("developer", 1); Host_FindMaxClients(); host_time = 1.0; // so a think at time 0 won't get called }
/* ======================= Host_InitLocal ====================== */ void Host_InitLocal (void) { Host_InitCommands (); Cvar_RegisterVariable (&host_framerate); Cvar_RegisterVariable (&host_speeds); Cvar_RegisterVariable (&sys_ticrate); Cvar_RegisterVariable (&serverprofile); Cvar_RegisterVariable (&fraglimit); Cvar_RegisterVariable (&timelimit); Cvar_RegisterVariable (&teamplay); Cvar_RegisterVariable (&samelevel); Cvar_RegisterVariable (&noexit); Cvar_RegisterVariable (&skill); Cvar_RegisterVariable (&developer); Cvar_RegisterVariable (&deathmatch); Cvar_RegisterVariable (&coop); Cvar_RegisterVariable (&pausable); Cvar_RegisterVariable (&temp1); Cvar_RegisterVariable (&r_fps); // jkrige - fps counter Host_FindMaxClients (); host_time = 1.0; // so a think at time 0 won't get called }
/* ======================= Host_InitLocal ====================== */ void Host_InitLocal (void) { Host_InitCommands (); Cvar_RegisterVariable (&host_framerate); Cvar_RegisterVariable (&sys_ticrate); Cvar_RegisterVariable (&serverprofile); Cvar_RegisterVariable (&fraglimit); Cvar_RegisterVariable (&timelimit); Cvar_RegisterVariable (&teamplay); Cvar_RegisterVariable (&samelevel); Cvar_RegisterVariable (&noexit); Cvar_RegisterVariable (&skill); Cvar_RegisterVariable (&developer); Cvar_RegisterVariable (&deathmatch); Cvar_RegisterVariable (&coop); Cvar_RegisterVariable (&pausable); Cvar_RegisterVariable (&temp1); Cvar_RegisterVariable (&proquake); // JPG - added this so QuakeC can find it Cvar_RegisterVariable (&pq_spam_rate); // JPG - spam protection Cvar_RegisterVariable (&pq_spam_grace); // JPG - spam protection Cvar_RegisterVariable (&pq_tempmute); // JPG 3.20 - temporary muting Cvar_RegisterVariable (&pq_showedict); // JPG 3.11 - feature request from Slot Zero Cvar_RegisterVariable (&pq_dequake); // JPG 1.05 - translate dedicated console output to plain text Cvar_RegisterVariable (&pq_maxfps); // JPG 1.05 Cvar_RegisterVariable (&pq_logbinds); // JPG 3.20 - log player binds Cvar_RegisterVariable (&pq_mute_spam_client); // Slot Zero 3.50-2 Mute spamming client. Cvar_RegisterVariable (&pq_ipmask); // Slot Zero 3.50-2 IP masking. Cvar_RegisterVariable (&mod_protocol); // Slot Zero 3.50-2 RQ Support. Host_FindMaxClients (); Host_InitDeQuake(); // JPG 1.05 - initialize dequake array }
/* ======================= Host_InitLocal ====================== */ void Host_InitLocal (void) { Host_InitCommands (); Cvar_RegisterVariable (&pq_drawfps, NULL); // muff Cvar_RegisterVariable (&pq_maxfps, NULL); // MrG - max_fps Cvar_RegisterVariable (&host_framerate, NULL); Cvar_RegisterVariable (&host_speeds, NULL); Cvar_RegisterVariable (&host_timescale, NULL); //johnfitz #ifdef SUPPORTS_SYSSLEEP Cvar_RegisterVariable (&host_sleep, NULL); #endif Cvar_RegisterVariable (&sys_ticrate, NULL); Cvar_RegisterVariable (&serverprofile, NULL); Cvar_RegisterVariable (&fraglimit, NULL); Cvar_RegisterVariable (&timelimit, NULL); Cvar_RegisterVariable (&teamplay, NULL); Cvar_RegisterVariable (&samelevel, NULL); Cvar_RegisterVariable (&noexit, NULL); Cvar_RegisterVariable (&skill, NULL); Cvar_RegisterVariable (&developer, NULL); Cvar_RegisterVariable (&deathmatch, NULL); Cvar_RegisterVariable (&coop, NULL); Cvar_RegisterVariable (&pausable, NULL); Cvar_RegisterVariable (&temp1, NULL); #ifdef PROQUAKE_EXTENSION Cmd_AddCommand ("writeconfig", Host_WriteConfig_f); // by joe #endif #ifdef PROQUAKE_EXTENSION Cvar_RegisterVariable (&proquake, NULL); // JPG - added this so QuakeC can find it Cvar_RegisterVariable (&pq_spam_rate, NULL); // JPG - spam protection Cvar_RegisterVariable (&pq_spam_grace, NULL); // JPG - spam protection Cvar_RegisterVariable (&pq_connectmute, NULL); // Baker 3.99g: from Rook, protection against repeatedly connecting + spamming Cvar_RegisterVariable (&pq_tempmute, NULL); // JPG 3.20 - temporary muting Cvar_RegisterVariable (&pq_showedict, NULL); // JPG 3.11 - feature request from Slot Zero Cvar_RegisterVariable (&pq_dequake, NULL); // JPG 1.05 - translate dedicated console output to plain text Cvar_RegisterVariable (&pq_maxfps, NULL); // JPG 1.05 Cvar_RegisterVariable (&pq_logbinds, NULL); // JPG 3.20 - log player binds #endif Host_FindMaxClients (); host_time = 1.0; // so a think at time 0 won't get called #ifdef PROQUAKE_EXTENSION last_angle_time = 0.0; // JPG - smooth chasecam Host_InitDeQuake(); // JPG 1.05 - initialize dequake array #endif }
/* ======================= Host_InitLocal ====================== */ void Host_InitLocal (void) { Cmd_AddCommand ("version", Host_Version_f); Host_InitCommands (); Cvar_RegisterVariable (&host_framerate); Cvar_RegisterVariable (&host_speeds); Cvar_RegisterVariable (&host_maxfps); //johnfitz Cvar_RegisterVariable (&host_timescale); //johnfitz Cvar_RegisterVariable (&max_edicts); //johnfitz Cvar_SetCallback (&max_edicts, Max_Edicts_f); Cvar_RegisterVariable (&devstats); //johnfitz Cvar_RegisterVariable (&sys_ticrate); Cvar_RegisterVariable (&sys_throttle); Cvar_RegisterVariable (&serverprofile); Cvar_RegisterVariable (&fraglimit); Cvar_RegisterVariable (&timelimit); Cvar_RegisterVariable (&teamplay); Cvar_SetCallback (&fraglimit, Host_Callback_Notify); Cvar_SetCallback (&timelimit, Host_Callback_Notify); Cvar_SetCallback (&teamplay, Host_Callback_Notify); Cvar_RegisterVariable (&samelevel); Cvar_RegisterVariable (&noexit); Cvar_SetCallback (&noexit, Host_Callback_Notify); Cvar_RegisterVariable (&skill); Cvar_RegisterVariable (&developer); Cvar_RegisterVariable (&coop); Cvar_RegisterVariable (&deathmatch); Cvar_RegisterVariable (&pausable); Cvar_RegisterVariable (&temp1); Host_FindMaxClients (); }
void Host_InitLocal(void) { Host_InitCommands(); CVar::registerCVar(&host_framerate); CVar::registerCVar(&host_speeds); CVar::registerCVar(&sys_ticrate); CVar::registerCVar(&serverprofile); CVar::registerCVar(&fraglimit); CVar::registerCVar(&timelimit); CVar::registerCVar(&teamplay); CVar::registerCVar(&samelevel); CVar::registerCVar(&noexit); CVar::registerCVar(&skill); CVar::registerCVar(&developer); CVar::registerCVar(&deathmatch); CVar::registerCVar(&coop); CVar::registerCVar(&pausable); CVar::registerCVar(&temp1); CVar::registerCVar(&show_fps); CVar::registerCVar(&max_fps); Host_FindMaxClients(); host_time = 1.0; // so a think at time 0 won't get called }