32 Man player = e.m_Player;
33 if (m_Dst && m_Dst.IsValid())
37 if (item.GetInventory().GetCurrentInventoryLocation(src))
42 player.OnItemInHandsChanged();
49 Debug.InventoryHFSMLog(
"[hndfsm] HandAnimatedMoveToDst_W4T - not allowed");
55 Error(
"[hndfsm] " +
Object.GetDebugName(e.m_Player) +
" STS = " + e.m_Player.GetSimulationTimeStamp() +
" HandAnimatedMoveToDst_W4T - item " + item +
" has no Inventory or Location, inv=" + item.GetInventory());
58 Error(
"[hndfsm] HandAnimatedMoveToDst_W4T - event has no valid m_Dst");
82 ref HandStartHidingAnimated m_Hide;
83 ref HandAnimatedMoveToDst_W4T m_Show;
87 void HandAnimatedMovingToAtt(Man player =
null,
HandStateBase parent =
null)
90 m_Hide =
new HandStartHidingAnimated(player,
this,
WeaponActions.HIDE, -1);
91 m_Show =
new HandAnimatedMoveToDst_W4T(player,
this,
WeaponActions.SHOW, -1);
94 HandEventBase _fin_ =
new HandEventHumanCommandActionFinished;
102 m_FSM.SetInitialState(m_Hide);
108 HandEventMoveTo ev_move = HandEventMoveTo.Cast(e);
111 m_Show.m_Dst = ev_move.GetDst();
112 m_Hide.m_ActionType = ev_move.GetAnimationID();
113 m_Show.m_ActionType = ev_move.GetAnimationID();
115 m_ilEntity = m_Show.m_Dst;
117 e.m_Player.GetHumanInventory().AddInventoryReservationEx(
m_Entity, m_ilEntity,
GameInventory.c_InventoryReservationTimeoutShortMS);
125 if ( !
GetGame().IsDedicatedServer())
127 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(
m_Entity, m_ilEntity);
142 if ( !
GetGame().IsDedicatedServer())
144 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(
m_Entity, m_ilEntity);