13 override void CreateConditionComponents()
22 if (item.GetQuantity() > 1)
26 Class.CastTo(targetPlayer, target.GetObject());
27 if ( !IsWearingMask(targetPlayer) )
29 ItemBase headgear =
ItemBase.Cast(targetPlayer.FindAttachmentBySlotName(
"Headgear" ));
32 bool headgear_restricted;
33 headgear_restricted = headgear.ConfigGetBool(
"noMask" );
34 if (headgear_restricted)
45 override void OnFinishProgressServer(
ActionData action_data )
48 Class.CastTo(ntarget, action_data.m_Target.GetObject());
53 if (
Class.CastTo(m_Gag,ntarget.GetInventory().CreateAttachmentEx(
"MouthRag",
InventorySlots.MASK)))
55 m_Gag.SetHealth01(
"",
"", action_data.m_MainItem.GetHealth01(
"",
""));
57 action_data.m_MainItem.TransferModifiers(ntarget);
58 action_data.m_MainItem.Delete();