summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:22:28 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:53 +0000
commit132f766b85c17ec4ad1d9f4ce77c8d20383c02e9 (patch)
treec4b95709a0db80da721ea66fc768aecc677e7b1d /src/game/g_combat.c
parent7617d5cf6ce96f992d31ae763c470a6387c4be21 (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.c1
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 ) )