From a2acd48085c60e956b1cad6a9fa12578acbeec5f Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 13 Apr 2017 11:30:00 +0000 Subject: allow replenishing of poison without stupid per-player cooldown delays --- src/game/g_buildable.c | 11 ++--------- src/game/tremulous.h | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'src/game') diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index ed243cc..f6a98f6 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1604,15 +1604,8 @@ void ABooster_Touch( gentity_t *self, gentity_t *other, trace_t *trace ) return; } - //only allow boostage once every 30 seconds - if( client->lastBoostedTime + BOOSTER_INTERVAL > level.time ) - return; - - if( !( client->ps.stats[ STAT_STATE ] & SS_BOOSTED ) ) - { - client->ps.stats[ STAT_STATE ] |= SS_BOOSTED; - client->lastBoostedTime = level.time; - } + client->ps.stats[ STAT_STATE ] |= SS_BOOSTED; + client->lastBoostedTime = level.time; } diff --git a/src/game/tremulous.h b/src/game/tremulous.h index c007489..239bb46 100644 --- a/src/game/tremulous.h +++ b/src/game/tremulous.h @@ -246,7 +246,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define BOOSTER_SPLASHDAMAGE 50 #define BOOSTER_SPLASHRADIUS 50 #define BOOSTER_CREEPSIZE 120 -#define BOOSTER_INTERVAL 30000 //time in msec between uses (per player) #define BOOSTER_REGEN_MOD 2.0f #define BOOST_TIME 30000 -- cgit