7 if ((
dst &&
dst.GetParent() && !
dst.GetParent().GetHierarchyRootPlayer()) || (
src &&
src.GetParent() && !
src.GetParent().GetHierarchyRootPlayer()))
36 else if (
invloc1.GetItem() &&
invloc1.GetItem().IsOneHandedBehaviour())
44 else if (
invloc1.GetItem() &&
invloc1.GetItem().IsOneHandedBehaviour())
89 else if (
invloc1.GetItem() &&
invloc1.GetItem().IsOneHandedBehaviour())
101 if (
player.IsInTransport())
106 if (
src.GetItem().GetHierarchyRootPlayer() ==
player)
121 if (
player.IsInTransport())
124 if (
src.GetItem().GetHierarchyRootPlayer() ==
player)
139 if (
player.IsInTransport())
167class HandSelectAnimationOfTakeToHandsEvent
extends HandGuardBase
183class HandSelectAnimationOfMoveFromHandsEvent
extends HandGuardBase
198 if (
eai.GetInventory().GetCurrentInventoryLocation(
src))
200 if (
e.m_IsJuncture ==
false &&
e.m_IsRemote ==
false)
205 hndDebugPrint(
"[hndfsm] HandSelectAnimationOfMoveFromHandsEvent - rejected");
235 Error(
"HandSelectAnimationOfForceSwapInHandsEvent - not an swap event");
241 HandEventForceSwap
es = HandEventForceSwap.Cast(
e);
245 hndDebugPrint(
"[hndfsm] HandSelectAnimationOfForceSwapInHandsEvent FSwap e=" +
e.DumpToString());
247 if (!
es.m_Src2.IsValid() || !
es.m_Src.IsValid())
249 Error(
"[hndfsm] HandSelectAnimationOfForceSwapInHandsEvent - invalid item source");
253 bool allow =
e.m_IsJuncture ||
e.m_IsRemote;
281 Error(
"[hndfsm] HandSelectAnimationOfForceSwapInHandsEvent - m_HasRoomGuard.GuardCondition failed");
284 Error(
"[hndfsm] HandSelectAnimationOfForceSwapInHandsEvent - not a swap event");
306 Error(
"[hndfsm] HandSelectAnimationOfSwapInHandsEvent - not a swap event");
bool SelectAnimationOfMoveFromHands(notnull Man player, notnull InventoryLocation src, notnull InventoryLocation dst, out int animType)
int SlotToAnimType(notnull Man player, notnull InventoryLocation src, InventoryLocation dst=null)
bool SelectAnimationOfTakeToHands(notnull Man player, notnull InventoryLocation src, notnull InventoryLocation dst, out int animType)
bool SelectAnimationOfForceSwapInHands(notnull Man player, notnull InventoryLocation old_src, notnull InventoryLocation new_src, notnull InventoryLocation old_dst, notnull InventoryLocation new_dst, out int animType1, out int animType2)
void hndDebugPrint(string s)
InventoryLocationType
types of Inventory Location
script counterpart to engine's class Inventory
static bool CanSwapEntitiesEx(notnull EntityAI item1, notnull EntityAI item2)
static bool CanForceSwapEntitiesEx(notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst)
static proto native bool LocationCanMoveEntity(notnull InventoryLocation src, notnull InventoryLocation dst)
queries if the entity contained in inv_loc.m_item can be moved to another location This is a shorthan...
Abstracted event, not to be used, only inherited.
TODO(kumarjac): This guard is unused but it has a fault and doesn't conform with maximimal/minimal ch...
void HandSelectAnimationOfTakeToHandsEvent(Man p=null)
void HandSelectAnimationOfForceSwapInHandsEvent(Man p=NULL)
void HandSelectAnimationOfMoveFromHandsEvent(Man p=null)
bool ProcessSwapEvent(notnull HandEventBase e, out int animType1, out int animType2)
override bool GuardCondition(HandEventBase e)
override bool GuardCondition(HandEventBase e)
static string DumpToStringNullSafe(InventoryLocation loc)
provides access to slot configuration
static bool IsInventoryHFSMLogEnable()
void Error(string err)
Messagebox with error message.