Allow spectators to use noclip cheat

This commit is contained in:
Zack Middleton 2017-06-24 20:04:27 -05:00
parent 7b9ccd1463
commit 03336dd0bf

View file

@ -321,7 +321,12 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) {
client = ent->client;
if ( client->sess.spectatorState != SPECTATOR_FOLLOW ) {
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