GetWeatherGrid
function · lighting · orchestration
- Address
0x67c760· 9 bytes, up to0x67c768- Signature
void * __stdcall (void)- Meaning
- Returns the weather manager's ground grid
- 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
- Rain::SpawnDrop lighting
- Snow::SpawnFlake lighting
- Sand::SpawnGrain lighting
- Mists::SpawnPuff lighting
- Mists::PlacePuff lighting
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.