benilla-re systems structs docs

s_cellsPerYard

global · terrain

Address
0x81073c · 4 bytes, up to 0x81073f
Type
float
Meaning
Holds 0.24 (0x3e75c28f), cells per yard
Confidence
verified, proof one
Finding
terrain/queries#liquid-status

Finding: Liquid status in terrain: queries

0x69b6d0(point, type, height, flow, flag) reports the liquid at a point: a map object's liquid first, then the chunk's slots. For each slot it writes bit 7 of the tile byte to the flag and, for a tile with a type, accepts when the point is below the surface: an ocean tile when the point's z is below 0.01, with height 0 and no flow, and another tile when the bilinear height plus 0.01 is above z, after computing the flow when the height is above z. It writes type & 3 and returns 1, or returns 0.

The derivation is in the doc.