13 ref HandStartHidingAnimated m_Hide;
14 ref HandSwappingAnimated_Show m_Show;
16 void HandAnimatedSwapping(Man player =
null,
HandStateBase parent =
null)
19 m_Hide =
new HandStartHidingAnimated(player,
this,
WeaponActions.HIDE, -1);
20 m_Show =
new HandSwappingAnimated_Show(player,
this,
WeaponActions.SHOW, -1);
23 HandEventBase _fin_ =
new HandEventHumanCommandActionFinished;
31 m_FSM.SetInitialState(m_Hide);
44 m_Show.m_Src1 = m_Src1;
45 m_Show.m_Src2 = m_Src2;
46 m_Show.m_Dst1 = m_Dst1;
47 m_Show.m_Dst2 = m_Dst2;
49 m_Hide.m_ActionType = es.m_AnimationID;
50 m_Show.m_ActionType = es.m_Animation2ID;
52 if (!
GetGame().IsDedicatedServer())
54 e.m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst2.GetItem(), m_Dst2,
GameInventory.c_InventoryReservationTimeoutShortMS);
55 e.m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst1.GetItem(), m_Dst1,
GameInventory.c_InventoryReservationTimeoutShortMS);
64 if ( !
GetGame().IsDedicatedServer())
68 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst2.GetItem(), m_Dst2);
72 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst1.GetItem(), m_Dst1);
79 GetGame().ClearJuncture(e.m_Player, m_Dst2.GetItem());
83 GetGame().ClearJuncture(e.m_Player, m_Dst1.GetItem());
97 if ( !
GetGame().IsDedicatedServer())
99 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst2.GetItem(), m_Dst2);
100 e.m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst1.GetItem(), m_Dst1);