Script::FlipCameraYaw
function · uicamera · primitive
- Address
0x50b6a0· 69 bytes, up to0x50b6e4- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Lua function FlipCameraYaw
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- uicamera/driver#view-angles
- Test
ui::cam_flip_yaw_difftest
Finding: View angles in uicamera: the follow camera
Each update makes the view angles from the live offsets and the target's facing. The yaw is the yaw offset
(+0xf0) plus the flip bias (+0x100), plus the target's facing unless the camera is in the absolute frame
(+0xa4 above 0). The facing is the unit's own, smoothed by 0x50d810 for a unit that is not the active mover. The
pitch is the live pitch (+0xf4) plus the ground pitch (+0x108) when +0xa8 is 0 or less, clamped to plus or minus
89 degrees; the roll is +0xf8. FlipCameraYaw(degrees) adds degrees to the flip bias, in radians.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- GetActiveCamera ui
- lua_isnumber lua
- lua_tonumber lua
Calls and jumps by a bare address, from tables/calls.tsv.