benilla-re systems structs docs

CCamera::LoadShot

function · uicamera · primitive

Address
0x50c870 · 413 bytes, up to 0x50ca0c
Signature
bool __thiscall (CCamera *this, const char *path, const NTempest::C3Vector *origin, float facing, void *callback, uint32_t a, uint32_t b)
Meaning
Makes the shot model and installs its origin and facing matrix
Confidence
verified, proof one
Finding
uicamera/cinematic#loading-a-shot

Finding: Loading a shot in uicamera: the in-engine cinematic

0x50c870(path, origin, facing, callback, a, b) makes the shot model and places it. It releases any shot (0x50ca50), creates the model from the path in the camera's scene, stores it at +0x48 and registers the done callback. The base matrix is a rotation by the facing about the vertical axis with the origin in its last row, kept at +0x54, expanded to 4 by 4 and installed in the model with 0x710620. A local point v goes to origin + Rz(facing) * v, where Rz turns x toward y. A model not yet loaded leaves the arm bit (+0x90 bit 2) clear for the first frame to set.

The derivation is in the doc.

Callers 1

Callees 12

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