benilla-re systems structs docs

IsSubmergedAt

function · objectlayer · primitive

Address
0x5d6540 · 101 bytes, up to 0x5d65a4
Signature
uint8_t __fastcall (void *node, const float *position)
Meaning
Tells whether the node's liquid stands more than 2/3 above the position's height
Confidence
verified, proof one
Finding
objectlayer/corpses#the-pose
Test
objectlayer::dy_corpse_submerged_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 1

Callees 1

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