branchrust_reboot/main/WorkCartcancel
367 Commits over 212 Days - 0.07cph!
More spline data saving work
Make WorldSplineSharedData actually update the prefabs properly when regenerating
More train track spline work
Add method to regenerate all spline shared data for the project at once
Reverting spline asset path code for now as GetAssetPath didn't work on prefab variants and GetPrefabAssetPathOfNearestInstanceRoot caused the Unity editor to crash on certain prefabs
Fix several bugs with spline data generation
Compilation fix for editor vs build
Fix spline data assignment. Previously if two prefabs shared the same data but one changed, it would incorrectly update the data for both. Now checking the prefab path
Merge WorkcartRotation -> Workcart
Improved data index system for the world splines. Fixes new data getting generated sometimes by re-scanning for existing data. Also allows different prefabs with the exact same spline data to share the same data.
Added profiling for train code.
Merge /Workcart/SharedSplineData -> /Workcart
Fixed 72m trail tunnel stop spline not going all the way
Fix colliding train not moving after side collision train moves away
WorkCart now handles side-on collisions with other trains at crossings
Minor edits to collision handling
Increase collision damage, remove unused var
Set up a perpendicular rail crossing on my test map
Apply the effect of gravity on sloped track
-Only allow mounting WorkCart when already standing on its platform (prevent drive-by mounting by jumping at the right moment)
-Fix bounds.Contains use, since it's AABB only, not rotated (Unity pls)
Add mount passthrough on WorkCart glass entity, so the player can still mount when looking at the windows.
Adjust train engine speeds
Another go at accounting for secondary forces on kinematic trains - e.g. a train hitting a car that's up against a wall. Better result this time, so putting this one in officially.
Tweaking static obstacle handling
WorkCart audio, don't play oneshot sounds if far away
WorkCart audio, use blended loop for the engine loop
- Removed no-longer-used WorkCart destroyed damage FX
- Updated damage effects for light/medium/severe damage
Replace workcart placeholder gibs model with the real one
Trains tunnels test scene extra workcarts
▅▊▅▌▄▋ ▄▍▇ ▊▄▇▅▇▅ ▄▊▋▆▄. ▇▉▊▉▇ ▆▊▇▅ ▅▍▆▍▄▇▄▄ ▍█▆▋▋▌▊ ▆▋▊▄█ ▆▄█ ▇▇▋▉▄ ▉▉ ▌▄▊▋▅▋ ▌█▅▄ ▄▄▊▇▄ ▆▊ ▊▍▆▉ ▉▊▌▍ ▄▉▍▉ ▇▋▄ ▉▇▉▆▅▍-▊▍█▇ ▉▄█▆▇▄ ▇▄▅▍▅▆▄▆ █▋▌ ▅▆▍▌▋▇-▍█▇▋ ▋▅▊▍▄ ▌▅▄▊▇▋▊█, ▉▉▆▋▌'▆ ▇▇▌ ▇▅▉▋ ▉▉▋▊▉▋▄▆▉▌█▍▅█
Add parenting volumes to the WorkCart ladders, making the ladders usable while the train is moving
- Stop WorkCart if there's no-one on it
- Fix monitor display bug
- Add glass break effect
- Adjust glass protection
Respawn glass after thirty minutes, dependent on no players being nearby
Fixed glass colliders, add glass protection type
Initial work moving WorkCart glass to a separate sub-entity
Adjust collision damage forces
Train protection values edit
New handling for collisions between kinematic trains
Initial setup for train better collision handling
Refactored train collisions trigger, working on improving train collision physics forces