benilla-re systems structs docs

SelectAreaSpiritHealer

function · ui · primitive

Address
0x4924c0 · 190 bytes, up to 0x49257d
Meaning
Selects a spirit guide within 20 yards that may assist the player
Confidence
verified, proof one
Finding
ui/distancegates#thresholds
Test
ui::dist2_4924c0

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 0

None by a direct call or jump.

Callees 3

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