s_weatherLastSampleMs
global · lighting
- Address
0xc7b4a8· 4 bytes, up to0xc7b4ab- Type
uint32_t- Meaning
- Holds the milliseconds of the last motion sample
- Confidence
- verified, proof one
- Finding
- lighting/weather#player-motion
Finding: Player motion in lighting: weather
The driver keeps two lists of position steps, the player's and the transport's, each step with the milliseconds since the last frame, newest last. First, walking a list from its oldest step, each step at or after the one where the running sum reaches 150 ms frees one step from the front. Then the frame's step is added, and each velocity is the summed step over (summed milliseconds + 1)·0.001 seconds. When the player has no movement velocity and the transport is at most √2 (v² ≤ 2, NaN included), the player's velocity is zero at once.
The derivation is in the doc.