AdmitPickCandidate
function · ui · orchestration
- Address
0x480780· 187 bytes, up to0x48083a- Meaning
- Returns whether the pick admits a candidate of type unit, player, game object or corpse
- Confidence
- verified, proof one
- Finding
- ui/worldpick#the-candidate-filters
Finding: The candidate filters in ui: the world pick
0x480a50 walks the list and runs 0x480780(node, flags) on each node. A node that passes is registered as a hit-test instance (0x480d90, for the model and its children) and the scene ray (0x7089c0) then returns the nearest hit's node.
0x480780 admits a unit with flag 0x8 and a player with 0x10, and sends both to 0x480610. It admits a game object with 0x4 and a corpse with 0x40, each also needing 0x6e62e0 or 0x6e6260 respectively while a spell awaits a target. Every other type is refused.
The derivation is in the doc.
Callers 1
Callees 5
- ClntObjMgrObjectPtr objectlayer
- AdmitPickUnit ui
- IsSpellTargeting spell
- SpellTargetCanPickCorpse spell
- SpellTargetCanPickGameObject spell
Calls and jumps by a bare address, from tables/calls.tsv.