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 CanBeShownScript(IEntity user)
28 if (IsTourniquetted())
31 if (!super.CanBeShownScript(user))
39 ChimeraCharacter targetCharacter = ChimeraCharacter.Cast(
GetOwner());
46 SetCannotPerformReason(m_sNotBleeding);
54 protected bool IsTourniquetted()
57 ChimeraCharacter targetCharacter = ChimeraCharacter.Cast(
GetOwner());
69 override bool CanBePerformedScript(IEntity user)
71 if (IsTourniquetted())
75 ChimeraCharacter targetCharacter = ChimeraCharacter.Cast(
GetOwner());
80 ChimeraCharacter userCharacter = ChimeraCharacter.Cast(user);
84 SCR_ConsumableItemComponent consumableComponent = GetConsumableComponent(userCharacter);
85 if (!consumableComponent)
93 if (consumableTQ.CanApplyEffectToHZ(targetCharacter, userCharacter,
m_eHitZoneGroup, reason))
96 if (reason == SCR_EConsumableFailReason.ALREADY_APPLIED)
97 SetCannotPerformReason(m_sAlreadyApplied);
98 else if (reason == SCR_EConsumableFailReason.NOT_BLEEDING)
99 SetCannotPerformReason(m_sNotBleeding);
105 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
107 if (!IsTourniquetted())
109 super.PerformAction(pOwnerEntity, pUserEntity);
114 if (!tourniquetStorage)
117 if (tourniquetStorage.RemoveTourniquetFromSlot(
m_eHitZoneGroup, pUserEntity))
122 override bool GetActionNameScript(out
string outName)
124 if (IsTourniquetted())
126 outName = (
"#AR-RemoveTourniquetAction");
134 override bool HealingAllowedFromSeat(ChimeraCharacter
char)