benilla-re systems structs docs

GetMapObjectLiquid

function · terrain · orchestration

Address
0x69b520 · 176 bytes, up to 0x69b5cf
Signature
uint8_t __fastcall (const float *point, float *height, float *flow, uint32_t arg4)
Meaning
Writes the liquid height of the first loaded map object whose liquid holds a point, in world space
Confidence
verified, proof one
Finding
terrain/liquidpass#map-object-liquid-at-a-point

Finding: Map object liquid at a point in terrain: liquid passes

0x69b520 asks the loaded map objects for liquid at a point. For each map object in the frame's list it moves the point into the object's space with its +0xd4 matrix and asks the model for liquid (mask 0x2000); the first hit writes the liquid surface height, moved back to world space through the +0x94 matrix, to the height out argument and returns 1; with no hit it returns 0.

The derivation is in the doc.

Callers 1

Callees 3

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