diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:16:05 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:48 +0000 |
commit | ccbc1b2f5a63cdf5545390d35bf0364a1073d395 (patch) | |
tree | fa04d8845b9b8a814a20a57dad8bf22b17176bb3 /src/game/g_cmds.c | |
parent | c56b5dd095d6f710b3de27ab053f63b018c4483a (diff) |
* Allow boosters to give poison within the first 30 seconds of the game
* Allow /noclip and /where to be used by spectators
* Allow /noclip and /setviewpos to be used by specs even when cheats are off
* Run PM_Weapon and set view height while noclipping
* Make player speed while spectating or noclipping configurable via cg_flySpeed
* Remove requirement for cgame's cvartable to have a non-null vmCvar pointer
* Make PM_Paralyzed a macro and add a similar category, PM_Live
* Stop dretches from biting dead buildings
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 87fa5777..06d2ed81 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2975,12 +2975,13 @@ commands_t cmds[ ] = { { "give", CMD_CHEAT|CMD_TEAM|CMD_LIVING, Cmd_Give_f }, { "god", CMD_CHEAT|CMD_TEAM|CMD_LIVING, Cmd_God_f }, { "notarget", CMD_CHEAT|CMD_TEAM|CMD_LIVING, Cmd_Notarget_f }, - { "noclip", CMD_CHEAT|CMD_TEAM|CMD_LIVING, Cmd_Noclip_f }, + { "noclip", CMD_CHEAT_TEAM, Cmd_Noclip_f }, { "levelshot", CMD_CHEAT, Cmd_LevelShot_f }, - { "setviewpos", CMD_CHEAT, Cmd_SetViewpos_f }, + { "setviewpos", CMD_CHEAT_TEAM, Cmd_SetViewpos_f }, { "destroy", CMD_CHEAT|CMD_TEAM|CMD_LIVING, Cmd_Destroy_f }, { "test", CMD_CHEAT, Cmd_Test_f }, { "damage", CMD_CHEAT|CMD_LIVING, Cmd_Damage_f }, + { "where", 0, Cmd_Where_f }, // game commands { "ptrcverify", CMD_SPEC, Cmd_PTRCVerify_f }, @@ -2990,7 +2991,6 @@ commands_t cmds[ ] = { { "follownext", CMD_SPEC, Cmd_FollowCycle_f }, { "followprev", CMD_SPEC, Cmd_FollowCycle_f }, - { "where", CMD_TEAM, Cmd_Where_f }, { "teamvote", CMD_TEAM, Cmd_TeamVote_f }, { "class", CMD_TEAM, Cmd_Class_f }, { "kill", CMD_TEAM|CMD_LIVING, Cmd_Kill_f }, @@ -3053,7 +3053,8 @@ void ClientCommand( int clientNum ) G_FloodLimited( ent ) ) ) return; - if( cmds[ i ].cmdFlags & CMD_TEAM && + if( ( cmds[ i ].cmdFlags & CMD_TEAM || + ( cmds[ i ].cmdFlags & CMD_CHEAT_TEAM && !g_cheats.integer ) ) && ent->client->pers.teamSelection == TEAM_NONE ) { G_TriggerMenu( clientNum, MN_CMD_TEAM ); |