M2LookupIndex
function · models · primitive
- Address
0x710310· 17 bytes, up to0x710320- Meaning
- Returns an entry of a 16-bit lookup table, or 0xffff past its end
- Confidence
- verified, proof one
- Finding
- models/animation#playing-an-animation
Finding: Playing an animation in models: animation
PlayAnimation(keyBone, id, variation, offset, speed, blend, primary) first calls the done
callback for an animation that ends unfinished. Id −1 stops the key bone, fading over 150 ms when
it blends. Otherwise it resolves the id, picks the variation (−1 draws one by probability), and
fills the primary slot, or the blend slot when not primary, with a repeat count drawn between the
sequence's minimum and maximum, the speed negated for a reversed id and zeroed for a held one. A
non-primary play fades out over the sequence's length end − start, at rate 1/(end − start)
and scale 0.75.
The derivation is in the doc.
Callers 27
- CM2Model::InitializeLoaded models
- CM2Model::GetReplaceableTexture models
- CM2Model::HasAnimation models
- CM2Model::CountVariations models
- CM2Model::GetSequenceInfo models
- CM2Model::HasKeyBone models
- CM2Model::GetKeyBonePivot models
- CM2Model::GetKeyBonePosition models
- CM2Model::GetKeyBoneMatrix models
- CM2Model::GetKeyBoneFlags models
- CM2Model::SetKeyBoneFlags models
- CM2Model::GetKeyBoneAnimState models
- CM2Model::GetKeyBoneAnimId models
- CM2Model::GetKeyBoneAnimTime models
- CM2Model::GetKeyBoneAnimSpeed models
- CM2Model::PlayAnimation models
- CM2Model::SetKeyBoneAnimTime models
- CM2Model::SetKeyBoneAnimSpeed models
- CM2Model::GetKeyBoneOverride models
- CM2Model::SetKeyBoneOverride models
- CM2Model::HasAttachment models
- CM2Model::GetAttachmentOffset models
- CM2Model::GetAttachmentPosition models
- CM2Model::GetAttachmentMatrix models
- CM2Model::Attach models
- CM2Model::HasCamera models
- CM2Model::GetCameraById models
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.