BuildWeatherManager
function · lighting · primitive
- Address
0x67b740· 299 bytes, up to0x67b86a- Signature
void * __thiscall (void *this)- Meaning
- Builds the weather manager, its ground grid and settings, and applies a forced type
- Confidence
- verified, proof one
- Finding
- lighting/weather#weather-manager
Finding: Weather manager in lighting: weather
The world builds one manager at start-up and frees it at shutdown. It holds the grade and density ramps, the pending type, one effect per type, the ground grid and the player's motion:
| offset | holds |
|---|---|
+0x0, +0x4, +0x8 | grade: target, ramp start value, current |
+0xc, +0x10, +0x14 | density: target, ramp start value, current |
+0x18, +0x1c | grade and density ramp start, in milliseconds |
+0x20 | pending type, −1 for none |
+0x24, +0x25 | bytes: ramp now, smooth |
+0x28, +0x2c, +0x30 | rain, snow and sand effects |
+0x34 | ground grid |
+0x38 to +0x4c | the player's and the transport's motion samples |
+0x50, +0x5c | the player's and the transport's velocity |
+0x68, +0x74 | the player's position; byte: its UNIT_FIELD_FLAGS bit 0x100000 |
+0x78, +0x7c | heading and speed |
+0x80 | byte: driven at least once |
The derivation is in the doc.
Callers 1
- CWorld::Initialize terrain
Callees 5
- CVar::Register cvar
- SMemAlloc storm
- 0x64c650 storm
- SetWeather lighting
- BuildWeatherGrid lighting
Calls and jumps by a bare address, from tables/calls.tsv.