benilla-re systems structs docs

HandleLodDistOption

function · cvar · orchestration

Address
0x688ab0 · 88 bytes, up to 0x688b07
Signature
uint8_t __stdcall (const char *value, void *arg)
Meaning
Passes a terrain LOD distance from 50 to 250 on, else writes a line and uses 77; either way it keeps the set
Confidence
verified, proof two
Finding
cvar/options#float-range-settings

Finding: Float range settings in cvar: options

Seven settings take a number in a range, the bounds inclusive. Out of range, lodDist writes a line and runs its setter at 77.0, whose 1 it returns, so the set is kept: the record holds the typed value and the setting runs at 77. The other six write a line and return 0, so the setting keeps its old value. The terrain callbacks are described in terrain/world#distance-settings and terrain/render.

settingcallbackacceptsstores or calls
lodDist0x688ab050 to 250 (outside: line, then 77)0x672680
SmallCull0x688b100.001 to 2float 0x868620
DistCull0x688b701 to 888.888916float 0x868624
texLodBias0x688c90-1 to 10x672640, a no-op
particleDensity0x688fb00.25 to 10x7adfb0
unitDrawDist0x689000100 to 300float 0x86796c
footstepBias0x6894500 to 1nothing

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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