EEOnDamageCalculated function isn't work after 1.21 update
According to my observations this happens when damageCoef = 0 in the ProcessDirectDamage function
EEOnDamageCalculated function isn't work after 1.21 update
According to my observations this happens when damageCoef = 0 in the ProcessDirectDamage function
vod DoZeroDamage(PlayerBase player) { player.ProcessDirectDamage(DT_CUSTOM, player, player.GetDefaultHitComponent(), "AnyAmmo", vector.Zero, 0 ); } modded class PlayerBase { override bool EEOnDamageCalculated(TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef) { Print("I had to see it."); return true; } }