summaryrefslogtreecommitdiff
path: root/Tyard/nodes/(-4167,12,-2742).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
commit572b186e28ddc2a630613765c0f0780b4664380f (patch)
treee93412c97c577b04bbf12749bfe61470e001063a /Tyard/nodes/(-4167,12,-2742).lua
parent5c7f77725394d47ce0b907aabf885ea207a507bd (diff)
downloadluaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.gz
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.bz2
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.zip
State at 2024-10-15HEADmaster
Diffstat (limited to 'Tyard/nodes/(-4167,12,-2742).lua')
-rw-r--r--Tyard/nodes/(-4167,12,-2742).lua42
1 files changed, 0 insertions, 42 deletions
diff --git a/Tyard/nodes/(-4167,12,-2742).lua b/Tyard/nodes/(-4167,12,-2742).lua
deleted file mode 100644
index fe1b446..0000000
--- a/Tyard/nodes/(-4167,12,-2742).lua
+++ /dev/null
@@ -1,42 +0,0 @@
--- Headshunt Exit Controller
-if not F.yard_active() then return end
-local exit_signal = POS(-4178,15,-2742)
-__approach_callback_mode = 1
-if event.approach and not event.has_entered then
- atc_set_ars_disable(true)
- atc_set_lzb_tsr(1)
- return
-end
-
-if event.train then
- if atc_arrow then
- if F.has_rc("TY_DEPART") then
- print("Train departs yard to mainline at full speed")
- unset_autocouple()
- F.remove_rc({"TY_FINAL_COLLECT","TY_DEPART"})
- F.remove_rc_match("TY_LOCOS_%d+")
- F.remove_rc_match("TY_WAGONS_%d+")
- atc_set_ars_disable(false)
- set_route(exit_signal,"Exit Yard")
- atc_send("S6D10SM")
- schedule_in(";05","deactivate_check") -- wait a little to ensure train is clear from headshunt to deactivate yard
- print(F.get_rc_safe())
- return
- end
- else
- atc_send("BBOL")
- F.error(true)
- end
-end
-
-if event.schedule then
- if event.msg == "deactivate_check" then
- if not atc_id then
- F.yard_active(false)
- print("Yard Disabled")
- else
- schedule_in(";05","deactivate_check")
- return
- end
- end
-end \ No newline at end of file