11 override void CreateConditionComponents()
17 override bool HasTarget()
24 if ( IsWearingGag(player) &&
null == player.GetHumanInventory().GetEntityInHands())
30 override void OnFinishProgressServer(
ActionData action_data )
33 Class.CastTo(attachment, action_data.m_Player.GetInventory().FindAttachment(
InventorySlots.MASK));
34 if ( attachment && attachment.GetType() ==
"MouthRag" )
37 lamb.SetTransferParams(
true,
true,
true,
false, 1);
38 action_data.m_Player.ServerReplaceItemElsewhereWithNewInHands(lamb);
46 if ( attachment && attachment.GetType() ==
"MouthRag" )
61 gag = MouthRag.Cast(m_OldItem);
63 gag.SetIncomingLambaBool(
true);
65 targetHnd.SetHands(player,
null);
66 OverrideNewLocation(targetHnd);
67 m_OriginalOwner = m_OldItem.GetHierarchyRoot();
70 override void OnSuccess (
EntityAI new_item)
72 super.OnSuccess(new_item);
75 if (
Class.CastTo(player,m_OriginalOwner))
81 override void OnAbort ()
84 gag.SetIncomingLambaBool(
false);