FAForever / fa

Lua code for FAF
229 stars 234 forks source link

Vulthoo misses even static targets beneath it #5691

Open K-ETFreeman opened 1 year ago

K-ETFreeman commented 1 year ago

https://github.com/FAForever/fa/assets/55841348/e9f5a355-9241-4ebf-b1a8-77483743a4c5

Describe the bug Vulthoo misses even static targets beneath it (tested vs auroras) (video attached)

To Reproduce Launch the game, spawn Vulthoo and some auroras, hover above auroras to make your vulthoo shooting the ground

Expected behavior Vulthoo hits units, not the ground

Garanas commented 12 months ago

In what scenario does the gunship fly like that? 😃

K-ETFreeman commented 12 months ago

In what scenario does the gunship fly like that? 😃

not exactly like that, but it happens just give gunship some move order (for any reason, avoiding flak or relocating your gunship to other side of the map) and boom, your gunship at some point is above the target now and misses some shots

previously it was not so crucial, but since now this thing costs 500 mass it is just too expensive for bug misses

Sorrydough commented 12 months ago

it's very common for vulthoo to move like this when you micro it away from flak

K-ETFreeman commented 12 months ago

it's very common for vulthoo to move like this when you micro it away from flak

its common enough since i saw these misses in ladder too (but i wont rewatch all my games to find the replay) can probably give some more "realistic" test later if you really want to

Garanas commented 12 months ago

Just trying to understand the priority of the issue; no need to find replays.

Garanas commented 11 months ago

I've tried to fix it by changing the blueprint values but to no avail. @The-Balthazar would you have a suggestion on how to fix this?

The-Balthazar commented 11 months ago

It appears to be gimbal lock. I tested lowering the starting pitch from -20 to -45 and that fixed it. That's probably an overkill number, although -30 was still still having issues, so maybe there's a happy medium. The pitch range might need increasing by the same difference, and it'll probably need some testing to make sure it doesn't cause issues aiming at range or to low flying aircraft. The other alternative is to define a minimum range.