1class RestrainingToolLocked
extends ItemBase
6 if ( player && player.IsRestrained() )
8 player.SetRestrained(
false);
14 super.EEItemLocationChanged(oldLoc, newLoc);
18 if ( oldLoc.IsValid() && oldLoc.GetParent() )
21 if (old_player && old_player.IsRestrained())
23 old_player.SetRestrained(
false);
28 if ( newLoc.IsValid() )
30 if (newLoc.GetParent())
38 if ( !player.IsRestrained() )
40 player.SetRestrained(
true);
41 player.OnItemInHandsChanged();
44 if (player.IsControlledPlayer())
45 player.OnRestrainStart();
55 if (oldLoc.GetParent())
60 MiscGameplayFunctions.TransformRestrainItem(
this, null, old_p, old_p);
72 super.EEKilled(killer);
75 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
76 if (!inventoryLocation || !inventoryLocation.
IsValid())
82 if (player && player.IsRestrained())
84 player.SetRestrained(
false);
85 MiscGameplayFunctions.TransformRestrainItem(
this, null, player, player);
98class HandcuffsLocked
extends RestrainingToolLocked
102class RopeLocked
extends RestrainingToolLocked
106class DuctTapeLocked
extends RestrainingToolLocked
110class MetalWireLocked
extends RestrainingToolLocked
114class BarbedWireLocked
extends RestrainingToolLocked
void AddAction(typename actionName)
InventoryLocationType
types of Inventory Location
proto native int GetType()
returns type of InventoryLocation
proto native bool IsValid()
verify current set inventory location
proto native EntityAI GetParent()
returns parent of current inventory location
void ~RestrainingToolLocked()
override void EEKilled(Object killer)
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void SetActions()
proto native CGame GetGame()