benilla-re systems structs docs

CCamera::LoadViewSlots

function · uicamera · primitive

Address
0x50fb80 · 63 bytes, up to 0x50fbbe
Signature
void __thiscall (CCamera *this)
Meaning
Fills the 15 view slots from +0xb0 with the saved-view CVars' values, pitch and yaw times pi/180
Confidence
verified, proof one
Finding
uicamera/cvars#saved-view-cvars
Test
ui::glue_deg2rad_gated

Finding: Saved view CVars in uicamera: the camera CVars

Fifteen more CVars hold the five views. The name is camera, then Distance, Pitch or Yaw, then the view's suffix: none for view 0 (first person), A to D for views 1 to 4. So cameraDistance is view 0 and cameraPitchB the pitch of view 2. The default of each is the string of the view table in uicamera/view#the-starting-view, and each distance accepts 0 to 50, each pitch plus or minus 89 degrees and each yaw 0 to 360. The camera keeps the current value of each in its view slots, which its constructor fills once (0x50fb80): 15 floats from +0xb0, view by view, each CVar's float value, pitch and yaw times π/180.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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