From ccbc1b2f5a63cdf5545390d35bf0364a1073d395 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 12:16:05 +0000 Subject: * 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 --- src/game/g_cmds.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/game/g_cmds.c') 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 ); -- cgit