Skip to content

Change max speed of most aircrafts - #6

Open
Walter-Correa wants to merge 4 commits into
Vasily-X:masterfrom
Walter-Correa:master
Open

Change max speed of most aircrafts#6
Walter-Correa wants to merge 4 commits into
Vasily-X:masterfrom
Walter-Correa:master

Conversation

@Walter-Correa

Copy link
Copy Markdown

No description provided.

Freight and Brown StrBreak have max speed 0, but is 185 just like Tram.
Most aircraft must be tested at the highest height possible. The vertical speed differs from the horizontal, so it was necessary to change them.

Tested and changed max speed:
Leviathan: 143 to 152
Hunter: 214 to 217
Seasparrow: 145 to 147
Skimmer: 135 to 236
RC Baron: 45 to 61
RC Raider: 50 to 61
Sparrow: 145 to 147
Rustler: 220 to 272
News Chopper: 170 to 181
Police Maverick: 190 to 191
Beagle: 133 to 210
Cropduster: 115 to 210
Stuntplane: 151 to 230
Nevada: 193 to 272
AT-400: 250 to 272
Andromada: 266 to 272
Dodo: 135 to 240
@Vasily-X

Copy link
Copy Markdown
Owner

Hello @Walter-Correa, did you use the function which is in this include to obtain those speeds?

@Walter-Correa

Copy link
Copy Markdown
Author
forward Float:GetVehicleSpeed(vehicleid);
stock Float:GetVehicleSpeed(vehicleid)//Km/h
{
	new Float:SPos[3],Float:speed;
    GetVehicleVelocity(vehicleid, SPos[0], SPos[1], SPos[2]);
    speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(SPos[0], 2), floatpower(SPos[1], 2)),  floatpower(SPos[2], 2))), 181.5);
    return speed;
}

@Walter-Correa

Copy link
Copy Markdown
Author
forward Float:GetVehicleSpeed(vehicleid);
stock Float:GetVehicleSpeed(vehicleid)//Km/h
{
	new Float:SPos[3],Float:speed;
    GetVehicleVelocity(vehicleid, SPos[0], SPos[1], SPos[2]);
    speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(SPos[0], 2), floatpower(SPos[1], 2)),  floatpower(SPos[2], 2))), 181.5);
    return speed;
}

This function is from @Pottus in https://forum.sa-mp.com/showpost.php?p=2683006&postcount=40
The speed returned from this function is the same speed of your code GetVehicleMaxSpeed, but as I fixed, some vehicles I tested again and get more speed than defined by your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants