SampleWeatherMotion
function · lighting · primitive
- Address
0x67c150· 1380 bytes, up to0x67c6b3- Signature
void __thiscall (void *this)- Meaning
- Keeps the player's and transport's position steps and averages them into velocities
- Confidence
- verified, proof one
- Finding
- lighting/weather#player-motion
- Test
lighting::wx_67c150_owned_fp_difftest
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.
Callers 1
- UpdateWeather lighting
Callees 11
- _atexit crt
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CMovement::GetVelocity objectlayer
- SMemAlloc storm
- SMemFree storm
- 0x67d570 lighting
- 0x67d5d0 lighting
- 0x67d720 lighting
- LinkWeatherNode lighting
Calls and jumps by a bare address, from tables/calls.tsv.