diff options
author | Tim Angus <tim@ngus.net> | 2002-02-10 18:19:56 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-02-10 18:19:56 +0000 |
commit | 0a4865223bf1d5796fa8924e8eb60f961dc04b50 (patch) | |
tree | 8c7f0400d743beaf703616d59f65555f34be7d82 | |
parent | 60d293cb51ae70c020c7e047ab0390d84357615d (diff) |
Anti toxin
-rw-r--r-- | src/game/g_active.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index a3ddecd5..8d281f1b 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -859,6 +859,18 @@ void ClientThink_real( gentity_t *ent ) { else client->ps.gravity = g_gravity.value; + if( BG_gotItem( UP_ANTITOXIN, client->ps.stats ) && + BG_activated( UP_ANTITOXIN, client->ps.stats ) ) + { + if( client->ps.stats[ STAT_STATE ] & SS_POISONED ) + { + //remove anti toxin + BG_removeItem( UP_ANTITOXIN, client->ps.stats ); + + client->ps.stats[ STAT_STATE ] &= ~SS_POISONED; + } + } + // set speed client->ps.speed = g_speed.value * BG_FindSpeedForClass( client->ps.stats[ STAT_PCLASS ] ); |