diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2019-10-05 23:55:52 +0100 |
---|---|---|
committer | IronClaw <louie.nutman@gmail.com> | 2019-10-05 23:58:26 +0100 |
commit | 19d2fb012968269684633603da1a635bb9528d80 (patch) | |
tree | fc3a1516499dbc1c0ea5b83e55a1b46ec9c7e69b /src/game/g_active.c | |
parent | a4753e7f5931b7e8dee7c7b01206a8685449200f (diff) |
spectator noclip
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index 63af175..4cf6367 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -407,7 +407,12 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) if( client->sess.spectatorState == SPECTATOR_LOCKED || client->sess.spectatorState == SPECTATOR_FOLLOW ) client->ps.pm_type = PM_FREEZE; else - client->ps.pm_type = PM_SPECTATOR; + { + if( g_specNoclip.integer ) + client->ps.pm_type = PM_NOCLIP; + else + client->ps.pm_type = PM_SPECTATOR; + } if ( client->sess.spectatorState == SPECTATOR_FOLLOW ) { |