benilla-re systems structs docs

s_unitDrawDistValue

global · cvar

Address
0x86796c · 4 bytes, up to 0x86796f
Type
float
Meaning
Holds the unitDrawDist value the option stores; nothing reads it
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.