summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4142,17,-5841).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-4142,17,-5841).lua')
-rw-r--r--durt/nodes/(-4142,17,-5841).lua17
1 files changed, 12 insertions, 5 deletions
diff --git a/durt/nodes/(-4142,17,-5841).lua b/durt/nodes/(-4142,17,-5841).lua
index 8d26b0c..24270e4 100644
--- a/durt/nodes/(-4142,17,-5841).lua
+++ b/durt/nodes/(-4142,17,-5841).lua
@@ -1,11 +1,18 @@
-if event.train and atc_arrow then
- local rc = get_rc() or ""
- if rc:match("DLG_headshunt_south") then
- schedule_in(";01",atc_id)
- return
+if event.train then
+ if atc_arrow then
+ if F.has_rc("DLG_south_reverse") then
+ schedule_in(";01",atc_id)
+ return
+ end
+ else
+ if F.has_rc("DLG_south_reverse_couple") then
+ atc_send("CplD1S2")
+ return
+ end
end
end
+
if event.schedule then
if event.msg == atc_id then
schedule_in(";01",event.msg)