67 {
69 string component_name = tgt_entity.GetActionComponentName( action_data.m_Target.GetComponentIndex() );
71
72 if ( tgt_entity &&
ItemBase.CastTo(attachment, tgt_entity.FindAttachmentBySlotName(component_name)) )
73 {
75 float stackable = attachment.GetTargetQuantityMax(-1);
76
77 if( stackable == 0 || stackable >= attachment.GetQuantity() )
78 {
79
80 action_data.m_Player.PredictiveTakeEntityToHands( attachment );
81 }
82 else if( stackable != 0 && stackable < attachment.GetQuantity() )
83 {
84
85 attachment.SplitIntoStackMaxHandsClient( action_data.m_Player );
86 }
87 }
88 }
class GP5GasMask extends MaskBase ItemBase
void ClearInventoryReservationEx(ActionData action_data)