benilla-re systems structs docs

Script::GetTerrainMip

function · ui · primitive

Address
0x488fb0 · 42 bytes, up to 0x488fd9
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.

verbCVarget returnsset stores
WorldDetailsmallCull, frillDensity0, 1 or 2 from smallCullfrillDensity 16, 32, 48 and smallCull 0.07, 0.04, 0.01 for 0, 1, 2 (cvar/options#world-detail-verbs)
WaterDetailnonealways 0nothing
Farclipfarclipthe number%f text
TerrainMipshadowLevel1 minus the CVar's integer%d of 1 minus the argument
DoodadAnimdoodadAnimthe number%f text
TexLodBiastexLodBiasthe number%f text
BaseMipbaseMip1.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

Calls and jumps by a bare address, from tables/calls.tsv.