benilla-re systems structs docs

CGUnit_C::GetCurrentAnimation

function · objectlayer · orchestration

Address
0x5fdb50 · 74 bytes, up to 0x5fdb99
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

Callees 2

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