CGUnit_C::UpdateBaseAnimation
function · objectlayer · orchestration
- Address
0x5fd9e0· 161 bytes, up to0x5fda80- Meaning
- Plays the animation 0x5fd8b0 picks for a mask when the model is loaded, then remembers the stand state
- Confidence
- verified, proof one
- Finding
- objectlayer/unitanim#choosing-the-base-animation
Finding: Choosing the base animation in objectlayer: unit animation
0x5fd8b0(mask) starts from 208 and asks ten resolvers in order; the first to claim the unit
ends the chain, writing its animation only when its bit is in mask. A jumping unit that is also
falling, or one whose mover is mid-jump, gets none. With nothing claimed it returns a pending
animation, else the idle one. 0x5fd9e0 plays the result when the model is loaded.
| bit | resolver | claims |
|---|---|---|
| 0x1 | 0x5fcff0 | dead: 6 Dead, swimming 132 Drowned |
| 0x2 | 0x5fd050 | 0x8 of +0xd58; stand state 9 (201, 202) and leaving it (127) |
| 0x4 | 0x5fd100 | moving: swim, fly, back, stealth, sprint, run, walk |
| 0x8 | 0x5fd260 | looting: 50 Loot |
| 0x10 | 0x5fd2e0 | channelling or precasting: the cast kit's animation |
| 0x20 | 0x5fd360 | attacking: a pending swing or the weapon's ready animation |
| 0x40 | 0x5fd3f0 | turning in place: 11 or 12 |
| 0x80 | 0x5fd460 | ranged weapon drawn: a load or hold animation |
| 0x100 | 0x5fd550 | stand states 1 to 8 |
| 0x200 | 0x5fd770 | UNIT_NPC_EMOTESTATE's emote |
The derivation is in the doc.
Callers 34
- SetInteractionTarget ui
- EndInteractionWithGuid ui
- CGPlayer_C::OnVisibleItemChanged objectlayer
- HandlePlayerNotice objectlayer
- CGPlayer_C::ReadLootResponse objectlayer
- CGPlayer_C::ReadLootReleaseResponse objectlayer
- CGPlayer_C::StartMeleeAttack objectlayer
- CGUnit_C::PostInit objectlayer
- CGUnit_C::PostUpdate objectlayer
- CGUnit_C::PlayFollowOnAnimation objectlayer
- CGUnit_C::OnResurrect objectlayer
- CGUnit_C::OnUnitFlagsChanged objectlayer
- CGUnit_C::OnBytes1Byte3Changed objectlayer
- CGUnit_C::OnDynamicFlagsChanged objectlayer
- DispatchMoveSpeedOpcode objectlayer
- DispatchSplineSpeedOpcode objectlayer
- DispatchSplineMoveOpcode objectlayer
- CGUnit_C::OnMoveEvent objectlayer
- CGUnit_C::OnMonsterMove objectlayer
- CGUnit_C::UpdateLandingAnimation objectlayer
- CGUnit_C::Mount objectlayer
- CGUnit_C::Dismount objectlayer
- CGUnit_C::Update objectlayer
- CGUnit_C::OnEmoteStateChanged objectlayer
- UpdateBaseAnimationThunk objectlayer
- CGUnit_C::OnModelLoaded objectlayer
- CGUnit_C::OnChannelSpellChanged objectlayer
- CGUnit_C::AnimateMoveOpcode objectlayer
- PlayUnitSpellVisualKit objectlayer
- CGUnit_C::OnStandStateChanged objectlayer
- CEffect::Stop objectlayer
- CEffect::Update objectlayer
- ReportCastFailure spell
- StopAutoRepeatSpell spell
Callees 6
- GetActiveCamera ui
- SetCameraTargetByGuid ui
- CGUnit_C::SelectBaseAnimation objectlayer
- CGUnit_C::GetCurrentAnimation objectlayer
- CGUnit_C::PlayAnimation objectlayer
- CM2Model::IsLoaded models
Calls and jumps by a bare address, from tables/calls.tsv.