Jump to content

Gear for cars


Recommended Posts

Yes, but not too realistic

You define the maximum speeds for each gear and use onClientRender & setElementVelocity to stop the vehicle going faster. Although it's possible to also calculate the acceleration it's not that easy. (I guess I couldn't do it). Also the vehicle sound effects would be useless.

@some dev: Does SA just play the samples in an order or is speed of the vehicle or something like that involved too?

Link to comment

GTA must have such variable... When vehicle changes gear you can see the hood going down, which is caused by "releasing" acceleration pedal, you're not releasing it but the engine itself does. The Camera Hack mod has speedometer with 2 gauges. One shows the speed of the vehicle and another one shows RPM (revolutions per minute, engine's speed). You can't calculate them because every vehicle has different gears. Maybe certain speed has certain gear. eg. when you're at 100mph, that's for instance 3rd gear and every vehicle has the same stats... but that wouldn't be realistic and therefore not in GTA... But someone could check that and confirm that I'm not correct :P

Link to comment
  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...