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);