CCamera::ArmDistance
function · uicamera · primitive
- Address
0x512120· 218 bytes, up to0x5121f9- Signature
bool __thiscall (CCamera *this, float target, float delay, float factor, uint32_t now)- Meaning
- Arms the distance transition for a duration from the speed CVar
- Confidence
- verified, proof one
- Finding
- uicamera/transitions#arming-a-transition
- Test
ui::glue_511_512120_body,ui::glue_511_512120_quartet
Finding: Arming a transition in uicamera: transitions
An angle setter (target, delay, factor, now) begins at now + delay * 1000 milliseconds and lasts factor times
the angle to cover divided by the speed CVar in radians a second. The angle runs from the live value, wrapped to within π
of the target, to the target. Nothing is armed within 0.001 of the target or on a repeat of the armed target, delay and factor.
Yaw 0x512c70 (inner 0x512dc0), pitch 0x512830 (0x512980), pivot bias 0x512a50 (0x512ba0), ground pitch 0x512490
(0x5125e0) and field of view 0x512270 (0x5123c0) follow this. Distance 0x512120 (inner 0x512200) and height 0x5126b0 (inner 0x512790) do not wrap. A zero
factor gives a duration of 0, and the value arrives at the next frame.
The derivation is in the doc.
Callers 2
- CCamera::ArmAutoReturn uicamera
- CCamera::SetView uicamera
Callees 2
- __ftol crt
- CCamera::BeginDistanceTransition uicamera
Calls and jumps by a bare address, from tables/calls.tsv.