GetLiquidFrame
function · terrain · primitive
- Address
0x68aac0· 338 bytes, up to0x68ac11- Signature
void * __thiscall (void *this)- Meaning
- Returns a liquid type's current texture frame of 30 per 1.25 s, loading the frames once
- Confidence
- verified, proof one
- Finding
- terrain/liquid#animated-textures
- Test
terrain::liquid_anim_frame_difftest
Finding: Animated textures in terrain: liquid
0x68aac0(type) returns the current frame of liquid type 0 to 7: with a period of 1.25 s,
truncated to 1,250 ms, frame = nearest(float(30·(t mod 1250)/1250) − 0.5) for the clock t in
milliseconds. The 30 frames load on first use from XTextures\river\lake_a.%d.blp,
ocean\ocean_h, lava\lava, slime\slime, then lake_a, none, lava and slime for types
4 to 7, numbered 1 to 30.
The derivation is in the doc.
Callers 4
- CChunkLiquid::DrawOcean terrain
- CChunkLiquid::DrawRiver terrain
- CChunkLiquid::DrawMagma terrain
- DrawGroupLiquid terrain
Callees 8
- __ftol crt
- CStatus::~CStatus client
- OsGetAsyncTimeMs core
- TextureCreate gx
- GetTextureDeviceObject gx
- SysMsgAdd sysmsg
- CGxTexFlags::CGxTexFlags gx
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.