CheckAreaSpiritHealer
function · ui · primitive
- Address
0x4923b0· 260 bytes, up to0x4924b3- Meaning
- Keeps the cached area spirit healer within 22 yards, else clears it, or looks for one
- Confidence
- verified, proof one
- Finding
- ui/distancegates#thresholds
- Test
ui::dist2_4923b0
Finding: Thresholds in ui: distance gates and range checks
Each threshold is the square of a constant, folded by a static initialiser (fld [c]; fmul [c]; fstp [cell]) or squared inline.
| site | distance from the player to | squared threshold | passes when |
|---|---|---|---|
0x4944a0 | a player unit that it can cooperate with, or itself | 0xb4d918 = 10² | at most |
0x48ba00 | the unit, by distance index 1 to 4 | 10², 11.111111², 10², 30² | strictly less |
0x4924c0 | a spirit guide (NPC flag 0x40) that may assist it | 20² | at most |
0x4923b0 | the cached area spirit healer | 22.0², the product 20 * 1.1 stored as a float | at most |
0x492130 | the cached corpse position | 0xb4e2ac = 40² | at most |
0x48edf0 | camera eye to the new shot's position | 30² | not above (else the areas unload) |
0x48f080 | camera eye to the camera's followed unit | 30² | not above |
The derivation is in the doc.
Callers 3
Callees 4
- ClntObjMgrEnumObjects objectlayer
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- SetAreaSpiritHealer ui
Calls and jumps by a bare address, from tables/calls.tsv.