Advanced Vehicle System
What it doesSometimes with considerably large builds, we need to place many vehicles scattered around the map to make the build usable in a server or game mode. In very large builds, the absolute maximum limit for vehicles may not be enough to fill the build with an adequate amount of vehicles, and usually using the maximum number of vehicles in a server causes a very slow connection to the clients connected to the server.
This mod allows users to place as many vehicles as they like on a server, while still maintaining a quick connection to all the clients connected to the server.
How it worksWhen vehicles are not within a radius close to a player, they are deleted, meaning that the vehicle object is no longer causing strain on the players. When a player re-enters the given radius of the vehicle, it will be re-spawned.
The main cause of connection strain however is not by stationary vehicles, but rather by vehicles in use. Stationary vehicles act mainly as static shapes until they are in motion and therefore mainly cause rendering strain on the client side.
To fix the connection strain caused by many vehicles being in use at the same time, a limit for number of re-spawning vehicles has been implemented. The default number for this is 5. Whenever there are 5 or more people using vehicles, then vehicles which have been deleted will no longer re-spawn until the number of people who are using vehicles drops below 5 again. This makes it virtually impossible for more that 20 people to use vehicles at the same time.
PreferencesYou can change a few preferences by changing the following variables through the console:
- $SRV::VehicleCheckRadius << The radius of the check for players around any vehicle (default 150)
- $SRV::RadiusCheckPeriod << The period for any vehicle to check for new players in their radius (default 1000 ms)
- $SRV::MaxUsageSpawn << The number of players that can use vehicles before they stop respawning (default 5)
These preferences are not saved upon quitting.
If you do not know how to change these, then it's probably for the best sorry lol.
DownloadIf you like this check out more of my add-ons