summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2077,3,788).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
commit5c7f77725394d47ce0b907aabf885ea207a507bd (patch)
treea1ff9c67ef8f225a259e4c6f4c163a45c58bb870 /durt/nodes/(-2077,3,788).lua
parentb435d1b1b26db6f7c4f3eb589ecf1ed3bb79b57e (diff)
downloadluaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.gz
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.bz2
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.zip
State at 2024-10-15
Diffstat (limited to 'durt/nodes/(-2077,3,788).lua')
-rw-r--r--durt/nodes/(-2077,3,788).lua35
1 files changed, 19 insertions, 16 deletions
diff --git a/durt/nodes/(-2077,3,788).lua b/durt/nodes/(-2077,3,788).lua
index 669248a..ad1d7d2 100644
--- a/durt/nodes/(-2077,3,788).lua
+++ b/durt/nodes/(-2077,3,788).lua
@@ -1,25 +1,28 @@
-local dir_indicator = POS(-2079,7,803)
-local this_dir = false
+local signal = POS(-2077,4,784)
+__approach_callback_mode = 1
-__approach_callback_mode = 2
if event.approach and not event.has_entered then
- atc_set_lzb_tsr(2)
+ atc_set_lzb_tsr(1)
atc_set_ars_disable(true)
return
end
if event.train then
- 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
+ if F.has_rc("ARC_LOAD_AROUND") then --should be light-engine
+ set_route(signal,"Headshunt")
+ atc_set_ars_disable(false)
+ return
end
+ if F.has_rc("ARC_LOAD_LOADING") then -- train is ready to depart with consist
+ F.remove_rc({ --cleanup some loose RCs
+ "ARC_LOAD_LOADING",
+ "ARC_LOAD_RUNAROUND",
+ "ARC_AUTO_LOCAL_LOADING"
+ })
+ set_route(signal,"Arcadius Auto Yard")
+ atc_set_ars_disable(false)
+ atc_send("S1D15SM")
+ return
+ end
+ atc_set_ars_disable(false)
end \ No newline at end of file