5 override bool ActivateEffect(IEntity target, IEntity user, IEntity item,
ItemUseParameters animParams =
null)
11 localAnimParams = GetAnimationParameters(item, target);
17 if (!super.ActivateEffect(target, user, item, localAnimParams))
20 ChimeraCharacter character = ChimeraCharacter.Cast(target);
24 CharacterControllerComponent controller = character.GetCharacterController();
38 override void ApplyEffect(notnull IEntity target, notnull IEntity user, IEntity item,
ItemUseParameters animParams)
42 itemComp.RequestUserLock(user,
false);
46 override bool UpdateAnimationCommands(IEntity user)
48 ChimeraCharacter
char = ChimeraCharacter.Cast(user);
52 CharacterAnimationComponent animationComponent =
char.GetAnimationComponent();
53 if (!animationComponent)
56 m_iPlayerApplyToSelfCmdId = animationComponent.BindCommand(
"CMD_HealSelf");
57 m_iPlayerApplyToOtherCmdId = animationComponent.BindCommand(
"CMD_HealOther");
58 m_iPlayerReviveCmdId = animationComponent.BindCommand(
"CMD_Revive");
59 if (m_iPlayerApplyToSelfCmdId < 0 || m_iPlayerApplyToOtherCmdId < 0)
61 Print(
"One or both healing animationCommands have incorrect ID's!!", LogLevel.ERROR);
74 bool CanApplyEffectToHZ(notnull IEntity target, notnull IEntity user,
ECharacterHitZoneGroup group, out SCR_EConsumableFailReason failReason = SCR_EConsumableFailReason.NONE);
79 TAnimGraphCommand GetReviveAnimCmnd(IEntity user)
81 UpdateAnimationCommands(user);
82 return m_iPlayerReviveCmdId;