26 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"OnEntry", e.m_Player.ToString() );
33 e.m_Player.OnItemInHandsChanged();
42 Error(
"[hndfsm] " +
Object.GetDebugName(e.m_Player) +
" STS = " + e.m_Player.GetSimulationTimeStamp() +
" HandTakingAnimated_Show m_Src=invalid, item not in bubble?");
46 Error(
"[hndfsm] HandTakingAnimated_Show, error - m_Src not configured");
69 ref HandTakingAnimated_Hide m_Hide;
70 ref HandTakingAnimated_Show m_Show;
74 void HandAnimatedTakingFromAtt(Man player =
null,
HandStateBase parent =
null)
77 m_Hide =
new HandTakingAnimated_Hide(player,
this,
WeaponActions.HIDE, -1);
78 m_Show =
new HandTakingAnimated_Show(player,
this,
WeaponActions.SHOW, -1);
81 HandEventBase _fin_ =
new HandEventHumanCommandActionFinished;
92 m_FSM.SetInitialState(m_Hide);
98 m_Show.m_Src = e.GetSrc();
99 m_Show.m_Dst = e.GetDst();
101 m_Hide.m_ActionType = e.GetAnimationID();
102 m_Show.m_ActionType = e.GetAnimationID();
104 e.m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst.GetItem(), m_Dst,
GameInventory.c_InventoryReservationTimeoutShortMS);
114 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"OnAbort", e.m_Player.ToString() );
119 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
121 GetGame().ClearJuncture(e.m_Player, m_Dst.GetItem());
130 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);