benilla-re systems structs docs

CMapChunk::LoadSoundEmitters

function · terrain · orchestration

Address
0x6af810 · 341 bytes, up to 0x6af964
Signature
void __thiscall (CMapChunk *this, uint32_t first)
Meaning
Copies MCSE entries into emitter records only for the callback 0xca82c4, which is always null
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

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.