diff options
author | Tim Angus <tim@ngus.net> | 2004-08-20 23:26:54 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2004-08-20 23:26:54 +0000 |
commit | f6daf5fab2d691a776fa0028e17e0c574af5dd02 (patch) | |
tree | 95e6ad0c0f98885b9f70c99c942362c934b00977 /src/game/g_active.c | |
parent | 334a53697873722763cfe76a934ddb862791b313 (diff) |
* 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
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 21 |
1 files changed, 21 insertions, 0 deletions
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 ); |