From f6daf5fab2d691a776fa0028e17e0c574af5dd02 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 20 Aug 2004 23:26:54 +0000 Subject: * Slowed lasgun down * Chimera lightning bug fixed and damage increased * Splashdamage on turrets increased * Dragoon barbs do more damage and regenerate * Kill command is cancellable * "buy ammo" now works with energy weapons * Dragoon weakened slightly * Humans speed increased * Reactor health increased * Base attack warning for spawns as well as reactor --- src/game/g_active.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index 91f513d6..8ba8723b 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -462,6 +462,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) client = ent->client; client->time100 += msec; client->time1000 += msec; + client->time10000 += msec; while ( client->time100 >= 100 ) { @@ -681,6 +682,25 @@ void ClientTimerActions( gentity_t *ent, int msec ) ent->health = client->ps.stats[ STAT_MAX_HEALTH ]; } } + + while( client->time10000 >= 10000 ) + { + client->time10000 -= 10000; + + if( client->ps.weapon == WP_DRAGOON_UPG ) + { + int ammo, maxAmmo; + + BG_FindAmmoForWeapon( WP_DRAGOON_UPG, &maxAmmo, NULL, NULL ); + BG_unpackAmmoArray( WP_DRAGOON_UPG, client->ps.ammo, client->ps.powerups, &ammo, NULL, NULL ); + + if( ammo < maxAmmo ) + { + ammo++; + BG_packAmmoArray( WP_DRAGOON_UPG, client->ps.ammo, client->ps.powerups, ammo, 0, 0 ); + } + } + } } /* @@ -1136,6 +1156,7 @@ void ClientThink_real( gentity_t *ent ) // NOTE: now copy the exact origin over otherwise clients can be snapped into solid VectorCopy( ent->client->ps.origin, ent->r.currentOrigin ); + VectorCopy( ent->client->ps.origin, ent->s.origin ); // touch other objects ClientImpacts( ent, &pm ); -- cgit