From 0a4865223bf1d5796fa8924e8eb60f961dc04b50 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 10 Feb 2002 18:19:56 +0000 Subject: Anti toxin --- src/game/g_active.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 ] ); -- cgit