CGDynamicObject_C::ModelLoaded
function · objectlayer · primitive
- Address
0x5d52f0· 294 bytes, up to0x5d5415- Signature
void __thiscall (CGDynamicObject_C *this, void *model)- Meaning
- Records which animations the model has, sets the radius scale and plays animation 158 when it is the only one
- Confidence
- verified, proof one
- Finding
- objectlayer/dynamicobjects#the-loaded-model
- Test
objectlayer::dy_dynobj_visual_scale_difftest,objectlayer::dy_dynobj_visual_scale_gates_difftest
Finding: The loaded model in objectlayer: dynamic objects
Slot 13 (0x5d52f0) runs when the model has loaded. It runs the base hook, then records in +0x190
whether the model has animation 0 (bit 0) and animation 158 (bit 1). Unless the bytes field is 1 or
2, it sets the scale +0x194 to the radius field over the model's bounding-sphere radius, or over
the effect-name row's +0x10 when the sphere is not above 0.001. A model with animation 158 and
none for 0 plays 158.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- GetDynamicObjectEffectName objectlayer
- CGObject_C::OnModelLoaded objectlayer
- CM2Model::HasAnimation models
- CM2Model::PlayAnimation models
- CM2Model::GetBoundingSphere models
Calls and jumps by a bare address, from tables/calls.tsv.