Script::GetTerrainMip
function · ui · primitive
- Address
0x488fb0· 42 bytes, up to0x488fd9- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 minus the shadowLevel CVar
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/cvarverbs#the-detail-verbs
- Test
ui::luabind_488_get_terrain_mip
Finding: The detail verbs in ui: CVar, option and engine information verbs
Seven pairs read and write CVars through a conversion. The setters raise Usage: Set<Name>(value) without a numeric
argument, and the water setter does nothing else.
| verb | CVar | get returns | set stores |
|---|---|---|---|
WorldDetail | smallCull, frillDensity | 0, 1 or 2 from smallCull | frillDensity 16, 32, 48 and smallCull 0.07, 0.04, 0.01 for 0, 1, 2 (cvar/options#world-detail-verbs) |
WaterDetail | none | always 0 | nothing |
Farclip | farclip | the number | %f text |
TerrainMip | shadowLevel | 1 minus the CVar's integer | %d of 1 minus the argument |
DoodadAnim | doodadAnim | the number | %f text |
TexLodBias | texLodBias | the number | %f text |
BaseMip | baseMip | 1.0 minus the CVar's number | %d of 1.0 minus the argument |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- CVar::Lookup cvar
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.