diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-10-15 22:37:32 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-10-15 22:37:32 +0200 |
commit | 5c7f77725394d47ce0b907aabf885ea207a507bd (patch) | |
tree | a1ff9c67ef8f225a259e4c6f4c163a45c58bb870 /durt/nodes/(-4120,13,-5818).lua | |
parent | b435d1b1b26db6f7c4f3eb589ecf1ed3bb79b57e (diff) | |
download | luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.gz luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.bz2 luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.zip |
State at 2024-10-15
Diffstat (limited to 'durt/nodes/(-4120,13,-5818).lua')
-rw-r--r-- | durt/nodes/(-4120,13,-5818).lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/durt/nodes/(-4120,13,-5818).lua b/durt/nodes/(-4120,13,-5818).lua new file mode 100644 index 0000000..ae273e3 --- /dev/null +++ b/durt/nodes/(-4120,13,-5818).lua @@ -0,0 +1,35 @@ +--[[ARRIVALS SOUTH END]]-- +local departures_section = "242871" +local arrival_indicator = POS(-4107, 20, -5793) +if F.has_rc("DLG_NOSHUNT") then return end +__approach_callback_mode = 1 + +if event.approach and not event.has_entered then + atc_set_ars_disable(true) + atc_set_lzb_tsr(2) + return +end + +if event.train then + if not F.has_rc("DLG_FREIGHT") then --not road loco + if not F.has_rc("DLG_SHUNTER") then --not yard shunter, do everything else here + atc_set_ars_disable(false) + return + end + --do yard shunter stuff here + atc_send("B0WRD1A1S3") --bounce to north end for classification + return + end + + --road loco arriving from TYARD. Send to storage for servicing/redeployment + split_off_locomotive("B0S0", 3) + local cmd = { + "DLG_HS_S", + "DLG_HS_KICKBACK", + "DLG_Loco_Storage" + } + F.add_rc(cmd) --send the road loco to collect departures or storage + atc_set_ars_disable(false) + F.indicator(arrival_indicator, true) --send the signal to then yard shunter + return +end
\ No newline at end of file |