CM2Model::GetCamera
function · models · orchestration
- Address
0x713590· 47 bytes, up to0x7135be- Signature
CCamera * __thiscall (CM2Model *this, uint32_t index)- Meaning
- Returns the camera of an instance's camera state by index, with no bound
- Confidence
- verified, proof one
- Finding
- models/model#key-bones-and-cameras
Finding: Key bones and cameras in models: the instance
HasKeyBone(id) waits for the shared model and returns 1 for −1 and for an id whose key bone
lookup entry is not 0xffff, else 0; an id past the lookup reads as 0xffff. GetCameraById(id)
maps the id through the camera lookup and GetCamera(index) takes the index as given; both return
the camera at +0x80 of the instance's camera state index, 0x84 bytes each at +0x3c4. Neither
bounds the index: an id the camera lookup lacks gives 0xffff, read 0xffff·0x84 bytes into the
array. HasCamera, the camera lookup's presence test, has no caller.
The derivation is in the doc.
Callers 4
- GetFirstLoginCameraPosition glue
- PlayCinematicShot ui
- CCamera::ArmShot uicamera
- SimpleModelSetCamera ui
Callees 1
- CM2Model::WaitForShared models
Calls and jumps by a bare address, from tables/calls.tsv.