benilla-re systems structs docs

s_liquidFramePeriod

global · terrain

Address
0x8102b8 · 32 bytes, up to 0x8102d7
Type
float[8]
Meaning
Holds each liquid type's frame period, 1.25 s for all eight
Confidence
verified, proof one
Finding
terrain/liquid#animated-textures

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.