CCamera::SetFovOverride
function · uicamera · primitive
- Address
0x50d320· 98 bytes, up to0x50d381- Signature
void __thiscall (CCamera *this, int degrees)- Meaning
- Switches to first person with a given field of view, or restores the third person view
- Confidence
- verified, proof one
- Finding
- uicamera/transitions#field-of-view
- Test
ui::glue_50d320_deg2rad_set
Finding: Field of view in uicamera: transitions
The field of view is the base +0x40 plus the eased bias +0x10c, in radians, kept between 0 and 179 degrees; it is the camera's
vtable slot 0. The base is π/2 (90 degrees). SetFovOverride(degrees) with a nonzero value switches at once to view 0 (first
person) and sets the far-sight bit (mode bit 3) and the base to that angle; with 0 it clears the bit, restores π/2 and returns to view 1. With the
bit set the bias counts as 0.
The derivation is in the doc.
Callers 3
- CGPlayer_C::OnActiveArrival objectlayer
- CGUnit_C::ShowAuraSlot objectlayer
- CGUnit_C::OnAuraRemoved objectlayer
Callees 1
- CCamera::SetView uicamera
Calls and jumps by a bare address, from tables/calls.tsv.