Jump to content

Gear for cars


Recommended Posts

Posted

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?

Posted

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

  • 10 months later...
Posted

there is such func in handling.cfg

also, it has real purpose in game, the speed lil drops on auto gear-switch, then gets faster, and when the handling editing will be relased it will be easy to manipulate that

Posted

about sounds:

gta dont care much about sounds and gears.. it just plays sound loop with changing pitch, until car get max speed. sometimes you can hear your veh have 10 or so gears :P

Posted
about sounds:

gta dont care much about sounds and gears.. it just plays sound loop with changing pitch, until car get max speed. sometimes you can hear your veh have 10 or so gears :P

nope, gear count are specified in handling.cfg

Posted

Woudl be possible to do, if you dont care about the sounds. Just make the car stop going faster @ 20KM/h (RPM caughe maybe?) and then a button to make it shift up, then at 40-50KM/h or summit. But then again, sound would be not realistic.

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...