What does the script do ?
This script prevents powergaming: Example: if you have a Massacro, you won’t be able to drive fast on dirt road exept if you put off-road wheels, but in this case, you will be slower on normal roads. Instead of setting up rules based on fairplay, the script does the job
Basically, if your vehicle is not equipped with off-road wheels, it will lose some grip and traction if you drive off the road above a certain speed.
If you put off-road wheels on Compact, Sedan, Coupe, Muscle, Sport Classic, Sport or Super cars, the vehicle’s max speed is reduced, even on roads.
Video preview : Anti Vehicle Powergame preview
Features
-
If your vehicle isn’t equipped with off-road wheels and you drive above a certain speed off road, the grip and traction are reduced.
The “speed limit” is a random number between 65 and 90 km/h reset every 3 seconds, so if you are lucky, it’s 90, on the contrary, it will be 65.The amount of grip and traction depends on the vehicle’s class:
- Very big loss of traction : Super cars
- Big loss of traction : Sports
- Small loss of traction : SUV
- Standard loss of traction : All of the other classes
-
If your car is a Compact, Sedan, Coupe, Muscle, Sport Classic, Sport, Super or a vehicle in the ListVehicleLimited (L.8 of client.lua), its speed is reduced if it has off-road wheels equipped(Configurable on L.5 of client.lua).
Usefulness of the list: if the car belongs to the emergency vehicles class, it’s impossible to differentiate if it’s an Offroad or a Sport and we want sport to be limited (sport car is not intended to be equipped with off-road wheels), so we have to differentiate manually.
/!\ If you have modded emergency cars, don’t forget to put label names of the Compact, Sedan, Coupe, Muscle, Sport Classic, Sport and Super cars in the list. -
If you equip a super car with off-road wheels, the car won’t drive (we need realism). (Configurable on L.4 of client.lua)
-
If you put off-road wheels on any vehicle, the suspension level is reset to its higher level and can’t be lowered while the wheels are one (Configurable on L.3 of client.lua)
-
Debug text : tells you if you are considered on the road / off the road and the “max speed” to drive normally without off-road wheels on off road.
/!\ loss of optimization if set true (Configurable on L.2 of client.lua) -
The script is annoted if you want to understand better how it works
Patchnotes
- New lists of exceptions : Off-road vehicle who must be limited (some are to win RP) → The speed reduction is lower when the class is Off-Road
Vehicle Not limited (some vehicles are Off-Road but not in the right category so it should not be limited when equipped with off-road wheels. Example : Seminole Frontier / Rat Loader - Speed reductions are modified
- Sport classics cars now lose grip as same as a sport car (before, it lost grip as a standard vehicle)
Performance
0.00 ms normally
0.04 ms when Debug Text is On (not useful on a daily usage)
Code is accessible : Yes
Subscribtion-based : No
Lines (approximatly) : 190
Requirements : None
Support : No
You can get this script here : https://lennys-scripts.tebex.io/