22 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionCreated", e.m_Player.ToString() );
26 e.m_Player.OnItemInHandsChanged();
37 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionTake", e.m_Player.ToString() );
42 e.m_Player.OnItemInHandsChanged();
53 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionDrop", e.m_Player.ToString() );
58 e.m_Player.OnItemInHandsChanged();
69 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionThrow", e.m_Player.ToString() );
72 HandEventThrow throwEvent = HandEventThrow.Cast(e);
81 item.ThrowPhysically(player, throwEvent.GetForce());
83 Error(
"[hndfsm] HandActionThrow - src entity null!");
86 player.OnItemInHandsChanged();
97 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionMoveTo", e.m_Player.ToString() );
101 HandEventMoveTo es = HandEventMoveTo.Cast(e);
105 e.m_Player.OnItemInHandsChanged();
108 Error(
"[hndfsm] HandActionMoveTo - this is no HandEventMoveTo");
119 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionDestroy", e.m_Player.ToString() );
123 GetGame().ObjectDelete(e.GetSrcEntity());
124 e.m_Player.OnItemInHandsChanged();
135 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionDestroyed", e.m_Player.ToString() );
138 e.m_Player.OnItemInHandsChanged();
149 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionDestroyAndReplaceWithNew", e.m_Player.ToString() );
152 Man player = e.m_Player;
153 EntityAI itemInHands = player.GetHumanInventory().GetEntityInHands();
156 if (itemInHands.GetInventory().GetCurrentInventoryLocation(src))
161 edr.m_Lambda.Execute();
165 Error(
"[hndfsm] HandActionDestroyAndReplaceWithNew - not a HandEventDestroyAndReplaceWithNew event");
168 Error(
"[hndfsm] HandActionDestroyAndReplaceWithNew - itemInHands has no InventoryLocation");
187 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionReplaced", e.m_Player.ToString() );
190 Man player = e.m_Player;
192 player.OnItemInHandsChanged();
203 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionSwap", e.m_Player.ToString() );
209 GameInventory.LocationSwap(es.GetSrc(), es.m_Src2, es.GetDst(), es.m_Dst2);
210 e.m_Player.OnItemInHandsChanged();
213 Error(
"[hndfsm] HandActionSwap - this is no HandEventSwap");
224 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionForceSwap", e.m_Player.ToString() );
227 HandEventForceSwap es = HandEventForceSwap.Cast(e);
230 GameInventory.LocationSwap(es.GetSrc(), es.m_Src2, es.GetDst(), es.m_Dst2);
231 e.m_Player.OnItemInHandsChanged();
234 Error(
"[hndfsm] HandActionForceSwap - this is no HandEventForceSwap");