7 override void OnActionCanceled(IEntity pOwnerEntity, IEntity pUserEntity)
9 ChimeraCharacter character = ChimeraCharacter.Cast(pUserEntity);
13 CharacterControllerComponent controller = character.GetCharacterController();
20 SCR_ConsumableItemComponent consumableComponent = GetConsumableComponent(character);
21 if (consumableComponent)
22 consumableComponent.SetAlternativeModel(
false);
26 override bool CanBePerformedScript(IEntity user)
29 ChimeraCharacter targetCharacter = ChimeraCharacter.Cast(
GetOwner());
34 ChimeraCharacter userCharacter = ChimeraCharacter.Cast(user);
38 SCR_ConsumableItemComponent consumableComponent = GetConsumableComponent(userCharacter);
39 if (!consumableComponent)
42 SCR_ConsumableSalineBag consumableSaline = SCR_ConsumableSalineBag.Cast(consumableComponent.GetConsumableEffect());
43 if (!consumableSaline)
47 if (consumableSaline.CanApplyEffectToHZ(targetCharacter, userCharacter,
m_eHitZoneGroup, reason))
50 if (reason == SCR_EConsumableFailReason.UNDAMAGED)
51 SetCannotPerformReason(m_sNoBloodLoss);
53 if (reason == SCR_EConsumableFailReason.ALREADY_APPLIED)
54 SetCannotPerformReason(m_sAlreadyApplied);