benilla-re systems structs docs

CM2Model::ResolveAnimationId

function · models · primitive

Address
0x711bf0 · 289 bytes, up to 0x711d10
Meaning
Maps an animation id to one the model has, following the fallback chain, with reverse and hold flags
Confidence
verified, proof one
Finding
models/animation#animation-id-resolution
Test
animation::m2_bone_classify_difftest

Finding: Animation id resolution in models: animation

ResolveAnimationId(id) returns an id the model has and two flags. An id below the header's playable count reads its pair from the playable table. Otherwise it follows the client's animation table: while the id is past the lookup or unmapped, it moves to the row's fallback; a row with flag 0x10 reverses playback and one with 0x20 holds the last frame. A loop, a missing row or a row that falls back to itself ends at the default: animation 0 when mapped, else 0x93, else the first sequence.

The derivation is in the doc.

Callers 4

Callees 0

None by a direct call or jump.

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