Added sv_nailcompression cvar.

This commit is contained in:
Anton E. Gavrilov 2000-05-05 15:58:46 +00:00
parent 3b1140ac06
commit 079daee12a
2 changed files with 10 additions and 4 deletions

View file

@ -108,8 +108,12 @@ int numnails;
extern int sv_nailmodel, sv_supernailmodel, sv_playermodel;
extern cvar_t *sv_nailcompression;
qboolean SV_AddNailUpdate (edict_t *ent)
{
if (!sv_nailcompression->value)
return false;
if (ent->v.modelindex != sv_nailmodel
&& ent->v.modelindex != sv_supernailmodel)
return false;

View file

@ -78,6 +78,8 @@ cvar_t *pausable;
cvar_t *sv_fraglogdir;
cvar_t *sv_nailcompression;
cvar_t *sv_timekick; // Time cheat protection
cvar_t *sv_timekick_fuzz; // Timecheat sensitivity
cvar_t *sv_timekick_interval; // Timecheat check interval
@ -1360,10 +1362,8 @@ void SV_InitLocal (void)
sv_mintic = Cvar_Get ("sv_mintic","0.03",0,"None");
sv_maxtic = Cvar_Get ("sv_maxtic","0.1",0,"None");
coop = Cvar_Get ("coop","0",CVAR_USERINFO|CVAR_SERVERINFO,
"None");
skill = Cvar_Get ("skill","1",CVAR_USERINFO|CVAR_SERVERINFO,
"Current skill setting");
coop = Cvar_Get ("coop","0",0, "None");
skill = Cvar_Get ("skill","1",0, "Current skill level");
deathmatch = Cvar_Get ("deathmatch","1",CVAR_USERINFO|CVAR_SERVERINFO,
"None");
teamplay = Cvar_Get ("teamplay","0",CVAR_USERINFO|CVAR_SERVERINFO,
@ -1422,6 +1422,8 @@ void SV_InitLocal (void)
sv_fraglogdir = Cvar_Get ("fraglogdir","",0,"Where to store fraglog files");
sv_nailcompression = Cvar_Get ("sv_nailcompression","1",0,"Toggle QW nail compression (disable for better Qizmo compression)");
Cmd_AddCommand ("addip", SV_AddIP_f);
Cmd_AddCommand ("removeip", SV_RemoveIP_f);
Cmd_AddCommand ("listip", SV_ListIP_f);