Custom vehicle for uSURVIVAL
*** System in development ***
This draft addon will give you headstart to create your own vehicle system.
In this example I use a car with unity wheel collider and boat/spaceship with rigidbody force.
With some modification it could be possible to use others vehicle type.
– Player able walk inside ship/boat/car while someone else driving.
– Vehicle with passenger.
– Sail boat, Motor boat, Car and Spaceship example.
– Vehicle can be save in database (position, rotation, fuel).
– Driver seat to control the vehicle.
– Normal seat to be a passenger.
– Fuel system, add/remove fuel with items.
– Item can be toggle to be usable or not in a vehicle.
– Can spawn vehicle with item from player inventory.
– Monster only attack vehicle with passenger.
– Others players can attack player inside vehicle directly.
– Vehicle can be damaged and destroyed.
– Demo scene with islands, parcour and fueling station.
– Sync light, thruster, skidmark and tire smoke effects.
– Tornado enemy.
– Engine sound for each vehicle.
– Include core addon Additional Interaction.
Build with Unity 2021.3.21f1 and uSURVIVAL 1.86
– Update CustomArtShared to 1.2
– Update demo install
– Change all sounds file format to wav (lossless)
– Update demo install
– Update demo installer
– Add vehicle engine sound
– Add spaceship drop on ground if no fuel
– Fix car vehicle model warning on import
– Update to uSurvival 1.86
– Update documentation
– Add demo install for testing (only in a new default uSurvival unmodified)
– Update documentation and reorder step
– Vehicle key not activated while chat
– Rotation damage do dmg without player seated
– Add separate layer to know if we are in the vehicle
– On boat, change how the reverse/forward managed
– Example to kill a player going under the boat
– Add separate speed for reverse, turn and up/down on spaceship
– Adjust spaceship speed value in code and in prefab
– Adjust collider on boat prefab
– VehicleCar, added variable in inspector to set sideway velocity for car wheels skid and smoke
– VehicleBoat, Add clamp for angle and reverse force
– Add more comment to code
– Remove collision with itemdrop layer
– Update documentation – review step 1 and 4
– Add a way to damage vehicle if too much rotation
– Add Tornado enemy
– Adjustment on the vehicle sail and cannon prefab, collider and id
– Fix exit position
– Merge EXPERIMENTAL step in installation
– Add check in case of player(driver) appear before the vehicle on remote player
– Add sail boat with ladder
– Ui vehicle will not show fuel if vehicle do not use fuel
– Rework demo scene, larger water area, more islands
– Contain EXPERIMENTAL packaged version, to be able walk inside ship/boat while someone else driving
– Update documentation – Step 13 Scene, to manage database vehicle save
– Rename some prefabs
– Remove some dev logs
– Remove old boat example
– Remove unuse collider and gameobject on boat and spaceship
– Adjust auto roll back speed on spaceship by distance from level
– Vehicle now saved in database: position/rotation/fuel
– Key for auto move forward on car/boat/spaceship (default: O)
– Add reverse speed value on boat
– Add example for sail boat (with sail open/rotate) with step hold speed
– Add boatsail itemdrop
– Validate with uSURVIVAL 1.85
– Can use mouse to control direction of vehicle
– Auto roll back on spaceship
– Add no air freeze when no driver on boat, must be setup on Boat Controller component on boat
– Add car parcour in scene
– New demo scene
– 3 new vehicles, boat, car, spaceship
– Boat controller
– Fueling station (fuel vehicle in range)
– Code cleanup
– Initial release