CGUnit_C::GetCurrentAnimation
function · objectlayer · orchestration
- Address
0x5fdb50· 74 bytes, up to0x5fdb99- Meaning
- Returns the key bone's animation, else the body's, or −1 without a loaded model
- Confidence
- verified, proof one
- Finding
- objectlayer/unitanim#playing-an-animation
Finding: Playing an animation in objectlayer: unit animation
0x5fe2f0(anim) plays an animation on the body, the upper body or the mount. An unloaded model
keeps it pending at +0xd64. A dead unit, or one with bit 0x2000, takes only death animations;
bits 0x40000 and 0x80000 (a lift-off, landing or knockdown) refuse it. Special1H and Special2H
become the unarmed or two-handed form. A swing over a swing restarts only the upper body. Moving
animations scale their speed to the mover's. The tracks then play through 0x5fdba0, and the
sheathe state follows the new animation.
The derivation is in the doc.
Callers 21
- CGPlayer_C::ToggleSheathe objectlayer
- IsCurrentAnimFlag100 objectlayer
- CGUnit_C::PlayEmote objectlayer
- CGUnit_C::CanShuffle objectlayer
- CGUnit_C::ResolveDeadAnimation objectlayer
- CGUnit_C::ResolveSpecialStandAnimation objectlayer
- CGUnit_C::ResolveLootAnimation objectlayer
- CGUnit_C::UpdateBaseAnimation objectlayer
- CGUnit_C::UpdateSheatheForAnimation objectlayer
- CGUnit_C::OnUnitFlagsChanged objectlayer
- CGUnit_C::OnModelEvent objectlayer
- CGUnit_C::LaunchSpellMissile objectlayer
- CGUnit_C::OnDisplayChanged objectlayer
- CGUnit_C::MoveHandItem objectlayer
- CGUnit_C::AttachHandItem objectlayer
- IsCurrentAnimInSetD objectlayer
- IsCurrentAnimSpellCast objectlayer
- CGUnit_C::PlayDeathAnimation objectlayer
- PlayUnitSpellVisualKit objectlayer
- CGUnit_C::IsCurrentAnimationFlag80 objectlayer
- CGUnit_C::StartChannelVisual objectlayer
Callees 2
- CM2Model::IsLoaded models
- CM2Model::GetKeyBoneAnimId models
Calls and jumps by a bare address, from tables/calls.tsv.