CCamera::CommitFacing
function · uicamera · primitive
- Address
0x5103e0· 442 bytes, up to0x510599- Signature
void __thiscall (CCamera *this)- Meaning
- Hands the camera yaw and the final pitch to the player's facing and pitch
- Confidence
- verified, proof one
- Finding
- uicamera/effects#committing-the-facing
- Test
ui::glue_5103e0_arith
Finding: Committing the facing in uicamera: shake, bobbing, terrain tilt and the drunk view
0x5103e0 hands the camera's yaw and pitch to the player. It remembers the yaw at +0x18c, sets mode bit 14, forms the
final pitch as the pitch plus the pivot bias kept within plus or minus 89 degrees, and calls the input control's facing and
pitch setters with the clock. In a water band with cameraDive set and a sober player, a small pitch is replaced by 0: in the submerged band a pitch between
cameraSurfacePitch (a negative value) and 0; in the surface band a pitch between 0 and cameraSubmergePitch. In the Track state nothing is replaced.
The derivation is in the doc.
Callers 2
Callees 5
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- GetInputControl input
- CInputControl::HandOffFacing input
- CInputControl::HandOffPitch input
Calls and jumps by a bare address, from tables/calls.tsv.