summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2080,3,787).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-2080,3,787).lua')
-rw-r--r--durt/nodes/(-2080,3,787).lua37
1 files changed, 36 insertions, 1 deletions
diff --git a/durt/nodes/(-2080,3,787).lua b/durt/nodes/(-2080,3,787).lua
index 7489acc..79ffde6 100644
--- a/durt/nodes/(-2080,3,787).lua
+++ b/durt/nodes/(-2080,3,787).lua
@@ -1 +1,36 @@
--- \ No newline at end of file
+local dir_indicator = POS(-2079,7,803)
+local this_dir = false
+
+__approach_callback_mode = 2
+if event.approach and not event.has_entered then
+ atc_set_lzb_tsr(2)
+ atc_set_ars_disable(true)
+ return
+end
+
+if event.train then
+ if not F.has_rc("ARC_LOAD") then
+ atc_set_ars_disable(false)
+ return
+ end
+ if F.has_rc("ARC_LOAD_exit") then
+ atc_set_ars_disable(false)
+ return
+ end
+ if not atc_arrow then
+ atc_send("S2")
+ return
+ end
+
+ if not F.has_rc("ARC_LOAD_rejoin") then
+ split_at_fc("B0")
+ F.add_rc("ARC_LOAD_reverse ARC_LOAD_load")
+ atc_send("A1S2")
+ F.dir(dir_indicator,this_dir)
+ else
+ unset_autocouple()
+ F.remove_rc({"ARC_LOAD_reverse","ARC_LOAD_rejoin"})
+ F.add_rc("ARC_LOAD_exit")
+ atc_send("B0WRD1S6A1")
+ end
+end \ No newline at end of file