benilla-re systems structs docs

CParticleEmitter2::LoadChildModel

function · models · orchestration

Address
0x7b5da0 · 44 bytes, up to 0x7b5dcb
Signature
void __thiscall (CParticleEmitter2 *this, M2Scene *scene, const char *path)
Meaning
Creates an emitter's child model and installs the callback that adopts its emitters
Confidence
verified, proof one
Finding
models/particles#emitter-model-loads

Finding: Emitter model loads in models: particles

The model's initializer gives an emitter its record's models. A record naming a model (+0x1c) calls SetModel(scene, path): for a scene and a non-empty path it stores the scene at +0x94, creates the instance at +0x90 and, once one exists, sets +0x28, which turns the emitter to model particles (Model particles). A record naming a child model (+0x24) calls LoadChildModel, which creates that instance at +0x98 and makes OnChildModelLoaded its loaded callback. Once loaded, the callback appends the first min(count, 4) of the child model's emitters to the four child slots at +0x80 and enables each. A spline record passes its points to the curve at +0x2a8.

The derivation is in the doc.

Callers 1

Callees 2

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