benilla-re systems structs docs

CameraAddShake

function · uicamera · primitive

Address
0x511d40 · 81 bytes, up to 0x511d90
Signature
void __thiscall (void *this, int id, const NTempest::C3Vector *position)
Meaning
Adds the shake a CameraShakes row describes at a position
Confidence
verified, proof one
Finding
uicamera/effects#spawning-a-shake
Test
ui::glue_511_511d40_scale_recip36

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.

Callers 5

Callees 1

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