benilla-re systems structs docs

DestroyWeatherEffects

function · lighting · host

Address
0x67ba50 · 104 bytes, up to 0x67bab7
Signature
void __thiscall (void *this)
Meaning
Destroys and frees the rain, snow and sand effects
Confidence
verified, proof one
Finding
lighting/weather#weather-driver

Finding: Weather driver in lighting: weather

Each frame the driver samples the player's motion, then takes the heading from the player's velocity when its horizontal speed is at least 1 and the unit flag is clear, else from the player's facing; the speed is the player's movement speed while the transport is at most √2 (v² ≤ 2, NaN included), else the transport's horizontal speed. A pending type with live particles and smooth on fades the old effect: the grade ramps toward min(target, 0.25) and each effect is told to stop. Otherwise the effects are torn down and the pending type is built. A grade or density still off its target ramps toward the full target.

The derivation is in the doc.

Callers 3

Callees 4

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