Added support for branch switching if obstacles are in the way.
Added option to attach carriages to the train with their own loot, scientist and turret layouts
Prevent uncoupling of carriages (workaround currently pending hook approval and oxide update)
Moved loot table to its own data file
Moved train engine layout to its own data file, added separate data files for each carriage layout
Changed spawn position calculation, since the rails are in use now it will sort all the potential spawn positions by the one that is furthest away from players and other train cars.
It will determine whether it has the required track space to spawn the engine and however many carriages you have setup. If it doesn't it will pick the next best spawn position. If it fails 3 times it will abort and restart the spawn timer
Added config option "Use TruePVE exclusion hook" for turret targeting which when enabled it will tell TPVE to allow sentry turrets to shoot at players. This is disabled by default, you will be better off adding a exclusion to TruePVE but its there if you want to use it
Added config option "Helicopter Settings"/"Loot crates to spawn"
Added config option "Train Settings"/"Health regeneration per second"
Added config option "Train Settings"/"Train engine force"
Added config option "Train Settings"/"Train max speed"
Added config option "Train Settings"/"Amount of damage required to slow the train down"
Added config option "Train Settings"/"Amount of time the train slows down when damaged (seconds)"
Added config option "Train Settings"/"Maximum velocity the train can travel when slowed due to damage"
Added config option "Train Settings"/"Carriage layout"
Added chat command '/trainheist startnear' for admins to start the event near your position