09.03.2014, 18:50
Quote:
Alright guys, I think the magic number is ~196.72 (for KM/H), let me explain you how I found it:
- I assumed that the coordinates system in GTA is equal to 1 meter - I calculated the distance (in GTA coords) travelled in 1 second by an Infernus, which resulted in ~67 coords/s = ~240 km/h (the same in handling.cfg ??) - Now I compared the speed traveled to the vector that the GetVehicleVelocity gave me (On a single axis) and was about 1.22 Ta da! Now just make a proportion: 1,22 : 240 = 1 : x x = 196.72 Prove it yourself if you want, the vehicles seems pretty much to respect their top speeds declared in handling.cfg file. EDIT: Ok this value gives an accurate result only for few high speed vehicles, but I think this is the value that "feels" better the speed. Vehicles that work perfectly with this value: - Infernus - Hydra - All the bikes/motorcycles - All the boats Note: other vehicles seems to have -20 or +20 km/h difference to their handling.cfg top speed |