126    {
  127        if (
GetGame().IsDedicatedServer())
 
  128        {
  130            return;
  131        }
  132        
  133        
  135        InventoryLocation il = action_data.m_ReservedInventoryLocations.Get(0); 
  136        InventoryLocation targetInventoryLocation = new InventoryLocation;
  137        ntarget.GetInventory().GetCurrentInventoryLocation(targetInventoryLocation);
  138        
  140        
  141        
  142        
  143        float stackable = ntarget.GetTargetQuantityMax(il.
GetSlot());
 
  144        
  145        if( stackable == 0 || stackable >= ntarget.GetQuantity() )
  146        {
  147            action_data.m_Player.PredictiveTakeToDst(targetInventoryLocation, il);
  148        }
  149        else
  150        {
  152            ntarget.SplitIntoStackMaxToInventoryLocationClient( il );
  153        }
  154        
  155        
  156    }
class GP5GasMask extends MaskBase ItemBase
 
void ClearActionJuncture(ActionData action_data)
 
void ClearInventoryReservationEx(ActionData action_data)
 
proto native int GetSlot()
returns slot id if current type is Attachment
 
proto native CGame GetGame()