benilla-re systems structs docs

DestroyWeatherManager

function · lighting · primitive

Address
0x67b900 · 335 bytes, up to 0x67ba4e
Signature
void __thiscall (void *this)
Meaning
Tears the weather effects down, deletes the ground grid and frees the motion samples
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:

offsetholds
+0x0, +0x4, +0x8grade: target, ramp start value, current
+0xc, +0x10, +0x14density: target, ramp start value, current
+0x18, +0x1cgrade and density ramp start, in milliseconds
+0x20pending type, −1 for none
+0x24, +0x25bytes: ramp now, smooth
+0x28, +0x2c, +0x30rain, snow and sand effects
+0x34ground grid
+0x38 to +0x4cthe player's and the transport's motion samples
+0x50, +0x5cthe player's and the transport's velocity
+0x68, +0x74the player's position; byte: its UNIT_FIELD_FLAGS bit 0x100000
+0x78, +0x7cheading and speed
+0x80byte: driven at least once

The derivation is in the doc.

Callers 1

Callees 4

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