Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline
A count is kept of how much damage done to a player can be healed. Each time this is updated, a check is made to ensure there is not too much stored in there. The code checks using a calculation like
(Victim.HealthMax + localMaxHealth) - Victim.Health)
Imagine a player of normally 200 health that goes down to 1 health, then is healed by a level 3 medic to 350 health. He now has 0 healable damage stored.
Now assume he takes 200 damage from enemy fire. He now is at health 150 and has 200 healable damage.
Assume a level 1 medic heals him to the medics max of 250. The healable damage is then set to
(200 + 50) - 250 = 0
So, the player has no healable damage left. He should still have 100 left.
I propose the algorithm should be changed to
(Victim.HealthMax + 150) - Victim.Health)
Note - this does not affect how much a medic can heal, just how much xp they get back.