summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 378a5305..3a38fc85 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -392,6 +392,14 @@ void Cmd_Give_f( gentity_t *ent )
ent->client->boostedTime = level.time;
}
}
+
+ if( Q_stricmp( name, "gas" ) == 0 )
+ {
+ ent->client->ps.eFlags |= EF_POISONCLOUDED;
+ ent->client->lastPoisonCloudedTime = level.time;
+ trap_SendServerCommand( ent->client->ps.clientNum,
+ "poisoncloud" );
+ }
if( give_all || Q_stricmp( name, "ammo" ) == 0 )
{