benilla-re systems structs docs

s_waterWaves

global · terrain

Address
0x86a034 · 4 bytes, up to 0x86a037
Type
uint32_t
Meaning
Holds the waterWaves setting, 2 by default; liquid type 13 reads it as a texture name
Confidence
verified, proof one
Finding
terrain/world#world-console-commands

Finding: World console commands in terrain: world

Five toggles flip one world flag each and print the new state through ConsoleWrite in class 0: a set bit is cleared with <name> disabled., a clear one set with <name> enabled. (no period for particulates). showSimpleDoodads does so to the word 0xc7b2c4, storing 0 or 1. waterMaxLOD, waterWaves, waterSpecular and waterRipples read a %d into their words, which keep their value when no number parses; waterMaxLOD is then held to 0 to 4, signed. Each handler returns 1. The ripple emitter reads waterRipples, and only its handler the simple doodad word. The water words follow the 9-entry frame name table 0x86a000: the frame loader's 0x68ab44 reads them as the name formats of liquid types 12 to 15.

handlercommandwordname
0x673050showDetailDoodadsflag 0x100000Detail doodads
0x673250showCullflag 0x20Terrain culling
0x673770waterParticulatesflag 0x2000000Particulates
0x673a30showShadowflag 0x40Terrain shadow
0x673a70showLowDetailflag 0x4000000Terrain low detail
0x673ac0showSimpleDoodads0xc7b2c4, 0 at start-upSimple doodads
0x6736c0waterMaxLOD0x86a030, 4none
0x673710waterWaves0x86a034, 2none
0x673730waterSpecular0x86a038, 1none
0x673750waterRipples0x86a03c, 1none

The derivation is in the doc.