mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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;
|
client = ent->client;
|
||||||
|
|
||||||
if ( client->sess.spectatorState != SPECTATOR_FOLLOW ) {
|
if ( client->sess.spectatorState != SPECTATOR_FOLLOW ) {
|
||||||
|
if ( client->noclip ) {
|
||||||
|
client->ps.pm_type = PM_NOCLIP;
|
||||||
|
} else {
|
||||||
client->ps.pm_type = PM_SPECTATOR;
|
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…
Reference in a new issue