CMapChunk::LoadReferences
function · terrain · orchestration
- Address
0x6b00f0· 434 bytes, up to0x6b02a1- Signature
void __thiscall (CMapChunk *this, void *area, const uint32_t *refs, uint32_t doodads, uint32_t objects)- Meaning
- Places the MCRF doodad and object references and links them into the chunk's lists
- Confidence
- verified, proof one
- Finding
- terrain/chunk#doodad-and-object-references
Finding: Doodad and object references in terrain: chunk
CMapChunk::LoadReferences (0x6b00f0) reads the MCRF list: first the doodad references, then
the object references, each a dword index into the area's MDDF (36-byte entries) or MODF (64-byte
entries). Each placement is made through 0x694bc0 or 0x695650 with its model name, from the
MMID and MMDX or the MWID and MWMO tables, and linked into the chunk's doodad list (+0xdc) or
object list (+0xe8). A doodad gains flag 4 at +0xc and a fade of 1.0 at +0xa4.
The derivation is in the doc.
Callers 1
- CMapChunk::Load terrain
Callees 6
- PlaceDoodadDef terrain
- PlaceMapObjDef terrain
- TSLink::Next terrain
- PropagateLinkBounds terrain
- AllocMapLink terrain
- CM2Model::IsLoaded models
Calls and jumps by a bare address, from tables/calls.tsv.