benilla-re systems structs docs

s_halfHeight

global · terrain

Address
0x86b6c0 · 4 bytes, up to 0x86b6c3
Type
float
Meaning
Holds 0.5, taken off a cell coordinate before rounding
Confidence
verified, proof one
Finding
terrain/queries#surface-height

Finding: Surface height in terrain: queries

0x6b7070(point, out, range) gives the highest surface within range of a point: the chunk's terrain height, raised to the liquid height when that is higher, then the hit of a vertical segment from z + range to z − range against map objects, doodads and models, keeping the higher of hit and terrain. It returns 0 when range is below 0.01, when no area covers the point, and when nothing is hit and the chunk gave no height, a hole with liquid included; with no chunk the terrain starts at −100000. Off the map the indices wrap. The weather is its one caller.

The derivation is in the doc.