91 {
93 string component_name = tgt_entity.GetActionComponentName( action_data.m_Target.GetComponentIndex() );
95 bool heavy_item = false;
96
97 if ( tgt_entity &&
ItemBase.CastTo(attachment, tgt_entity.FindAttachmentBySlotName(component_name)) )
98 {
99 ActionBaseCB callback;
100 if ( attachment && attachment.ConfigIsExisting("heavyItem") && attachment.ConfigGetBool("heavyItem") )
101 {
102 heavy_item = true;
103 }
104 }
105
106 if( heavy_item )
107 {
109 }
110 else
111 {
113 {
115 }
116 else
117 {
119 }
120 }
123 action_data.m_Callback = callback;
124 }
class GP5GasMask extends MaskBase ItemBase
void InitActionComponent()
void SetActionData(ActionData action_data)
GetCallbackClassTypename()
DayZPlayerConstants
defined in C++