CM2Model::GetKeyBoneAnimId
function · models · orchestration
- Address
0x712090· 78 bytes, up to0x7120dd- Meaning
- Returns the animation id playing on a key bone
- Confidence
- verified, proof one
- Finding
- ui/playermodel#turning-the-model
Finding: Turning the model in ui: PlayerModel, DressUpModel and TabardModel
SetRotation(angle) plays a shuffle animation toward the angle, latches the turn and stores the angle
as the frame's facing. When the model's data is resident it compares the old facing with the new:
old below new plays animation 12 (ShuffleRight), old above new plays 11 (ShuffleLeft), and equal or NaN
plays 0 (Stand). The play is skipped if that id is already armed on key bone 0, so a held direction arms
once. Reversing replaces the shuffle at once, restarting it. Sending the same angle again plays Stand.
The latch is set to 1, the deadline to now + 100 ms and the facing is stored on every path.
The derivation is in the doc.
Callers 9
- CGCharacterModelBase::TurnTo ui
- CGCharacterModelBase::UpdateTransform ui
- CGPlayer_C::ToggleSheathe objectlayer
- PlayAnimatedHandlerState objectlayer
- QuestGiverHandlerOnFrameOpen objectlayer
- CGUnit_C::GetCurrentAnimation objectlayer
- CGUnit_C::Update objectlayer
- CGUnit_C::PlayWoundAnimation objectlayer
- CGUnit_C::EndRangedPose objectlayer
Callees 2
- M2LookupIndex models
- CM2Model::WaitForShared models
Calls and jumps by a bare address, from tables/calls.tsv.