Page MenuHomeFeedback Tracker

ExtendedDamageManagerComponent.AddDamageEffect does not clone damage effect
Assigned, NormalPublic

Description

The description of ExtendedDamageManagerComponent.AddDamageEffect claims that the damage effect that gets passed is cloned, but this is not the case.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 11 x64
Category
General
Steps To Reproduce
  1. Open MpTest.ent in world editor.
  2. Go to play mode.
  3. Execute the script below in the console:
IEntity player = SCR_PlayerController.GetLocalMainEntity();
SCR_CharacterDamageManagerComponent damageManager = SCR_CharacterDamageManagerComponent.Cast(player.FindComponent(SCR_CharacterDamageManagerComponent));
SCR_MorphineDamageEffect morphineEffect = new SCR_MorphineDamageEffect();
Print(morphineEffect.GetAffectedHitZone());
damageManager.AddDamageEffect(morphineEffect);
Print(morphineEffect.GetAffectedHitZone());
  1. Notice that the second print isn't null as expected, indicating that it wasn't cloned.

Event Timeline

ookexoo created this task.Thu, Jan 16, 10:03 PM
ookexoo edited Steps To Reproduce. (Show Details)
Geez changed the task status from New to Assigned.Fri, Jan 17, 1:33 PM

Thanks for the report, it's been fixed internally.