benilla-re systems structs docs

CGUnit_C::ResolveDeadAnimation

function · objectlayer · primitive

Address
0x5fcff0 · 92 bytes, up to 0x5fd04b
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.

bitresolverclaims
0x10x5fcff0dead: 6 Dead, swimming 132 Drowned
0x20x5fd0500x8 of +0xd58; stand state 9 (201, 202) and leaving it (127)
0x40x5fd100moving: swim, fly, back, stealth, sprint, run, walk
0x80x5fd260looting: 50 Loot
0x100x5fd2e0channelling or precasting: the cast kit's animation
0x200x5fd360attacking: a pending swing or the weapon's ready animation
0x400x5fd3f0turning in place: 11 or 12
0x800x5fd460ranged weapon drawn: a load or hold animation
0x1000x5fd550stand states 1 to 8
0x2000x5fd770UNIT_NPC_EMOTESTATE's emote

The derivation is in the doc.

Callers 1

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.