summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:16:05 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:48 +0000
commitccbc1b2f5a63cdf5545390d35bf0364a1073d395 (patch)
treefa04d8845b9b8a814a20a57dad8bf22b17176bb3 /src/game/g_client.c
parentc56b5dd095d6f710b3de27ab053f63b018c4483a (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/game/g_client.c')
-rw-r--r--src/game/g_client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 782f053e..e69581da 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1119,6 +1119,14 @@ void ClientUserinfoChanged( int clientNum )
else
client->ps.persistant[ PERS_STATE ] &= ~PS_ALWAYSSPRINT;
+ // fly speed
+ s = Info_ValueForKey( userinfo, "cg_flySpeed" );
+
+ if( *s )
+ client->pers.flySpeed = atoi( s );
+ else
+ client->pers.flySpeed = BG_Class( PCL_NONE )->speed;
+
// teamInfo
s = Info_ValueForKey( userinfo, "teamoverlay" );