branchrust_reboot/main/snowmobilecancel
378 Commits over 120 Days - 0.13cph!
Fixed Tomaha rear light not lighting up when braking. Removed unused VehicleLights script.
Fixed modular car camper module rear lights being always on, and fixed some modular car taillights not lighting up when braking.
Subtracted
69268 (accidentally deleted bone setup), and brought back the separate SMLights model. Updated VehicleLight settings.
Added support for VehicleLight to have a different renderer material index per renderer - needed for generic snowmobile. Updated all existing VehicleLights to the new serialized fields.
Get snowmobile vehicle light scripts automatically
VehicleLight script now support multiple renderers per script. Updated all VehicleLight users. Set up the generic snowmobile's new lights.
Merge GMLights -> Snowmobile
Bump anims triggered more often, especially at low speeds
Higher threshold for bumping
At minimum strength, still weight the animation at at least 30%
Changed snowmobile bump animation to use layer opacity
Average the bump anim velocity values a little - compare the two most recent with the previous two
Allow bumps to play a little more often
New (better?) bump anim trigger code
Scrap the recent velocity array, use a single value instead
Only bump on velocity reductions
Improved PlayReactionAnim parameter code
0 forwardReaction value by default
Start a new bump reaction if we're not already reacting, else just modify the parameters as it plays
New bump reaction animation code. Also changed sitReaction from a bool to a trigger.
Disabled the bump anim code again until the new system is set up.
Re-enabled bump animation, no improvements to the code yet.
Fixed snowmobile water sloshing sound when initially spawned outside of player range
Snowmobile engine audio now correctly takes the spin slip calculation into account. Enables more "Petur-style" RPM when attempting to climb hills etc.
Updated RigidbodyInfo to work in the idiosyncratic PrefabAttribute way
Cleaned up ski suspension code duplication
Extra null check on GetIdealMountPoint
Fixed the snowy edges of ice lakes also being considered ice by modular cars and snowmobiles. On the other hand, icebergs (which are quite snowy on top) which were considered ice are now considered snow.
SnowmobileDriverSeat, set mounted animation speed back to 1
Merge animationtime_swapseat_fix -> Snowmobile
Disable the animator when a snowmobile is off and not moving. Fixes the Tomaha suspension snapping to the wrong position when active updates stopped.
Make sure one final forced update tick happens when update tick is stopped, even if the player is looking away
Fixed bugs with update ticks on ground vehicles. VehicleChassisVisuals was assuming that UpdateTick would always run.
Fixed 6cm side offset in snowmobile driver eye position
Changed snowmobile starting fuel from 20 to zero
Simplified the ground material code - reusing existing TerrainConfig data.