benilla-re systems structs docs

CParticleEmitter2::OnChildModelLoaded

function · models · orchestration

Address
0x7b5dd0 · 106 bytes, up to 0x7b5e39
Signature
void __fastcall (CM2Model *model, CParticleEmitter2 *emitter)
Meaning
Appends and enables up to four of a loaded model's emitters as an emitter's children
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 0

None by a direct call or jump.

Callees 4

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