Page MenuHomeFeedback Tracker

EEOnDamageCalculated in PlayerBase class isn't work
Assigned, UrgentPublic

Description

EEOnDamageCalculated function isn't work after 1.21 update

According to my observations this happens when damageCoef = 0 in the ProcessDirectDamage function

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
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;
    }
}

Event Timeline

T3Z created this task.May 25 2023, 9:47 AM
T3Z updated the task description. (Show Details)May 25 2023, 9:54 AM
T3Z edited Steps To Reproduce. (Show Details)
Geez changed the task status from New to Assigned.May 25 2023, 10:45 AM