10 override void CreateConditionComponents()
16 override bool HasProgress()
21 override bool HasTarget()
26 override bool HasProneException()
34 if (rdt && rdt.IsConnected())
37 if (controlledDevice && controlledDevice.GetPairDevice() != item)
44 if (controlledDevice && !controlledDevice.IsRuined() && controlledDevice.GetArmed())
46 if (
vector.DistanceSq(player.GetPosition(), controlledDevice.GetPosition()) <=
Math.SqrFloat(
UAMaxDistances.EXPLOSIVE_REMOTE_ACTIVATION))
60 override void OnExecuteServer(
ActionData action_data)
62 super.OnExecuteServer(action_data);
65 if (rdt && rdt.IsConnected())
68 if (controlledDevice && !controlledDevice.IsRuined())
70 controlledDevice.OnActivatedByItem(action_data.m_MainItem);
71 action_data.m_MainItem.SetAnimationPhase(
"trigger", 1);
72 action_data.m_MainItem.SetAnimationPhase(
"lever", 1);