CGUnit_C::ResolveDeadAnimation
function · objectlayer · primitive
- Address
0x5fcff0· 92 bytes, up to0x5fd04b- Meaning
- Claims a dead or feigning unit: 6 Dead, or 132 Drowned when swimming, unless one already plays
- 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 1
- CGUnit_C::SelectBaseAnimation objectlayer
Callees 3
- IsDeathAnimation objectlayer
- CGUnit_C::GetCurrentAnimation objectlayer
- CGUnit_C::LooksDead objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.