Engine's RPM?
#1

Hey guys, I'm trying to build an RPM indicator. Is there anyway I can detect the engine's gear and RPM?
Reply
#2

OK I learned that you can't physically detect the gear, but would the top speed split perfectly into the number of gears?
Meaning if the top speed is 180 the 1st gear shift would be 35, second to 70 and so on?
Reply
#3

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
OK I learned that you can't physically detect the gear, but would the top speed split perfectly into the number of gears?
Meaning if the top speed is 180 the 1st gear shift would be 35, second to 70 and so on?
It wouldn't split perfectly. GTA SA gears aren't really real gears at all from what I've seen
Reply
#4

People made mechanical gear systems, but I don't understand their methods...
Reply
#5

Check out my include here: https://sampforum.blast.hk/showthread.php?tid=438678
Can retrieve the number of gears as well as the engine type.
Reply
#6

I learned from this topic, the data from the handling file is inaccurate. How do you get the car acceleration with your include?
Reply
#7

You can make the vehicle stick to a defined speed, so with every gear you can limit the speed of the vehicle.
But they will not be synced with the GTA gears.

I have an include with all max. vehicle speeds (gathered with GetVehicleVelocity, like in the topic you mentioned above), which could be split in gears. Would that help?
Reply
#8

Unfortunately no. I've done some tests and I saw that the gears don't shift after the same time interval.
It's clear to me now that I can't make a fairly accurate RPM indicator. It would've been nice for later updates.
Anyway, since I can't do it, I'll just make it indicate speed. Event without the RPM indicator, this script has it's share of little features and I think people will like it and find it useful.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)