21 {
22 super.EEItemLocationChanged(oldLoc,newLoc);
23
24 string hookType = ConfigGetString("hookType");
25 if (
GetGame().IsDedicatedServer() && hookType !=
string.
Empty)
26 {
27 DeleteSafe();
28 vector spawnPos;
30 spawnPos = newLoc.GetPos();
31 else
32 spawnPos = newLoc.GetParent().GetHierarchyRoot().GetPosition();
33
35 EntityAI worm = newItem.GetInventory().CreateAttachment(
"Worm");
36 MiscGameplayFunctions.TransferItemProperties(this,newItem);
37 MiscGameplayFunctions.TransferItemProperties(this,worm);
38 }
39 }
const int ECE_PLACE_ON_SURFACE
InventoryLocationType
types of Inventory Location
proto native CGame GetGame()