49 if (targetItem && targetItem.IsBeingPlaced())
52 if (player.PhysicsGetLinkedEntity() != null)
55 Object targetObject = target.GetObject();
56 if (targetObject != null)
58 if (targetObject.IsInherited(
TrapBase))
61 if (trap.IsActivable() && trap.IsPlaceableAtPosition(trap.GetPosition()))
68 if (spawnTrap && !spawnTrap.IsActive())
69 return spawnTrap.IsPlaceableAtPosition(spawnTrap.GetPosition());
133 super.OnFinishProgressServer(action_data);
136 if (targetObject != null)
138 vector orientation = action_data.m_Player.GetOrientation();
139 vector position = targetObject.GetPosition();
141 if (targetObject.IsInherited(
TrapBase))
145 trap.StartActivate(action_data.m_Player);
150 spawnTrap.OnPlacementComplete(action_data.m_Player, position, orientation);
154 targetObject.StartItemSoundServer(SoundConstants.ITEM_DEPLOY);
157 targetObject.StopItemSoundServer(SoundConstants.ITEM_DEPLOY_LOOP);