GetWeatherType
function · lighting · orchestration
- Address
0x67bc10· 41 bytes, up to0x67bc38- Signature
int32_t __thiscall (void *this)- Meaning
- Returns 1, 2 or 3 for a live rain, snow or sand effect, else 0
- 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 5
- ConsoleShowWeather terrain
- SetWeather lighting
- GetWeatherGridBounds lighting
- GetWeatherBox lighting
- UpdateWeather lighting
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.