benilla-re systems structs docs

M2SequenceInfo

struct · models · 60 bytes

Meaning
Holds what GetSequenceInfo reports of a sequence: flags, length, speed, box, centre, radius, id and class
Confidence
verified, proof one
Finding
models/model#sequence-info

Finding: Sequence info in models: the instance

GetSequenceInfo(id, variation, out) waits for the shared model, resolves id (animation#animation-id-resolution) and fills a 0x3c-byte record: +0x34 and +0x38 get the resolved dword's low and high words. The id goes through the sequence lookup, and the index then moves variation times to its sequence's next variation +0x40, stopping at an index past the table. A sequence in the table gives +0x0 its flags, +0x4 its end minus its start, +0x8 its speed +0xc times the length of the base matrix's first row, +0xc its six bound floats, +0x24 the box centre and +0x30 its radius. An index past the table, a lookup miss included, zeroes +0x0 to +0x33. No bone or pose enters.

The derivation is in the doc.

Fields 8

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_flagsHolds the sequence's flagsverified, proof onemodels/model#sequence-info
0x00044uint32_tm_lengthHolds the sequence's end minus its startverified, proof onemodels/model#sequence-info
0x00084floatm_moveSpeedHolds the sequence's speed times the length of the base matrix's first rowverified, proof onemodels/model#sequence-info
0x000c24float[6]m_boundsHolds the sequence's box, minimum then maximumverified, proof onemodels/model#sequence-info
0x002412float[3]m_centerHolds the box centreverified, proof onemodels/model#sequence-info
0x00304floatm_radiusHolds the sequence's bounding radiusverified, proof onemodels/model#sequence-info
0x00344uint32_tm_animationIdHolds the resolved animation idverified, proof onemodels/model#sequence-info
0x00384uint32_tm_classHolds the resolved dword's high word: the class, 0 to 3, from a walk, or a playable entry's high wordverified, proof onemodels/model#sequence-info