519 {
521 ActionManagerClient amc;
522
523 switch (combinationFlag)
524 {
525 case InventoryCombinationFlags.ADD_AS_ATTACHMENT:
526 return player.PredictiveTakeEntityToTargetAttachment(targetEntity, selectedEntity);
527 case InventoryCombinationFlags.ADD_AS_CARGO:
528 SplitItemUtils.TakeOrSplitToInventory(player, targetEntity, selectedEntity);
529 return true;
530 case InventoryCombinationFlags.COMBINE_QUANTITY2:
531 targetEntity.CombineItemsClient(selectedEntity);
532 return true;
533 case InventoryCombinationFlags.SET_ACTION:
534 Class.CastTo(amc, player.GetActionManager());
535 if (targetEntity == player.GetHumanInventory().GetEntityInHands())
536 {
538 }
539 else
540 {
542 }
543 return true;
544 case InventoryCombinationFlags.PERFORM_ACTION:
545 Class.CastTo(amc, player.GetActionManager());
546 if (targetEntity == player.GetHumanInventory().GetEntityInHands())
547 {
549 }
550 else
551 {
553 }
554 return true;
555 case InventoryCombinationFlags.SWAP_MAGAZINE:
556 return player.GetWeaponManager().SwapMagazine(Magazine.Cast(selectedEntity));
557 case InventoryCombinationFlags.SWAP:
558 return player.PredictiveSwapEntities(targetEntity, selectedEntity);
559 case InventoryCombinationFlags.FSWAP:
560 return player.PredictiveForceSwapEntities(selectedEntity, targetEntity, ilSwapDst);
561 default:
562 return false;
563 }
564
565 return false;
566 }
class GP5GasMask extends MaskBase ItemBase
void SetActionFromInventory(ItemBase mainItem, ItemBase targetItem)
void PerformActionFromInventory(ItemBase mainItem, ItemBase targetItem)
proto native CGame GetGame()