CCamera::PopGroundPitch
function · uicamera · primitive
- Address
0x50d520· 26 bytes, up to0x50d539- Signature
void __thiscall (CCamera *this)- Meaning
- Lowers the ground pitch counter and takes the ground pitch off the pitch on the last
- Confidence
- verified, proof one
- Finding
- uicamera/transitions#relative-and-absolute-frames
- Test
ui::glue_50d440_neg_push
Finding: Relative and absolute frames in uicamera: transitions
The yaw offset is normally relative to the target's facing. Two counters change that. While +0xa4 is above 0 the
camera is in the absolute frame: the view yaw is the offset alone. Raising the counter from 0 adds the target's facing to
the yaw offsets so the picture does not move, and lowering it to 0 takes the facing off again. +0xa8 does the same for the
terrain pitch, which is added to the view pitch only while the counter is 0. Mouselook raises both counters when it begins and
lowers them when it ends; the external-move flag of uicamera/follow raises the first.
The derivation is in the doc.
Callers 1
- CameraLeaveFreelook uicamera
Callees 1
- CCamera::ShiftPitch uicamera
Calls and jumps by a bare address, from tables/calls.tsv.