HandleSpellEffectLevelOption
function · cvar · primitive
- Address
0x689510· 145 bytes, up to0x6895a0- Signature
uint8_t __stdcall (const char *value, void *arg)- Meaning
- Clamps a spell effect level to 0 to 2, stores it and sets the particle density for 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.
Callers 0
None by a direct call or jump.
Callees 4
- ConsoleWrite console
- SStrToInt storm
- _sprintf crt
- SetParticleDensity models
Calls and jumps by a bare address, from tables/calls.tsv.