diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:22:28 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:53 +0000 |
commit | 132f766b85c17ec4ad1d9f4ce77c8d20383c02e9 (patch) | |
tree | c4b95709a0db80da721ea66fc768aecc677e7b1d /src/game/g_combat.c | |
parent | 7617d5cf6ce96f992d31ae763c470a6387c4be21 (diff) |
Smooth regeneration
A regen rate of 4 hp/s now means you regenerate one health point every
quarter of a second (fixes #28)
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 5cb879f1..753ff673 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -1125,6 +1125,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, targ->client->ps.stats[ STAT_HEALTH ] = targ->health; targ->lastDamageTime = level.time; + targ->nextRegenTime = level.time + ALIEN_REGEN_DAMAGE_TIME; // add to the attackers "account" on the target if( attacker->client && attacker != targ && !OnSameTeam( targ, attacker ) ) |