64 {
65 if (
g_Game.IsDedicatedServer())
66 {
68 return;
69 }
70
73
74 float stackable = ntarget.GetTargetQuantityMax(-1);
75
76 if (stackable == 0 || stackable >= ntarget.GetQuantity())
77 {
78 action_data.
m_Player.PredictiveTakeEntityToHands(ntarget);
79 }
80 else
81 {
82 InventoryLocation il = new InventoryLocation();
84 ntarget.SplitIntoStackMaxToInventoryLocationClient(il);
85 }
86 }
void ClearInventoryReservationEx(ActionData action_data)
void ClearActionJuncture(ActionData action_data)
class GP5GasMask extends MaskBase ItemBase
ref ActionTarget m_Target
proto native void SetHands(notnull EntityAI parent, EntityAI e)
sets current inventory location type to Hands