From 79b48fc1d21e3863a0168a426a63779e81104f7a Mon Sep 17 00:00:00 2001 From: Roman Tetelman Date: Sat, 3 Oct 2009 13:11:36 +0000 Subject: * make poison cloud disorientation start/end more smoothly * add /give gas for testing --- src/game/g_cmds.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game') 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 ) { -- cgit