benilla-re systems structs docs

CCamera::ApplyShakes

function · uicamera · primitive

Address
0x511760 · 443 bytes, up to 0x51191a
Signature
void __thiscall (CCamera *this, const NTempest::C3Vector *eye, NTempest::C3Vector *offset)
Meaning
Ages the shake records and adds the loudest on each axis to the offset
Confidence
verified, proof one
Finding
uicamera/effects#walking-the-shakes
Test
ui::glue_511_511760_rate_accumulate

Finding: Walking the shakes in uicamera: shake, bobbing, terrain tilt and the drunk view

Each frame 0x511760(eye, offset) adds the shakes to the offset. It does nothing, and ages nothing, when the list is empty or the followed object is not a unit. A record's time is the milliseconds since its spawn times 0.001 plus its pre-roll; at or past its duration the record is unlinked and freed. A live record's amplitude is cut by the distance falloff and the record is skipped when out of range. For each axis 0 to 2 the record with the largest amplitude wins, the older record on a tie; the others add nothing that frame. Each winner is evaluated with the followed unit's world facing.

The derivation is in the doc.

Callers 1

Callees 8

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