Ahli / sc2xml

11 stars 1 forks source link

Siege Tank can fire on other Siege Tank which can't fire back #86

Open Ahli opened 1 year ago

Ahli commented 1 year ago

One Siege Tank may be able to see an enemy Siege Tank which cannot see it back. So, the vision between two units is not symmetrical.

image White Tank sees red Tank, but not the other way around (only uses the Tank's own sight range)

Replay @ 12:32

source: reddit post

Theories:

Editor Tests:

Vision of a unit:

Vision is aligned to a grid (= the revealed areas), so the coordinates of the unit matter for its effective sight range. When you slowly move a unit forward by a few pixels, you will notice that not each step will move the vision forward. But when it moves, it moves quite a bit.

How is this making vision asymmetrical between two units? Probably inaccuracies in floating point math which you usually have