SA-MP Server - 54.38.156.202:7777 > Development Blog

New Vehicle System

(1/5) > >>

NiGHTM4RE:
So now a days every race consists of every racer having an infernus. To be honest, that's getting kinda boring. Consequently, I've been working on a new vehicle system that will force every vehicle to have a max speed and acceleration depending on its Horsepower, torque and weight. For example, if the horsepower of a vehicle is high, they will have a high top speed. If the weight of the vehicle is low, like bikes, and/or has a high torque, they will accelerate faster. I've designed this system so we can define the specs for each vehicle in game then it will be written into a file. Immediately, the behavior of every vehicle of that model will change relevant to the stats specified. The goal is to make more cars balanced so the infernus would not be a MUST in every race.

Each player will have the ability to choose whether they want to drive their vehicles with an Automatic Transmission(default) or a Manual Transmission.

Automatic Transmission
- No gear shift acceleration (this was removed due to lag and unexpected acceleration at turns).
- Simply just get in the car and drive!

Manual Transmission
- Upshift using NUM8 and Downshift using NUM2 on the number pad(This can be changed in your settings. NUM8 and NUM2 are default. To change this, modify Special Control Up and Down to your desired keys.)
- Small acceleration boost depending on your Torque to Weight ratio when upshifting at the right time (little to no lag because you're controlling your shifts)
- Decelerates the vehicle if you downshift while going too fast. (another way of slowing down for turns efficiently).

Commands
/vinfo - Shows all the specs of the vehicle you're currently operating.

Every vehicle will belong within a class. The class represents the vehicle's top speed. The classes, listed from slowest to fastest, are D, C, B, A, S, R1, R2 and X.
Horsepower and Weight are factored in to calculate the vehicle's top speed.
Torque and Weight are factored in to calculate the vehicle's acceleration gear boosts.(Manual Transmission Only!).
Original Max Speed is how fast the vehicle used to be before this update.

/speed - Toggles the speedometer/gear and nitrous text label.


/tune - Visit the new Tuner Shop at the red wrench on your minimap to upgrade your vehicle!
As of right now, all you can do in this shop is buy nitrous and switch to the transmission you prefer.
Performance upgrade will be coming soon, so stay tuned!!!



Nitrous
Unfortunately, you cannot buy nitrous at transfender anymore as the script will instantly take it away if you have 0% nitrous on your speedometer. Even buying nitrous at transfender will have NO effect on performance.
However, this nitrous will not only accelerate your vehicle, but it will increase its top speed as you hold it down by adding horsepower and torque to your vehicle specs.(Your new top speed will also be dependent on the vehicle's weight, lower weight = higher top speed while using nos)
When you use it for the first time, it will multiply your speed by 1.5(the script will adjust your final speed relevant to the vehicle's current top speed).(this will take 15 seconds to reload)
You can keep tapping the nos button, but you won't get the 1.5 speed boost until 15 seconds. However, as long as you press the nitrous, whether the 1.5 is reloaded or not, it will always increase your top speed.
When you release the nitrous, the vehicle's top speed will drop back down to normal and your car will instantly decelerate. To combat this, just let go of the gas and keep the nitrous pressed. Then when you see your speed match the vehicle's normal top speed(you have to get to know the car for this), release the nos key/button.
You can use nitrous on bikes as well. However, since we can't attach the nos component, it won't accelerate faster, you will have to rely only on the 15 second reload. Or you can spam the up button to get your acceleration that way.


Original Max Speed

The Original Max Speed is the fastest speed that car is capable of reaching without any scripts or hacks. There will be some vehicles that their top speed depending on their horsepower and torque is greater than their original top speed. The script will detect if that vehicle is approaching its original top speed and will give it a boost to reach its new top speed. It will then try to maintain the vehicle at that speed as long as the vehicle isn't turning or isn't in the air.

Note: There are some vehicles that have not been defined yet due to lack of time.

Myle:
@_@ omg this thing is HOT!!!

rockhardy:
Much WOW!!!   Thank you nightmare.

Slide:
Great work, I'll for sure test this when I got time.  :)

Runey:
New updates every week... That's really cool compared to the times when we didn't have any for 3 years at least.
It will take time for me to get used to all the changes you have made so far (i didn't get to try any for now).

Great work.

Navigation

[0] Message Index

[#] Next page

Go to full version