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;
|
client = ent->client;
|
||||||
|
|
||||||
if ( client->sess.spectatorState != SPECTATOR_FOLLOW ) {
|
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
|
client->ps.speed = 400; // faster than normal
|
||||||
|
|
||||||
// set up for pmove
|
// set up for pmove
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue