1,546 Commits over 1,735 Days - 0.04cph!
Revert
69578 and
69579 for now - I need to sort out a remaining issue first.
CodeGen for the previous commit, update EntityMenu.cs
Fixed the mount option appearing twice on vehicle modules (when holding to interact). Now that vehicle modules inherit from BaseMountable, they still need their Menu_Mount_ShowIf override, but don't need their Menu_Mount entry.
"Occupied" message no longer shows when looking at vehicle modules with no mount points
UpdateFullFlag now propagates up to any parent vehicle(s). Fixes vehicles not being mountable when loading from a save if the vehicle was mounted during the save.
Fixed modular cars no longer correctly supporting the semi-secret mouse steer option
Moved magnet crane animator params to the base class
Added support to EmissionToggle for any emission percent between 0 and 1. Set the magnet crane's rotation light to 20% emission when on. 100% on that material was designed for beacon lights rather than a little cabin light.
Ternary conditional compile fix
Holding the crouch key while in the Magnet Crane now automatically rotates the cabin back to zero
Added a blue light to the Magnet Crane cockpit. When the magnet crane cabin is within 10 degrees of facing straight forward, it lights up
Magnet crane pedals now animate and have IK
Renamed magnet crane `rigfht tread movement` to `right tread movement`
Magnet crane:
- If we use the IntertiaTensor Unity thinks we should have, the crane is really wobbly with the arm extended straight up
- If we use my custom IntertiaTensor (set to values that act like the arm doesn't exist), the crane behaves in unexpected ways with the arm extended far out front
Compromise instead and go 50% of the way between them. 1. Set the inertia tensor to what Unity thinks it SHOULD be for the current arm position. 2. Set the inertia tensor to half way between the above and my custom one.
Magnet crane arm collider edit - reduce the change of the arm colliding entering the ground.
Fixed glitching start/stop sounds caused by poor speed calculations in MagnetCraneAudio
Merge MagnetCraneUpdate -> Main
Try reducing magnet crane interp snapshot count from 32 to 8
Merge MagnetCraneUpdates -> Main
Merge General QOL -> Main
Merge General QOL -> Main
Re-check UpdateFullFlag after mount points are spawned in. Fixes the following bug:
- Server crashes while player is mounted.
- Server loads save and dismounts the player. UpdateFullFlag is checked due to the dismount, and currently loaded mount points are zero, so the vehicle has zero mounted but nevertheless is "full".
- The mount points are then loaded
- Vehicle is now stuck thinking it's fully occupied
▄▊▌ ▅▍▊▅ ▄▆▌▊▆▊ █▋ ▅▆'▌ ▇▌█▊▆▄ ▅▄▄▍ (▆▋▊▋ ▇▆▌█▋ █▄▉▌▅▌ ▆▊▍▌▊▅▊▇, ▆▊▍ █▇ █▌▄▍▊ ▅▋█▅▍ ▌█▉▇█▌▋▋▍▆▌▍█▅▅ ▇▋ ▉█▇ ▄█▋▉▄▌█ ▅▍▊▇▇ ▄▋▅█▅▌ ▆██▌.
█▋▋▉▊▄▋ ▉▌▊█▍▊▌▊▆ ▄▍▆▊▄▍▋▄▌▄█▄█▇█ ▍▅▅▌▇ ▆▇ ▉▌▉▇ (▅▍▄▇▌▊▌ ▆▍▍█▇▌▉ ▄▋▊▉▉▋ ▄▉)
Fixed magnet crane jittery driving feel (due to interpolation setting). Non-movement rotation is still jittery, that's a more ingrained issue.
Magnet Crane turning was still feeling too fast on a live server. Removed the additional steering torque.
Minor magnet crane tweak after further testing
Unity was automatically recalculating the Magnet Crane inertia tensor as the crane arm moved, causing it to get pretty unstable if the arm was up high. Now manually overriding the intertia tensor with values that essentially treat the arm component as weightless (we already did this with the centre of mass).
Magnet crane braking/steering
- Fixed controls working while magnet crane is still starting its engine
- Completed magnet flag TODO
Simplified magnet crane steering code - use torque force only
Magnet crane brake power increase + minor code edit
Magnet crane rigidbody edits
Any player input now starts the magnet crane engine, not just W. Added IsAnyDown() method to the InputState class.
Keep magnet crane physics always active. Fixes the crane sometimes misbehaving and hovering into the air, teleporting etc, but only if nobody is looking at it. Seems to be related to sleeping physics + something with the animator?
Disable the Magnet Crane Animator when its Rigidbody sleeps.
- Fixes the crane mostly not sleeping (wakes soon after it's put to sleep).
- May fix the crane doing crazy movements when it does manage to sleep.
Fixed Always Sprint affecting sprint-key input on things other than player movement
Added physicmaterials to the magnet crane base colliders
Magnet crane now using Continuous instead of Continuous Speculative
Fixed magnet crane jitter following recent wheel changes
Allow left/right mouse button magnet crane arm movement while driving it
More magnet crane driving changes. Adjusted speed and much improved steering ability, based on tests in the junkyard
Some adjustments to magnet crane driving/physics behaviour/feel
Lower magnet crane COM to make sure it never spawns and falls over
More Thread -> Tread renaming
Magnet crane suspension edit. Less wobbly, more stable.