CCamera::ArmShot
function · uicamera · primitive
- Address
0x50c740· 280 bytes, up to0x50c857- Signature
bool __thiscall (CCamera *this)- Meaning
- Starts the shot model, takes its camera and applies the first view
- Confidence
- verified, proof one
- Finding
- uicamera/cinematic#arming-and-the-per-frame-step
Finding: Arming and the per-frame step in uicamera: the in-engine cinematic
0x50c740 arms the shot camera: it sets the arm bit, stamps the clock +0x4c, sets the scene time to 0, starts animation 0 of the model, links it for animation, runs one animate pass, takes camera 0 of the model into +0x50 and applies the first view. 0x50f060 runs each frame while a model is held: if the arm bit is clear it waits for the model to load and arms; then it advances the scene by the milliseconds since +0x4c, animates it, reads the camera's eye (property 7), look-at (property 8) and roll (property 5), stores the clock and applies the view with 0x50d5d0. +0x50 is non-null exactly while a shot is armed.
The derivation is in the doc.
Callers 2
- CCamera::LoadShot uicamera
- CCamera::UpdateShot uicamera
Callees 12
- AddHandleRef base
- OsGetAsyncTimeMs core
- 0x50ad10 unassigned
- CCamera::SetLookAt uicamera
- M2SceneSetTime models
- M2SceneAnimateAndCollect models
- HandleClose2 models
- CM2Model::SetAnimated models
- CM2Model::PlayAnimation models
- CM2Model::GetCamera models
- GetVectorProperty camera
- GetScalarProperty camera
Calls and jumps by a bare address, from tables/calls.tsv.