468 {
469 if (CanDrop())
470 {
471 if (GetFocusedContainer().IsInherited( ContainerWithCargo ) || GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ))
472 {
473 return GetFocusedContainer().TransferItemToVicinity();
474 }
475 else
476 {
479 if ( item && player.CanDropEntity( item ) )
480 {
481 if ( item.GetTargetQuantityMax() < item.GetQuantity() )
482 item.SplitIntoStackMaxClient( null, -1 );
483 else
484 player.PhysicalPredictiveDropItem( item );
485 return true;
486 }
487 }
488 }
489 return false;
490 }
class GP5GasMask extends MaskBase ItemBase
proto native DayZPlayer GetPlayer()
override EntityAI GetFocusedItem()
proto native CGame GetGame()