summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2077,3,788).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-2077,3,788).lua')
-rw-r--r--durt/nodes/(-2077,3,788).lua24
1 files changed, 16 insertions, 8 deletions
diff --git a/durt/nodes/(-2077,3,788).lua b/durt/nodes/(-2077,3,788).lua
index 26580c1..669248a 100644
--- a/durt/nodes/(-2077,3,788).lua
+++ b/durt/nodes/(-2077,3,788).lua
@@ -1,17 +1,25 @@
-__approach_callback_method == 1
+local dir_indicator = POS(-2079,7,803)
+local this_dir = false
+
+__approach_callback_mode = 2
if event.approach and not event.has_entered then
- if not F.has_rc("ARC_load_reverse") then return end
- atc_set_lzb_tsr(1)
+ atc_set_lzb_tsr(2)
atc_set_ars_disable(true)
return
end
if event.train then
- if atc_arrow then
- if F.has_rc("ARC_load_reverse") then
- atc_send("S0WRD1A1S3")
- F.add_rc("ARC_load_rejoin")
- return
+ if not atc_arrow then
+ if F.dir(dir_indicator) == this_dir then
+ atc_send("B1")
+ end -- no else, should never happen
+ else
+ if F.has_rc("ARC_LOAD_load") and (F.dir(dir_indicator) == not this_dir) then
+ F.remove_rc({"ARC_LOAD_load"})
+ F.add_rc("ARC_LOAD_rejoin")
+ atc_send("B0WRD1S2")
+ else
+ atc_send("A1S2")
end
end
end \ No newline at end of file