benilla-re systems structs docs

PlayAnimatedHandlerState

function · objectlayer · primitive

Address
0x5f3930 · 525 bytes, up to 0x5f3b3c
Signature
void __thiscall (void *this, CM2Model *model)
Meaning
Plays a family A state's animation from the saved progress, falling back for missing ones
Confidence
verified, proof one
Finding
objectlayer/gameobjecttypes#playing-a-state

Finding: Playing a state in objectlayer: game object types

Setting a new state plays its animation unless the model's key bone already plays it. A missing open or close animation falls back to a neighbour, some frozen at speed 0. Playing starts at the saved progress when GAMEOBJECT_ANIMPROGRESS is below 100, then stores 100. States 2, 4, 5 and 7 pause when GAMEOBJECT_FLAGS has 0x80. Every state but 1, 3 and 6 holds the object until its end. Reversing a running open or close at full progress, 2 and 4 or 5 and 7, stores the complement of the elapsed percentage, so the reverse starts where the forward stopped.

The derivation is in the doc.

Callers 3

Callees 9

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