SA-MP Forums Archive
Engine's RPM? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Engine's RPM? (/showthread.php?tid=570088)



Engine's RPM? - HeLiOn_PrImE - 05.04.2015

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


Re: Engine's RPM? - HeLiOn_PrImE - 06.04.2015

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?


Re: Engine's RPM? - [ABK]Antonio - 06.04.2015

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


Re: Engine's RPM? - HeLiOn_PrImE - 06.04.2015

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


Re: Engine's RPM? - Vince - 06.04.2015

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.


Re: Engine's RPM? - HeLiOn_PrImE - 06.04.2015

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


AW: Engine's RPM? - NaS - 06.04.2015

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?


Re: Engine's RPM? - HeLiOn_PrImE - 08.04.2015

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.