4 protected bool m_bTourniquetted;
9 IEntity item = slot.GetInventoryItemComponent().GetOwner();
13 if (!CanApplyItem(item))
17 gadgetMgr.SetGadgetMode(item, EGadgetMode.IN_HAND);
19 ChimeraCharacter character = ChimeraCharacter.Cast(
m_Player);
21 if (charCtrl.GetRightHandItem() == item || charCtrl.GetAttachedGadgetAtLeftHandSlot() == item)
23 ApplyItem(item,
true,
false);
27 charCtrl.m_OnGadgetStateChangedInvoker.Insert(ApplyItem);
33 protected void ApplyItem(IEntity gadget,
bool isInHand,
bool isOnGround)
41 ChimeraCharacter character = ChimeraCharacter.Cast(
m_Player);
45 SCR_ConsumableItemComponent comp = SCR_ConsumableItemComponent.Cast(gadget.FindComponent(SCR_ConsumableItemComponent));
50 if (effect.ActivateEffect(character, character, gadget, effect.GetAnimationParameters(gadget, character,
m_pParentContainer.GetHitZoneGroup())))
51 itemComp.RequestUserLock(character,
true);
53 charCtrl.m_OnGadgetStateChangedInvoker.Remove(ApplyItem);
57 bool CanApplyItem(notnull IEntity item)
59 SCR_ConsumableItemComponent comp = SCR_ConsumableItemComponent.Cast(item.FindComponent(SCR_ConsumableItemComponent));
68 void SetTourniquetted(
bool tourniquetted)
73 bool IsTourniquetted()
85 BaseInventoryStorageComponent storage,
89 array<BaseInventoryStorageComponent> aTraverseStorage =
null,
94 m_eSlotAreaType = slotID;
97 m_iMatrix =
new SCR_Matrix(m_iMaxColumns, m_iMaxRows);
108 return m_pStorageUI.OnDrop(slot);