benilla-re systems structs docs

CheckAreaSpiritHealer

function · ui · primitive

Address
0x4923b0 · 260 bytes, up to 0x4924b3
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.

sitedistance from the player tosquared thresholdpasses when
0x4944a0a player unit that it can cooperate with, or itself0xb4d918 = 10²at most
0x48ba00the unit, by distance index 1 to 410², 11.111111², 10², 30²strictly less
0x4924c0a spirit guide (NPC flag 0x40) that may assist it20²at most
0x4923b0the cached area spirit healer22.0², the product 20 * 1.1 stored as a floatat most
0x492130the cached corpse position0xb4e2ac = 40²at most
0x48edf0camera eye to the new shot's position30²not above (else the areas unload)
0x48f080camera eye to the camera's followed unit30²not above

The derivation is in the doc.

Callers 3

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.