FindNearestLiquid
function · terrain · orchestration
- Address
0x6723f0· 121 bytes, up to0x672468- Signature
void __fastcall (const float *point, float *out, float radius, uint32_t arg4)- Meaning
- Fills an array with the nearest liquid per type around a point, by map object groups then terrain areas
- Confidence
- verified, proof one
- Finding
- terrain/world#nearest-liquid
Finding: Nearest liquid in terrain: world
0x6723f0 returns 1 after filling an out array of 12 dwords with the nearest liquid per type
around a point. The local search state starts as 12 dwords of 0x7f7fffff and the caller's array as
zero. An indoor entity first runs 0x69dd70 over its map object groups with a counter of 9999;
when the counter stays below 2 or the entity is outdoors, the terrain search 0x68af10 runs.
The derivation is in the doc.
Callers 1
- UpdateWaterSounds sound
Callees 2
- FindNearestLiquidInAreas terrain
- ForEachChunkDef terrain
Calls and jumps by a bare address, from tables/calls.tsv.