InitMapChunkStatics
function · terrain · orchestration
- Address
0x6ae4f0· 76 bytes, up to0x6ae53b- Signature
void __cdecl (void)- Meaning
- Builds the chunk mesh tables and resets the chunk buffer and texture stacks and the emitter callback
- Confidence
- verified, proof one
- Finding
- terrain/chunk#sound-emitters
Finding: Sound emitters in terrain: chunk
CMapChunk::LoadSoundEmitters (0x6af810) would make one 88-byte record per 52-byte MCSE entry
and pass it to the callback 0xca82c4, but the callback is always null in this build, so the
records are never made and MCSE is never read. The walk copies the entry's first eight dwords,
widens its words +0x20, +0x22, +0x24, +0x28, +0x2a, +0x2c, +0x2e, +0x30 and +0x32 and bytes +0x26
and +0x27 to dwords, links the record into the chunk's list at +0x10c, and calls the callback
with the record's +4.
The derivation is in the doc.
Callers 1
- CMap::Initialize terrain
Callees 1
- BuildChunkMeshTables terrain
Calls and jumps by a bare address, from tables/calls.tsv.