benilla-re systems structs docs

CGCorpse_C::ModelLoaded

function · objectlayer · primitive

Address
0x5d6850 · 98 bytes, up to 0x5d68b1
Signature
void __thiscall (CGCorpse_C *this, void *model)
Meaning
Plays Drowned or Dead and stores half the bounding-sphere radius as the decal radius
Confidence
verified, proof one
Finding
objectlayer/corpses#the-pose
Test
objectlayer::dy_corpse_half_render_radius_difftest

Finding: The pose in objectlayer: corpses

A corpse lies in animation 132 Drowned when it is submerged, else 6 Dead. The test, made once when the corpse is created and again when its model loads, is 0x5d6540(node, position): the node must hold liquid, and its liquid level must stand more than 2/3 above the corpse's height. The result stays in +0x2ac and also decides whether a skeleton is drawn, through slot 16 below: the world frame's pass 0x4815d0 calls slot 16 with list at 0x4815ff and tests the result at 0x48161d, and a 0 skips the draw list.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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