5 static const string SEL_CORD_FOLDED =
"cord_folded";
6 static const string SEL_CORD_PLUGGED =
"cord_plugged";
10 m_ForceIntoHands =
false;
20 m_ForceIntoHands =
true;
21 player.LocalTakeEntityToHands(
this);
22 m_ForceIntoHands =
false;
27 if (!super.CanPutInCargo(parent))
30 EntityAI owner = GetHierarchyParent();
31 if (owner && owner.IsKindOf(
"Fence"))
34 bool allowIntoInventory = !GetCompEM().IsPlugged();
35 return allowIntoInventory;
40 if (!super.CanPutIntoHands(parent))
49 EntityAI owner = GetHierarchyParent();
50 if (owner && owner.IsKindOf(
"Fence"))
60 super.OnInventoryEnter(player);
63 if (playerPB.GetItemInHands() ==
this && GetCompEM().IsPlugged())
66 GetCompEM().UnplugAllDevices();
68 if (!playerPB.IsPlacingLocal())
69 GetCompEM().UnplugThis();
83 super.OnPlacementStarted(player);
92 playerPB.GetHologramServer().SetSelectionToRefresh(selections);
94 playerPB.GetHologramLocal().SetSelectionToRefresh(selections);
99 return "placeCableReel_SoundSet";
ActionPlaceObjectCB ActiondeployObjectCB ActionPlaceObject()
void AddAction(typename actionName)
void RemoveAction(typename actionName)
override void OnInventoryEnter(Man player)
override void OnPlacementStarted(Man player)
override bool IsElectricAppliance()
const string SEL_CORD_PLUGGED
override string GetDeploySoundset()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
override bool CanPutInCargo(EntityAI parent)
override bool CanPutIntoHands(EntityAI parent)
override bool CanRemoveFromHands(EntityAI parent)
proto native CGame GetGame()