diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:16:05 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:48 +0000 |
commit | ccbc1b2f5a63cdf5545390d35bf0364a1073d395 (patch) | |
tree | fa04d8845b9b8a814a20a57dad8bf22b17176bb3 /src/cgame | |
parent | c56b5dd095d6f710b3de27ab053f63b018c4483a (diff) |
* Allow boosters to give poison within the first 30 seconds of the game
* Allow /noclip and /where to be used by spectators
* Allow /noclip and /setviewpos to be used by specs even when cheats are off
* Run PM_Weapon and set view height while noclipping
* Make player speed while spectating or noclipping configurable via cg_flySpeed
* Remove requirement for cgame's cvartable to have a non-null vmCvar pointer
* Make PM_Paralyzed a macro and add a similar category, PM_Live
* Stop dretches from biting dead buildings
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_local.h | 2 | ||||
-rw-r--r-- | src/cgame/cg_main.c | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index 2fa1b756..55df1873 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -1508,8 +1508,6 @@ extern vmCvar_t cg_noTaunt; extern vmCvar_t cg_drawSurfNormal; extern vmCvar_t cg_drawBBOX; extern vmCvar_t cg_wwSmoothTime; -extern vmCvar_t cg_wwFollow; -extern vmCvar_t cg_wwToggle; extern vmCvar_t cg_depthSortParticles; extern vmCvar_t cg_bounceParticles; extern vmCvar_t cg_consoleLatency; diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 8aa3b52c..94e7c237 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -168,8 +168,6 @@ vmCvar_t cg_noTaunt; vmCvar_t cg_drawSurfNormal; vmCvar_t cg_drawBBOX; vmCvar_t cg_wwSmoothTime; -vmCvar_t cg_wwFollow; -vmCvar_t cg_wwToggle; vmCvar_t cg_depthSortParticles; vmCvar_t cg_bounceParticles; vmCvar_t cg_consoleLatency; @@ -276,11 +274,12 @@ static cvarTable_t cvarTable[ ] = { &cg_drawSurfNormal, "cg_drawSurfNormal", "0", CVAR_CHEAT }, { &cg_drawBBOX, "cg_drawBBOX", "0", CVAR_CHEAT }, { &cg_wwSmoothTime, "cg_wwSmoothTime", "300", CVAR_ARCHIVE }, - { &cg_wwFollow, "cg_wwFollow", "1", CVAR_ARCHIVE|CVAR_USERINFO }, - { &cg_wwToggle, "cg_wwToggle", "1", CVAR_ARCHIVE|CVAR_USERINFO }, + { NULL, "cg_wwFollow", "1", CVAR_ARCHIVE|CVAR_USERINFO }, + { NULL, "cg_wwToggle", "1", CVAR_ARCHIVE|CVAR_USERINFO }, { &cg_stickySpec, "cg_stickySpec", "1", CVAR_ARCHIVE|CVAR_USERINFO }, { &cg_alwaysSprint, "cg_alwaysSprint", "0", CVAR_ARCHIVE|CVAR_USERINFO }, { &cg_unlagged, "cg_unlagged", "1", CVAR_ARCHIVE|CVAR_USERINFO }, + { NULL, "cg_flySpeed", "600", CVAR_ARCHIVE|CVAR_USERINFO }, { &cg_depthSortParticles, "cg_depthSortParticles", "1", CVAR_ARCHIVE }, { &cg_bounceParticles, "cg_bounceParticles", "0", CVAR_ARCHIVE }, { &cg_consoleLatency, "cg_consoleLatency", "3000", CVAR_ARCHIVE }, @@ -415,7 +414,8 @@ void CG_UpdateCvars( void ) cvarTable_t *cv; for( i = 0, cv = cvarTable; i < cvarTableSize; i++, cv++ ) - trap_Cvar_Update( cv->vmCvar ); + if( cv->vmCvar ) + trap_Cvar_Update( cv->vmCvar ); // check for modications here |