TrainHeist

TrainHeist 0.2.26

This is for the coming Rust update. Do not update prior to the game update!
  • Like
Reactions: csaszykj
This is for the coming Rust update. Do not update prior to the game update
  • Like
Reactions: csaszykj
This is for the coming Rust update. Do not update prior to the next game update

Fixed for Rust update
  • Like
Reactions: csaszykj
This is for the coming Rust update. Do not update prior to the game update

Fixed for Rust update
  • Like
Reactions: csaszykj
This update is for the coming Rust update. Do not update prior

Fixed for Rust update
Should fix turret compatibility with PVE plugins
Added config option "Only attack players deemed hostile" - Players are deemed hostile if they attack anything to do with the event (train, scientist, turret, helicopter, crate, sam site), or board the train
Fixed spawns not working when above ground config option is toggled false
Ignore TrainBarricades when determining if track is blocked and should branch or reverse (underground)
Force underground trains to use the work cart engine. The locomotive is too big to fit around some of the underground corners
Track selection will not pick underground station off shoots
Randomize track selection when no hazards are present in underground rails so it doesn't default and loop around 1 section of track
Fixed edge case where turrets could potentially still target NPCs
Underground trains have their lights on all the time
Replaced scientist loadouts on underground trains with tunnel dweller loadouts (only applied if no kits are defined)
  • Like
Reactions: Lei_Wong
Ensure despawn doesn't run if the self-destruct timer is active
Added support to include unloadable wagons in the train layout

Added support for underground rail networks
Added config option "Allow spawns to generate in under ground rail network" to include the under ground rail network
Added config option "Allow spawns to generate on above ground rail network" to include the above ground rail network

Added hook methods;
C#:
void OnTrainHeistStarted()
void OnTrainHeistFinished()
Added API method;
C#:
bool IsHeistTrainCar(TrainCar trainCar)
Custom autoturret fire code to prevent damage to NPCs
  • Like
Reactions: crunch
You will need to test out and adjust the config/data files for this update as the new locomotive and missing wagon will change your balance of risk-reward

Fixed compile error
Removed WagonD layout as it no longer exists, changed layout config option to reflect that
Added config option 'Use locomotive as train engine'
Added new layout datafile for the locomotive engine
  • Love
Reactions: cpl_Copper