CCamera::AddShakeRecord
function · uicamera · primitive
- Address
0x511c60· 209 bytes, up to0x511d30- Signature
void __thiscall (CCamera *this, const NTempest::C3Vector *position, int type, int axis, float amplitude, float frequency, float duration, float preroll, float decay)- Meaning
- Allocates a shake record, links it at the tail and stamps the clock
- 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.
Callers 1
- CameraAddShake uicamera
Callees 2
- OsGetAsyncTimeMs core
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.