benilla-re systems structs docs

CM2Model::GetCameraById

function · models · orchestration

Address
0x713540 · 72 bytes, up to 0x713587
Signature
CCamera * __thiscall (CM2Model *this, uint32_t id)
Meaning
Returns the camera of the state a camera id's lookup entry names, 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 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.