benilla-re systems structs docs

s_interiorWindow

global · minimap

Address
0xcea9c4 · 24 bytes, up to 0xcea9db
Type
float[6]
Meaning
Holds the interior window bounds: min x, y, z then max x, y, z
Confidence
verified, proof one
Finding
minimap/update#interior-window

Finding: Interior window in minimap: update

Indoors, the window is a square of the width c of the indoor zoom table {150, 120, 90, 60, 40, 25} at the index 0x86f69c, snapped to the player: min.x = round(px · r − 0.5) · c, min.y = round(py · r − 0.5) · c with r = 1/c, min.z = pz − c/2, max.x = min.x + c, max.y = min.y + c, max.z = c/2 + min.z, rounded half to even. The node (0x670520) then gives the descriptors of the groups touching the window grown by c all round, at most 0x200. Held tiles are refreshed, the others loaded (tiles#interior-tiles), and the state record gets the window's centre, the position, the radius and the matrices.

The derivation is in the doc.