branchrust_reboot/main/vehiclescancel
1,823 Commits over 2,191 Days - 0.03cph!
updated module model/ texture/LOD
Conditionals now check on the server as well, letting conditional colliders get enabled/disabled correctly
Unified engine audio into a central manager. Engine sound now grouped by engine type. New ScraptableObject format for defining engine audio settings.
Add additional wheel data to car audio manager. Move engine start/stop sounds to manager.
Minor edits to repel system. Added testing object to test map.
Working on repel force for non-mounted players inside vehicle. New TriggerPlayerForce script runs on the client.
Adjust player damage multiplier with vehicle speed
Really basic damage trigger implementation for player damage. Using existing systems for now but this isn't going to be good enough for cars.
DON'T return the entity gameObject from InterestedInObject. Some existing trigger scripts do this, but it prevents entities with multiple colliders from working correctly. Updating my trigger scripts here.
Decrease vehicle default pop value from 10 to 2.
Code gen/manifest. Restores lost modularcar pop convar.
Fix incorrect vals on 3mod chassis
Put OnHealthChanged event back to being server-only (as it originally was before I changed it a while ago), but moved it to BaseCombatEntity.Server so it won't confuse future newbies.
Code review: Converted module component update calls to come from the vehicle, instead of using the Unity methods. Removed the OnEnable/OnDisable use entirely.
Prevent "Look rotation viewing vector is zero" complaint from Unity
Another OnValidate switch to PreProcess
Merge coroutine/invoke changes branch
VehicleLiftObstuctionSensor removed. Use a basic TriggerBase instead.
Free the old magnet occupant properly
Update magnet snap to use a similar system to VehicleLiftOccupantTrigger
Fix another null check problem
Rewrote occupant trigger to use a more logical TriggerBase system. Adjusted layers on obstruction sensor. Protocol++.
Code review: Another coroutine>invoke change
Code review: Use Facepunch Invoke instead of StartEnginesCo coroutine
Code review: Facepunch Invoke instead of coroutine for ModuleAddOneFrameWait
Merge from Main->Vehicles
fix fuel tank collider condition
removed unused texture / material
Fix item assigned where it should've been the entity prefab
Prevent error in editor script OnEnable by moving the FindProperty calls
Fix editor script glitch that was breaking Fuel Tank + fix refresh button being disabled.
adding LOD
Regrouped all the module/chassis etc on a single mat/texture
Put all vehicles mats on 0 detail colour alpha by default (representing the 100% health look). Also switched to Rust/Standard shader.
Import MeshBaker plugin (minus Examples directory)
New vehicle spawn presets that use the two new modules (1m storage, 2m passenger)
fix missing reference/ wip LOD
Updated texture array creator (fixes + sort on drop)
Added base layer + detail mask texture array path w/ instanced per-material index
Added "rust/standard indexed" shader set
Fix spawnable script setup
Nuked custom 2d texture array inspector (unity now has built-in)
Some more health fixes. Fixes repairs.
Revert some health changes from my #
39974, so overrides are used correctly.