TrainHeist

TrainHeist 0.2.38

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
Ensure despawn timer always includes crate hack time
  • Like
Reactions: Red
All train heist cars ignore the terrain collider. You don't need to add terrain triggers for this to work
Added config options "Use spawn overrides" and a "Preferred spawn overrides" list that you can enter positions in. This will evaluate valid track positions close to these point randomize the starting position between the closest valid points near the positions in the list
Added support for SamSites
Adhere to spawn amount for APC spawns
Ignore track prefabs that register as a loop because they lead on to a rail path loop
Reverse direction if train comes to a complete stop for more than 3 seconds
Added support for spawning APCs on trains (default layouts have these disabled, you will need to add them if you want to use it)
This plugin update is for the coming Rust update. It will only work on staging branch until then

Fixed for Rust update
Attempt to not select tracks that don't have further tracks connected
Track selection changes for better compatibility with new rail branching and rail sidings
Added support for rail loops made out of the rail prefabs (your track pieces need to be properly aligned, and you can't scale them)
Changed NPC parenting to use the trains parent trigger instead of manually parenting
Turrets only target players
Fixed loot max value being 1 lower than set
Disable front and rear coupling points so nothing can be coupled to the train
Custom turret behaviour that calls no hooks so other plugins cant fuck with turret targeting
If train has hazards both in front and behind it set the fastest track speed and crash into whatever is blocking us
  • Like
Reactions: TwoShoes