branchrust_reboot/main/snowmobilecancel
                         
                     
             
         
     
    
        
460 Commits over 334 Days - 0.06cph!
    
    
    
        
            
            
            
                
                Increase snowmobile wheels to six wheels instead of four. Adjust various stats. Driving well now.
 
                
                
                
                
                
             
         
        
            
            
            
                
                fuel gauge for snowmobile
initial setup
materials and textures
needs lods
 
                
                
                
                
                
             
         
        
        
            
            
            
                
                More snowmobile physics tweaks
 
                
                
                
                
                
             
         
        
        
        
            
            
            
                
                Steering direction bugfix
 
                
                
                
                
                
             
         
        
            
            
            
                
                Remove extra box collider that was causing erroneous dismounts
 
                
                
                
                
                
             
         
        
            
            
            
                
                Move rear passenger to the new spot no Tomaha
 
                
                
                
                
                
             
         
        
            
            
            
                
                Added damage texturing to rear storage seat.
Updated colliders and storage interaction.
 
                
                
                
                
                
             
         
        
            
            
            
                
                Fix rear storage seat spawning four rear storage seats as gibs
 
                
                
                
                
                
             
         
        
            
            
            
                
                Reverse tread anim direction
 
                
                
                
                
                
             
         
        
            
            
            
                
                Assign new updated model to the Tomaha
 
                
                
                
                
                
             
         
        
            
            
            
                
                Various snowmobile physics adjustments/updates. Also show visual steering on the temp ski visuals.
 
                
                
                
                
                
             
         
        
            
            
            
                
                ▉██▌▇▅ ▍█▍▉▊ █▅▍█▊▊▇▉▆▉, ▋█▋▉▍▍▋ ▌▋▋▌▊█▉▉ ▇█▌
 
                
                
                
                
                
             
         
        
            
            
            
                
                Added rear storage/seat gibs 
updated prefab
 
                
                
                
                
                
             
         
        
            
            
            
                
                updated decal sheet to include the fuel gauge
updated the model to fix the tilt in the track, also resized it a little to compensate for the change
renamed track textures to old UV3 naming convention
added rear storage and extra seat, textures/materials and lods
updated materials for the snowmobile
updated prefab.
 
                
                
                
                
                
             
         
        
            
            
            
                
                Adjust all car settings on snowmobiles
 
                
                
                
                
                
             
         
        
        
            
            
            
                
                Merge SnowmobilePhysics -> Snowmobile
 
                
                
                
                
                
             
         
        
            
            
            
                
                Converted all modular cars to use my new shared light atlas
 
                
                
                
                
                
             
         
        
            
            
            
                
                Tomaha headlight emission edit
 
                
                
                
                
                
             
         
        
            
            
            
                
                Set up a new texture atlas and material called Shared_Light that all new vehicles can share. I've taken the light textures from the Tomaha snowmobile and added them here, updated the light UVs to match the new textures, and ported the lights over to used this new atlas. Going forward, we should be able to use this one material for all vehicle lights in the game.
 
                
                
                
                
                
             
         
        
            
            
            
                
                Setting up a material and atlas texture for a shared light, where all/most vehicles can share the same light material
 
                
                
                
                
                
             
         
        
            
            
            
                
                include .mat for the change of textures. 
Materials properly applied.
 
                
                
                
                
                
             
         
        
        
            
            
            
                
                Changed the Tomaha snowmobile headlight materials and UV maps to match the standard headlight textures, so they can be emissive.
 
                
                
                
                
                
             
         
        
            
            
            
                
                Updated Tomaha lights to use the new separated models. Still needs a mat/UV edit
 
                
                
                
                
                
             
         
        
            
            
            
                
                Fixed missing texture references in Tomaha snowmobile material (from 67510)
 
                
                
                
                
                
             
         
        
            
            
            
                
                updated snowmobile model and textures
rear suspension and track fix, ski shoulder 'boot' fix
separated front and rear lights
updated materials and prefab
 
                
                
                
                
                
             
         
        
        
        
            
            
            
                
                Temp visuals for rear tread suspension on the Tomaha as well (the other snowmobile has no rear suspension)
 
                
                
                
                
                
             
         
        
            
            
            
                
                Hook up the temp ski suspension visuals
 
                
                
                
                
                
             
         
        
            
            
            
                
                Setting up temporary suspension visuals
 
                
                
                
                
                
             
         
        
            
            
            
                
                It was indeed a bug with FormerlySerializedAs and child prefabs. Hacked in a better fix. Here's the exact bug:
- Base prefab has the new name (isMobile).
- Child prefab has the older name (needsVehicleTick).
- Base prefab sets isMobile to true.
- Child prefab has needsVehicleTick on false.
What should happen: Unity erases the needsVehicleTick entry and replaces it with an isMobile one.
What actually happens: Unity won't let you change isMobile in the inspector on the child at all, and it carries whatever value needsVehicleTick was last set to.
My fix here: Erase the needsVehicleTick entries manually from the child seat .prefab file data. Looks good; they now inherit correctly from the parent's isMobile setting.
 
                
                
                
                
                
             
         
        
            
            
            
                
                Unity seat child prefabs were very confused about how to handle the new isMobile setting - I'm guessing due to its use of FormerlySerializedAs? Hacked the .prefab files directly to fix it
 
                
                
                
                
                
             
         
        
            
            
            
                
                Set isMobile back to true on vehicle seats. This is actually needed to update the position of the LocalServerPlayer. This fixes snowmobiles not always allowing dismount.
 
                
                
                
                
                
             
         
        
        
            
            
            
                
                Add convar-based debugging for ValidDismountPosition
 
                
                
                
                
                
             
         
        
            
            
            
                
                Snowmobile temp tread visuals edit
 
                
                
                
                
                
             
         
        
            
            
            
                
                Temp tread visuals setup for the other snowmobile. Remove the old temp visual wheel
 
                
                
                
                
                
             
         
        
            
            
            
                
                Set up tread animation for the Tomaha.
 
                
                
                
                
                
             
         
        
        
        
            
            
            
                
                Reduce snowmobile performance with damage
 
                
                
                
                
                
             
         
        
            
            
            
                
                Magnet crane can lift snowmobiles
 
                
                
                
                
                
             
         
        
            
            
            
                
                Add snowmobile rider protection (wood armour equivalent).
Set snowmobile decay time.
 
                
                
                
                
                
             
         
        
            
            
            
                
                Always mount the snowmobile driver seats first
 
                
                
                
                
                
             
         
        
            
            
            
                
                Fix Tomaha brake lights not showing up