benilla-re systems structs docs

s_chunksPerYard

global · terrain

Address
0x810740 · 4 bytes, up to 0x810743
Type
float
Meaning
Holds 0.03 (0x3cf5c28f), chunks per yard
Confidence
verified, proof one
Finding
terrain/queries#area-id

Finding: Area id in terrain: queries

0x69b120(point) returns the MCNK area id (+0x16c) of the chunk under the point, or 0 where no chunk is loaded; for a point off the map, that of the chunk its coordinates wrap to. Its chunk coordinates use k = 0.03; y's is one rounding of the product, x's two, the difference being stored as a float before it is multiplied.

The derivation is in the doc.