benilla-re systems structs docs

s_gameObjectStateAnims

global · objectlayer

Address
0x8607e4 · 52 bytes, up to 0x860817
Type
uint32_t[13]
Meaning
Holds the animation of each family A state: 0x91, 0x93, 0x94, 0x95, 0x92, 0x96 to 0x9d
Confidence
verified, proof one
Finding
objectlayer/gameobjecttypes#animation-states

Finding: Animation states in objectlayer: game object types

A family A handler plays one of 13 animation states. A change of GAMEOBJECT_STATE picks a moving state and its end: to 0, state 2 then 3; to 1, 4 then 1; to 2, 5 then 6. It goes straight to the end state when GAMEOBJECT_ANIMPROGRESS is 100 and the old state is not 1 (for 0 and 2) or 0 (for 1); to 1 from 2 it then plays 7. When a played state ends, 2 goes to 3, 4 and 7 to 1, 5 to 6; 0 and the custom states 8 to 11 return to the object's state; 1, 3 and 6 play again. A door collides in state 1, so GAMEOBJECT_STATE 1 is closed.

The derivation is in the doc.