multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.4k stars 435 forks source link

Heat seeking projectiles cannot travel over 480 kmh #573

Open ArranTuna opened 6 years ago

ArranTuna commented 6 years ago

Describe the bug Note: not sure if this is a bug.

If you set the velocity of a heat-seeking rocket, it will get reset. Not sure, if it's a mta feature or a gta:sa limitation, but since we have hydras going +400 km/h, heat-seeking projectiles can't catch them and this is pretty annoying.

heat seaking rockets cannot travel over 480 kmh as GTA will reset it

To reproduce http://upload.mtasa.com/u/171707339/aircraft.zip_

Expected behaviour

Screenshots

Version v1.4-release-6686

Additional context A video illustrating the problem: http://youtu.be/GTt8itcU58g

I made another video about the problem and it seems that all heatseeking projectiles are locked at their own speed (480 km/h in the video). Whenever you fire a rocket and set it's speed, it will reset to 480 km/h in seconds. Well, just look the video and you will see what I mean: http://youtu.be/h2ek0zVxiXw

From https://bugs.mtasa.com/view.php?id=8353

LosFaul commented 6 years ago

@ArranTuna
Side note: This 480 km/h is a wrong value because the km/h calculation on your server is wrong.

ProgrammingMuffin commented 6 years ago

There is a chance that you can override the GTA:SA limits if those parameters aren't protected/private.

ghost commented 5 years ago

This can be fixed. Btw how about creating a new function which allows scripters to set the travel distance for a projectile? Since MTA streamer needs to be modified for this, I can do it while working on #869

Addlibs commented 5 years ago

A temporary workaround could be to slow down Hydras and other planes using setAircraftMaxVelocity.