summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 13:11:36 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:32 +0000
commit79b48fc1d21e3863a0168a426a63779e81104f7a (patch)
tree08b235757356ca5f0031361a14c430abfd3ff00c /src/game
parent73dc033ecade830d30a15a818508fa160346aeb5 (diff)
* make poison cloud disorientation start/end more smoothly
* add /give gas for testing
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 )
{