Allow spectators to use noclip cheat

This commit is contained in:
Zack Middleton committed 2017-06-24 20:27:24 -05:00
1 parent 7b9ccd1463
commit 03336dd0bf
1 file changed
+6 -1
+6 -1
View File
@@ -321,7 +321,12 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) {
client = ent->client;
if ( client->sess.spectatorState != SPECTATOR_FOLLOW ) {
client->ps.pm_type = PM_SPECTATOR;
if ( client->noclip ) {
client->ps.pm_type = PM_NOCLIP;
} else {
client->ps.pm_type = PM_SPECTATOR;
}
client->ps.speed = 400; // faster than normal
// set up for pmove