summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 684b2526..e5c130e9 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1619,6 +1619,10 @@ Cmd_Boost_f
*/
void Cmd_Boost_f( gentity_t *ent )
{
+ if( BG_gotItem( UP_JETPACK, ent->client->ps.stats ) &&
+ BG_activated( UP_JETPACK, ent->client->ps.stats ) )
+ return;
+
if( ( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) &&
( ent->client->ps.stats[ STAT_STAMINA ] > 0 ) )
ent->client->ps.stats[ STAT_STATE ] |= SS_SPEEDBOOST;
@@ -1634,10 +1638,14 @@ void Cmd_Test_f( gentity_t *ent )
if( !CheatsOk( ent ) )
return;
- ent->client->ps.stats[ STAT_STATE ] |= SS_POISONCLOUDED;
+/* ent->client->ps.stats[ STAT_STATE ] |= SS_POISONCLOUDED;
ent->client->lastPoisonCloudedTime = level.time;
ent->client->lastPoisonCloudedClient = ent;
- trap_SendServerCommand( ent->client->ps.clientNum, "poisoncloud" );
+ trap_SendServerCommand( ent->client->ps.clientNum, "poisoncloud" );*/
+
+ ent->client->ps.stats[ STAT_STATE ] |= SS_POISONED;
+ ent->client->lastPoisonTime = level.time;
+ ent->client->lastPoisonClient = ent;
}
/*