HitTestValue
function · ui · primitive
- Address
0x480c90· 112 bytes, up to0x480cff- Meaning
- Returns the hit-test value of an object: 3 living unit, 2 lootable dead unit or corpse, 1 interactable game object
- 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 4
- OsGetAsyncTimeMs core
- CGCorpse_C::IsLootable objectlayer
- CGGameObject_C::IsInteractable objectlayer
- CGUnit_C::IsLootable objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.