benilla-re systems structs docs

ConsoleToggleParticulates

function · terrain · primitive

Address
0x673770 · 66 bytes, up to 0x6737b1
Signature
uint32_t __fastcall (const char *name, const char *args)
Meaning
Toggles world flag 0x2000000, liquid particulates, and prints the new state
Confidence
verified, proof one
Finding
terrain/world#world-console-commands
Test
terrain::world_console_toggles_difftest

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.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.