benilla-re systems structs docs

s_terrainTypeStore

global · terrain

Address
0xc0d67c · 20 bytes, up to 0xc0d68f
Type
uint32_t[5]
Meaning
Holds the TerrainType.dbc store: rows, count, the table by id at +0x8 and the id bound at +0xc
Confidence
verified, proof one
Finding
terrain/footprints#footprint-spawn

Finding: Footprint spawn in terrain: footprints

0x699e70 adds a footprint: texture record index (ecx), the size pair pointer (edx), then on the stack the centre position pointer, the facing angle, the mirror flag, the terrain type and the ring flag. It spawns nothing when the index is at or past the record count, the terrain type is above the TerrainType id bound or its row is null or lacks bit 0 of the flags at +0x14, or the ground has no triangle in the box. Otherwise the box holds the ground triangles under the step.

The derivation is in the doc.