s_maxLightsValue
global · cvar
- Address
0xc5a45c· 4 bytes, up to0xc5a45f- 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.
| setting | callback | accepts | stores or calls |
|---|---|---|---|
MaxLights | 0x688bd0 | 1 to 4 | 0xc5a45c |
shadowLevel | 0x688c10 | 1 or less | nothing |
frillDensity | 0x688de0 | 1 to 256 | 0x6725a0 |
mapObjLightLOD | 0x688f00 | 0 to 2 | 0xca7ecc |
baseMip | 0x689090 | 0 or 1 | 0x589bf0 |
waterLOD | 0x689050 | 0 only | zeroes 0xc89db8 |
spellEffectLevel | 0x689510 | any, clamped to 0 to 2 | 0xc5a470, 0x7adfb0 |
The derivation is in the doc.