97 {
98 if (
g_Game.IsDedicatedServer())
99 {
101 return;
102 }
103
104
107 InventoryLocation targetInventoryLocation = new InventoryLocation;
108 ntarget.GetInventory().GetCurrentInventoryLocation(targetInventoryLocation);
109
111
112
113
114 float stackable = ntarget.GetTargetQuantityMax(il.
GetSlot());
115
116 if( stackable == 0 || stackable >= ntarget.GetQuantity() )
117 {
118 action_data.
m_Player.PredictiveTakeToDst(targetInventoryLocation, il);
119 }
120 else
121 {
123 ntarget.SplitIntoStackMaxToInventoryLocationClient( il );
124 }
125
126
127 }
void ClearInventoryReservationEx(ActionData action_data)
void ClearActionJuncture(ActionData action_data)
class GP5GasMask extends MaskBase ItemBase
ref ActionTarget m_Target
ref array< ref InventoryLocation > m_ReservedInventoryLocations
proto native int GetSlot()
returns slot id if current type is Attachment