euddraft icon indicating copy to clipboard operation
euddraft copied to clipboard

Bug report and questions around `CUnit.statusFlags`

Open armoha opened this issue 2 months ago • 0 comments

The flag seems to be flipped, by GGRush in Nov 11, 2024 (SEN discord): 8084f5d89056679e8ad0722303931158 fb0e79f1d3aae1e89d1b21d8c85286f9

Answer by DarkenedFantasies: isBuilding is a bad name. that status flag makes units flee from attackers when they can't fight back (like a melee unit running away from an air unit), and it also makes air units have repulsion. it has nothing to do with buildings

Chromowolf: So, IsNormal is also a bad name? I remember the IsNormal flag is set for an scv when it's constructing buildings.

DarkenedFantasies: yea, that flag is normally only set for ground units, but i don't remember exactly what it entails. i think the flag you're thinking of is NoCollide nvm just quickly checked, and when scv is constructing, it clears IsNormal and sets IgnoreTileCollision my guess is that IsNormal makes units use pathfinding yeah, also checked IsNormal, after clearing it (set IsNormal status flag to 0) for a ghost and ordering it to move, it moved in a straight line as if it was an air unit

armoha avatar Nov 30 '24 06:11 armoha