euddraft
euddraft copied to clipboard
Bug report and questions around `CUnit.statusFlags`
The flag seems to be flipped, by GGRush in Nov 11, 2024 (SEN discord):
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 theIsNormal
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