110 {
111 if (
GetGame().IsDedicatedServer())
112 {
114 return;
115 }
116
117 InventoryLocation il = action_data.m_ReservedInventoryLocations.Get(0);
118
121
122 float stackable = arrow.GetTargetQuantityMax(-1);
123
124 if (stackable == 0 || stackable >= arrow.GetQuantity())
125 {
126 action_data.m_Player.PredictiveTakeEntityToHands(arrow);
127 }
128 else
129 {
130 arrow.SplitIntoStackMaxToInventoryLocationClient(il);
131 }
132 }
class GP5GasMask extends MaskBase ItemBase
void ClearActionJuncture(ActionData action_data)
void ClearInventoryReservationEx(ActionData action_data)
proto native EntityAI GetItem()
returns item of current inventory location
proto native CGame GetGame()