CCamera::ArmTerrainTilt
function · uicamera · primitive
- Address
0x50dbc0· 508 bytes, up to0x50ddbb- Signature
void __thiscall (CCamera *this, CGObject_C *unit, uint32_t now, bool snap)- Meaning
- Sets or arms the ground pitch from the probed angle and the unit's state row
- Confidence
- verified, proof one
- Finding
- uicamera/effects#arming-the-tilt
- Test
ui::glue_50dbc0_step_clamp
Finding: Arming the tilt in uicamera: shake, bobbing, terrain tilt and the drunk view
0x50dbc0(unit, now, snap) turns the probed angle into the ground pitch channel. The state of the unit picks one of ten
rows of the third smoothing family (uicamera/cvars#smoothing-cvars) for the style cameraSmoothStyle: Taxi, Swim, Fall, Track,
Fear, Move, Strafe, Turn or Idle in that order of test. The target is the row's absorb times the probed angle. A negative factor keeps the live
tilt and cancels the transition. A snap, or a factor under 2^-22, sets the live tilt to the target at once. Otherwise the tilt
eases with 0x512490, and the duration is kept from factor * cameraTerrainTiltTimeMin to factor * cameraTerrainTiltTimeMax.
The derivation is in the doc.
Callers 3
- CCamera::SetTarget uicamera
- CCamera::UpdateTransitions uicamera
- CCamera::SetView uicamera
Callees 1
- CCamera::ArmGroundPitch uicamera
Calls and jumps by a bare address, from tables/calls.tsv.