Code:
//you may set damage mod percent HERE
//you may NOT DAMAGE IN HERE
forward OnW3TakeDmgAllPre(victim,attacker,Float:damage);
//you may NOT set damage mod percent HERE
//you may DAMAGE in here, however damage will be engine theoretical damage, not actual damage dealt
forward OnW3TakeDmgAll(victim,attacker,Float:damage);
//you may NOT DAMAGE IN HERE
forward OnW3TakeDmgAllPre(victim,attacker,Float:damage);
//you may NOT set damage mod percent HERE
//you may DAMAGE in here, however damage will be engine theoretical damage, not actual damage dealt
forward OnW3TakeDmgAll(victim,attacker,Float:damage);
So what do I do nowadays when I want to use War3_DamageModPercent and War3_DealDamage? For example a item that mirrors friendly fire damage. I'd have to set the DamageModPercent to 0.0 but also War3_DealDamage back to the attacker. I could obviously send the stuff through a timer with datapacks but a 0.1 second delay is unacceptable for me.
If I use both in the same function my server will get spammed with warnings that this shouldn't be done but if there's no proper solution I'll just remove those hints since I'm very aware of what I'm doing :|





Logged




DarkEnergy