59 {
60 if (
GetGame().IsDedicatedServer())
61 {
63 return;
64 }
65
68
69 float stackable = ntarget.GetTargetQuantityMax(-1);
70
71 if (stackable == 0 || stackable >= ntarget.GetQuantity())
72 {
73 action_data.m_Player.PredictiveTakeEntityToHands(ntarget);
74 }
75 else
76 {
77 InventoryLocation il = new InventoryLocation();
78 il.
SetHands(action_data.m_Player, ntarget);
79 ntarget.SplitIntoStackMaxToInventoryLocationClient(il);
80 }
81 }
class GP5GasMask extends MaskBase ItemBase
void ClearActionJuncture(ActionData action_data)
void ClearInventoryReservationEx(ActionData action_data)
proto native void SetHands(notnull EntityAI parent, EntityAI e)
sets current inventory location type to Hands
proto native CGame GetGame()