mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Allow spectators to use noclip cheat
This commit is contained in:
parent
7b9ccd1463
commit
03336dd0bf
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue