CCamera::ZoomIn
function · uicamera · primitive
- Address
0x50fc60· 106 bytes, up to0x50fcc9- Signature
void __thiscall (CCamera *this, float amount, uint32_t now)- Meaning
- Zooms in by an amount of yards at the glide speed
- Confidence
- verified, proof one
- Finding
- uicamera/driver#maximum-distance-and-the-wheel
- Test
ui::glue_unit_convert_ftol
Finding: Maximum distance and the wheel in uicamera: the follow camera
The farthest the camera may be is cameraDistanceMax times cameraDistanceMaxFactor, kept from 0 to 50. First
person is distance 0. CameraZoomIn(amount) and CameraZoomOut(amount) take an optional number, 1 by default,
and move the distance target by that many yards: the axis runs for amount / cameraDistanceMoveSpeed seconds. The
opposite axis is stopped first, and a notch that arrives while the axis still runs adds to its queued time.
The derivation is in the doc.
Callers 1
- Script::CameraZoomIn uicamera
Callees 3
- __ftol crt
- CCamera::StartAxis uicamera
- CCamera::StopAxis uicamera
Calls and jumps by a bare address, from tables/calls.tsv.