inwc3 / w3-bug-tracker

Bug tracker for Warcraft 3
0 stars 0 forks source link

SetUnitFlyHeight selection circle height deviation #6

Open WaterKnight opened 1 year ago

WaterKnight commented 1 year ago

External URLs

https://us.forums.blizzard.com/en/warcraft3/t/setunitflyheight-selection-circle-height-deviation/29119

Summary

When you increase a unit’s fly height with the SetUnitFlyHeight native function over the unit’s previous maximum fly height, the selection circle height gains an offset compared to the model, potentially falling through the ground, thus getting invisible.

Description

Additional information: Changing the unit’s fly height back to X does not reset the distance, it remains the same. It seems like the game remembers what the unit’s previous maximum fly height was. If you change the unit’s fly height back to X and then again to X + 100, the distance will still be the same from before but changing it to X + 200 apparently adds another 100 distance. So the deviation can only get larger or remain the same.

Expected

The distance between selection circle and the unit’s model stays the same.

Actual

The distance between selection circle and the unit’s model grows (presumably by 100).

Reproduction steps

When you increase a unit’s fly height with the SetUnitFlyHeight native function over the unit’s previous maximum fly height, the selection circle height gains an offset compared to the model, potentially falling through the ground, thus getting invisible.

Workaround

No response

Screenshots

No response

Game Versions

1.33.0 (1.33.0.18931, 1.33.0.19010, 1.33.0.19019, 1.33.0.19089, 1.33.0.19308)