CreateModelAnimationCallback
function · glue · orchestration
- Address
0x470c90· 77 bytes, up to0x470cdc- Signature
void __fastcall (void *model, int32_t keyBone, int32_t anim, int32_t reason, int32_t overrun, int32_t a, int32_t b)- Meaning
- Replays animation 0 for key bone -1 or 0x1a on reason 0, stops other ended key bones unless animation 15
- Confidence
- verified, proof one
- Finding
- glue/selectscene#done-callback-paths
Finding: Done callback paths in glue: the select scene
The create model's callback 0x470c90 and the select models' 0x473090 have one body. It takes the
model in ecx, the key bone in edx and five stack arguments: the animation id, a reason, the
overrun (0 on reason 1) and two stored values. A nonzero reason returns. Reason 0, a bone's window
end: key bone −1 or 0x1a calls 0x7121a0(-1, 0, -1, 0, 1.0, 1, 1), a Stand with a random variation;
another key bone, unless the animation id is 15, calls 0x7121a0(keyBone, -1, -1, 0, 1.0, 1, 1),
which stops it. Reason 1 comes from any 0x7121a0 call, play or stop, on a bone whose sequence has
not ended, and does nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- CM2Model::PlayAnimation models
Calls and jumps by a bare address, from tables/calls.tsv.