CGUnit_C::IsPointAtLiquidSurface
function · objectlayer · primitive
- Address
0x60a740· 161 bytes, up to0x60a7e0- Meaning
- Returns whether a liquid surface lies from 0.01 below to 2/3 yard above a point
- Confidence
- verified, proof one
- Finding
- objectlayer/unitbody#liquid-and-swimming
- Test
objectlayer::occlusion_z_gate_difftest
Finding: Liquid and swimming in objectlayer: unit body each frame
After each mover step 0x5fac70 refreshes the ground's terrain type and hands the depth to the
swim decision.
0x60df70 and 0x60dff0 start and stop swimming: the active mover asks, others change at once
or queue the change. Two tests read the depth: deeper than half the unit's height, and a point
just under a surface.
The derivation is in the doc.
Callers 1
- CGUnit_C::PlayFootstep objectlayer
Callees 2
- CWorld::GetEntityLight terrain
- CWorld::GetEntityLightFlags terrain
Calls and jumps by a bare address, from tables/calls.tsv.