benilla-re systems structs docs

CCamera::SaveSettings

function · uicamera · primitive

Address
0x50c4d0 · 207 bytes, up to 0x50c59e
Signature
void __thiscall (CCamera *this)
Meaning
Writes the target distance and pitch to camera-settings.txt
Confidence
verified, proof one
Finding
uicamera/view#the-settings-file

Finding: The settings file in uicamera: the camera's saved view

The camera saves cameraDistance and cameraPitch to camera-settings.txt in the character's folder, WTF\Account\<account>\<realm>\<character>\. The file has exactly two lines, the distance first, each ended by a line feed alone: cameraDistance %f and cameraPitch %f, six decimals. The distance is the camera's target distance, so it is the zoom the player chose and never the distance a wall pulled the camera in to. The pitch is written in degrees. The camera reads the file when it is made and writes it when it is destroyed.

The derivation is in the doc.

Callers 1

Callees 5

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