HandleParticleDensityOption
function · cvar · primitive
- Address
0x688fb0· 77 bytes, up to0x688ffc- Signature
uint8_t __stdcall (const char *value, void *arg)- Meaning
- Accepts a particle density from 0.25 to 1 and passes it to the particle density setter
- 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.
| setting | callback | accepts | stores or calls |
|---|---|---|---|
lodDist | 0x688ab0 | 50 to 250 (outside: line, then 77) | 0x672680 |
SmallCull | 0x688b10 | 0.001 to 2 | float 0x868620 |
DistCull | 0x688b70 | 1 to 888.888916 | float 0x868624 |
texLodBias | 0x688c90 | -1 to 1 | 0x672640, a no-op |
particleDensity | 0x688fb0 | 0.25 to 1 | 0x7adfb0 |
unitDrawDist | 0x689000 | 100 to 300 | float 0x86796c |
footstepBias | 0x689450 | 0 to 1 | nothing |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- ConsoleWrite console
- SStrToFloat storm
- SetParticleDensity models
Calls and jumps by a bare address, from tables/calls.tsv.