When changing damage value inside hook function,
if attack is a crit it will negate value,
giving infinite overheal instead of damaging.
PHP Code:
public Action:OnTakeDamageAlive(victim, &attacker, &inflictor, &Float:damage, int &damagetype, int &weapon,
float damageForce[3], float damagePosition[3], int damagecustom)
{
damage = 1.0 //any change to damage will work unless its a crit
return Plugin_Changed;
}
Bug occurs wheter it's OnTakeDamage Pre/Post, OnTakeDamageAlive Pre/Post.
__________________