14.08.2013, 10:10
Quote:
depends on personal needs, MP wanted to have a bike go 25mph ma and the infernus at another speed. The difference was not linear so I needed to come up with a formula which approaches the wanted values and this arised.
a full discussion is here: https://sampforum.blast.hk/showthread.php?tid=446342 /\ Y - "Real World Speed" >X - GTA Velocity This graph shows how the function approches the wishes (and very clearly shows there is NO way to make a direct-linear formula to the values), I could even make a formula to take a hydra into account to make it go at max anything above infernus speed. you could get a linear formula by calculating the F' of the function F, but meh, it works. So basicly, all the formulas which are linear may, for example, be only correct for sports cars, or only bikes, or only planes, but this formula covers like, "all-in-one". If you need adjusted speeds drop me a PM and I will give you values to use with the formula. For the best approximation I need the following values: MAX Real World Speed in KM/H or MP/H corresponding to the vehicle AND the vehicle's MAX GTA Velocity Please use "f1.6%" precision for the GTA speed. Like:
Код:
[.ttable] [tr][td]Vehicle Name[/td][td]Max World Speed[/td][td]Max GTA speed[/td][/tr] [tr][td]Bike[/td][td]25[/td][td]0.025000[/td][/tr] [tr][td]Infernus[/td][td]175[/td][td]0.090000[/td][/tr] [tr][td]Hydra[/td][td]300[/td][td]0.120000[/td][/tr] [/ttable] Exponential Regression Edit: Well, I just got to make other functions with other real speeds: pawn Код:
Bike - 0.303138 Infernus - 1.261432 Hydra - 2.250000 pawn Код:
|