CreateDoodadModel
function · terrain · host
- Address
0x695100· 165 bytes, up to0x6951a4- Signature
void __fastcall (void *def, uint32_t arg2, uint32_t arg3)- Meaning
- Makes a def's model, sets its matrix and its done, event and lighting callbacks and starts its animation
- Confidence
- verified, proof one
- Finding
- terrain/doodads#doodad-model
Finding: Doodad model in terrain: doodad defs
0x695100 makes a def's model from the path, sets its base matrix, and installs the done
callback 0x6951b0, the event callback 0x6951e0 and the lighting callback 0x672a20 with the def
as argument. It starts the model's default animation and, when asked, makes it a priority load.
0x6951b0 restarts the animation when its first argument is 0.
The derivation is in the doc.
Callers 3
- CreateEntityDoodadDef terrain
- PlaceDoodadDef terrain
- CreateGroupDoodadDef terrain
Callees 7
- CreateModelFromPath models
- CM2Model::IsLoaded models
- CM2Model::SetBaseTransform models
- CM2Model::SetDoneCallback models
- CM2Model::PlayAnimation models
- CM2Model::SetEventCallback models
- CM2Model::SetLightingCallback models
Calls and jumps by a bare address, from tables/calls.tsv.