Get vehicle max velocity? -
-Rebel Son- - 08.12.2010
What is the max velocity of a vehicle?
Re: Get vehicle max velocity? -
The_Gangstas - 08.12.2010
you'd have to make a function to get the players vehicle model and set the max speed in the function, u'd have to get the max speed for each vehicle.
Re: Get vehicle max velocity? -
-Rebel Son- - 08.12.2010
that is lame :<
Re: Get vehicle max velocity? - rjjj - 09.12.2010
There is not a specific max speed for the vehicles in general. I got a list with the max speed of some vehicles:
pawn Код:
Landstalker - 127 KPH
Bravura - 137 KPH
Buffalo - 150 KPH
Perenniel - 122KPH
Sentinel - 145 KPH
Stretch (Limo) - 143 KPH
Manana - 126 KPH
Infernus - 180 KPH
Voodoo - 148 KPH
Pony - 113 KPH
Cheetah - 160 KPH
Moonbeam - 118 KPH
Esperanto - 139 KPH
Taxi - 136 KPH
Washington - 139 KPH
Bobcat - 133 KPH
BF Injection - 121 KPH
Premier - 153 KPH
Enforcer - 144 KPH
Securicar - 147 KPH
Banshee - 165 KPH
Hotknife - 142 KPH
Previon - 136 KPH
Cabbie - 127 KPH
Stallion - 134 KPH
Rumpo - 131 KPH
Romero - 131 KPH
Monster - 118 KPH
Admiral - 147 KPH
Turismo - 157 KPH
I hope that i have helped
Re: Get vehicle max velocity? -
-Rebel Son- - 09.12.2010
Yeah it helped, but im trying to make a way to get all the vehicles max speed, then break the engine at max speed. :S
Re: Get vehicle max velocity? -
The_Gangstas - 09.12.2010
lol that list is kind of wrong.
infernus is 183 btw and
those are mph not kmph
just helping, elegy - 122/123 w & w/o nos mph
Re: Get vehicle max velocity? -
Ruffles. - 09.12.2010
Quote:
Originally Posted by The_Gangstas
lol that list is kind of wrong.
infernus is 183 btw and
those are mph not kmph
|
Depends on which speed system he uses, If i'm correct, all of the world uses the Metric system (Km, m, cm etc) while the US uses the Imperial system (Miles, feet, inches, yeah)
Just convert it D:
Re: Get vehicle max velocity? -
-Rebel Son- - 09.12.2010
Wow, it went all off topic D:! Anyone know how i would do dis?
Re: Get vehicle max velocity? -
The_Gangstas - 09.12.2010
erm? make a speedometer and record the top speed
pawn Код:
stock GetPlayerSpeed(playerid,bool:kmh)
{
new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
true = mph and false = kmph
GetPlayerSpeed(playerid,true);
Re: Get vehicle max velocity? -
Voldemort - 09.12.2010
Open handling.cfg ..SA\data\handling.cfg
search for vehicle list
....75 0.85 0.5 5
160.0 25.0 20.0 4 D....
Is Speed in km/h
Код:
LANDSTAL 1700.0 5008.3 2.5 0.0 0.0 -0.3 85 0.75 0.85 0.5 5 160.0 25.0 20.0 4 D 6.2 0.60 0 35.0 2.4 0.08 0.0 0.28 -0.14 0.5 0.25 0.27 0.23 25000 20 500002 0 1 0