I am having trouble storing damage by attacker.
If the victim has 30 health and 120 damage is done to the victim, 120 damage is stored. I would like it to only save the remaining health as damage (30).
PHP Code:
public fwd_TakeDamage_Post(victim, inflictor, attacker, Float:damage, damage_type)
{
//This adds ALL of the damage given
iDamage[attacker] += damage
}
How can I check the remaining health of the victim to check if damage is greater?