benilla-re systems structs docs

CCamera::CCamera

function · uicamera · primitive

Address
0x50c0e0 · 813 bytes, up to 0x50c40c
Signature
CCamera * __thiscall (CCamera *this)
Meaning
Constructs the camera, sets its starting view, loads its saved view and registers cameraClip
Confidence
verified, proof one
Finding
uicamera/view#the-starting-view

Finding: The starting view in uicamera: the camera's saved view

The cameraView CVar (default 1) picks one of five rows of default strings, a distance in yards and a pitch in degrees: view 0 FIRST_PERSON 0.0 and 0.0, view 1 THIRD_PERSON_A 5.55 and 10.0, view 2 THIRD_PERSON_B 5.55 and 20.0, view 3 THIRD_PERSON_C 13.88 and 30.0, view 4 THIRD_PERSON_D 13.88 and 10.0. The camera constructor converts them to numbers, the pitch to radians, stores them in the current distance and pitch and copies both into the targets. The saved file then replaces them. So a character that never zoomed saves 5.55 and 10.0.

The derivation is in the doc.

Callers 1

Callees 7

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