ZZ-Cat / raildriver

Smart Locomotive Controller script for Garry's Mod Train Build Servers.
GNU Affero General Public License v3.0
2 stars 0 forks source link

refactor(main): :recycle: AdvDupe2 Compatibility #73

Closed ZZ-Cat closed 2 months ago

ZZ-Cat commented 2 months ago

Overview

This Pull Request reinstates Advanced Duplicator 2 compatibility and uses the new tick event handler for managing the Runtime State Machine.

Details

The traditional duped(), dupefinished() and first() functions are used to initialise the runtime state, as well as tell the Runtime State Machine when to initialise the main Expression 2 script.

A timeout of 10 ticks is used in case loading the script times out.