CMapObjDef::PlayAnimation
function · terrain · orchestration
- Address
0x6a24b0· 74 bytes, up to0x6a24f9- Signature
void __thiscall (CMapObjDef *this, uint32_t animation, uint32_t unused)- Meaning
- Plays an animation on each doodad group of a map object def
- Confidence
- verified, proof one
- Finding
- terrain/entities#entity-animation
Finding: Entity animation in terrain: entity facets
0x6709f0(entity, animation, unused) plays an animation on an entity by type. A map object def (bit 0x8) passes it to 0x6a24b0, which calls 0x6a20f0 for each group def in its list +0x138; that calls PlayAnimation(-1, animation, -1, 0, 1.0, 1, 1) on the model of each doodad def in the group's list. A doodad def (bit 0x40) with a model plays it on that model the same way. Without a model, or for any other entity, nothing is played. Nothing uses the third argument. The entity chain tests only that a model exists: a model not yet loaded queues the play, and a map object with no doodad defs has nothing to play on.
The derivation is in the doc.
Callers 1
- CWorld::PlayEntityAnimation terrain
Callees 1
- PlayPlacementGroupAnimation terrain
Calls and jumps by a bare address, from tables/calls.tsv.