benilla-re systems structs docs

s_maxLightsValue

global · cvar

Address
0xc5a45c · 4 bytes, up to 0xc5a45f
Type
int32_t
Meaning
Holds the MaxLights value the option stores; nothing reads it
Confidence
verified, proof two
Finding
cvar/options#integer-range-settings

Finding: Integer range settings in cvar: options

Seven settings take a whole number. A number outside the range writes a line and returns 0, except spellEffectLevel, which clamps.

settingcallbackacceptsstores or calls
MaxLights0x688bd01 to 40xc5a45c
shadowLevel0x688c101 or lessnothing
frillDensity0x688de01 to 2560x6725a0
mapObjLightLOD0x688f000 to 20xca7ecc
baseMip0x6890900 or 10x589bf0
waterLOD0x6890500 onlyzeroes 0xc89db8
spellEffectLevel0x689510any, clamped to 0 to 20xc5a470, 0x7adfb0

The derivation is in the doc.