65 {
67
68 int slotId = AttachToConstructionActionData.Cast(action_data).m_SlotID;
69
70 if (slotId != InventorySlots.INVALID)
71 {
72 ItemBase attachment =
ItemBase.Cast(targetEntity.GetInventory().FindAttachment(slotId));
73
74 if (attachment)
75 {
76
77 attachment.CombineItemsClient(action_data.
m_MainItem);
78 }
79 else
80 {
81 float stackable = action_data.
m_MainItem.GetTargetQuantityMax(slotId);
82
83 if (stackable == 0 || stackable >= action_data.
m_MainItem.GetQuantity())
84 {
85 action_data.
m_Player.PredictiveTakeEntityToTargetAttachmentEx(targetEntity, action_data.
m_MainItem, slotId);
86 }
87 else if (stackable != 0 && stackable < action_data.
m_MainItem.GetQuantity())
88 {
90 }
91 }
92 }
93 }
class GP5GasMask extends MaskBase ItemBase
ref ActionTarget m_Target