benilla-re systems structs docs

s_cameraShakesStore

global · dbc

Address
0xc0dfc8 · 20 bytes, up to 0xc0dfdb
Type
uint8_t[20]
Meaning
Holds the CameraShakes.dbc store: rows, count, id index, highest id and loaded flag
Confidence
verified, proof one
Finding
uicamera/effects#spawning-a-shake

Finding: Spawning a shake in uicamera: shake, bobbing, terrain tilt and the drunk view

0x511d40(id, position) adds one shake. An id below 0 or above the table's highest id adds nothing, and so does a hole in the table. The row of CameraShakes.dbc gives the record its type, axis, amplitude, frequency, duration, pre-roll and decay. The amplitude is multiplied by 1/36 once, so everything after is in yards. The record keeps the position and the spawn time and nothing else: no source object, no id. It is appended to the tail of the camera's list at +0x25c.

The derivation is in the doc.