26 if (item.GetQuantity() > 1)
31 ItemBase headgear =
ItemBase.Cast(player.FindAttachmentBySlotName(
"Headgear" ));
34 bool headgear_restricted;
35 headgear_restricted = headgear.ConfigGetBool(
"noMask" );
36 if (headgear_restricted)
49 action_data.
m_Player.GetInventory().CreateInInventory(
"MouthRag");
51 MouthRag m_Gag = MouthRag.Cast(action_data.
m_Player.GetItemOnSlot(
"Mask"));
54 m_Gag.SetHealth01(
"",
"", action_data.
m_MainItem.GetHealth01(
"",
""));
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected int m_StanceMask
class ActionTargets ActionTarget
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasTarget()
bool IsWearingMask(PlayerBase player)
protected int m_CommandUID
protected m_CallbackClass
provides access to slot configuration
DayZPlayerConstants
defined in C++