branchrust_reboot/main/WorkCartcancel
367 Commits over 212 Days - 0.07cph!
Speed calculation fix + throttle adjust
Fix near desired speed calculation
Comment notes and a minor change to train audio
Refactor some track selection code into BaseTrain
Compile fix for track selection
Update to the audio manager, do some tricks with the throttle
Initial work on WorkCart audio manager
When kinematic trains died and went non-kinematic, they'd sometimes be partly inside something which would cause the rigidbody to go flying off. For simplicity, have trains just gib immediately on death (like most other vehicles) instead of going into "corpse" state for a few seconds.
Add grounded check for fake drag
- Add fake side friction for WorkCart when off track, since it doesn't use wheel colliders
- Add required vehicle methods: GetLocalVelocityServer, GetAngularVelocityServer, MaxVelocity
Refactor the basic train movement and collision code into BaseTrain
Move train collision code to BaseTrain
- Get WorkCart rigidbody to sleep and wake appropriately
- TriggerBase now passes the actual collider that was hit in OnObjectAdded as well as the object it's on, allowing WorkCart collision effects to handle GameObjects that have multiple colliders
Parent trigger size adjustment
More efficient speed calculation for modular vehicles
Hurt triggers and repel triggers for WorkCart
Code gen and manifest update, fixes disconnect when damage FX play on client
Only allow looting WorkCart fuel while standing on its platform
Disable WorkCart monitor canvas when >10M away
Add collision damage FX for WorkCart
Adjust top speed/acceleration/drag/throttle settings
Adjust WorkCart acceleration and top speed
Increase force-to-derail threshold
Don't show mount interaction on the client if train is dead
Improve static collision handling (+static collision bugfix)
Improve WorkCart collision forces
Add collision damage to WorkCart. Also have the WorkCart jump and shift a bit when it's destroyed, causing a more convincing derailment
Remove unused code from TrainEngine.Collision
WorkCart headlights off by default
Updated WorkCart headlights
Revert packages-lock.json change from #
55189
Send train junction select commands to the client-side as well. Show them on the WorkCart display monitor.
Solve the rear wheel junction issue (see code comments)
Increase throttle setting change speed when holding the key
Improvements to WorkCart handling of track junctions. Now correctly selecting left/right orientation paths, or the straightest path if no key is pressed.
Adjust WorldSpline gizmos
Improve train track collation - don't connect track at extreme angles.
Adjust workcart engine power
Allow WorkCart driver to hold A/D to select a track when passing through a junction.
WorldSpline NRE bugfix.
Prevent PathInterpolatorLUT complaining about being uninitialised during initial generation
Add some more bits to the train tunnels scene for testing
Added code for damaged and destroyed FX, using placeholder FX