benilla-re systems structs docs

GetFirstLoginCameraPosition

function · glue · primitive

Address
0x46c2c0 · 598 bytes, up to 0x46c515
Signature
uint8_t __fastcall (uint8_t race, float *position)
Meaning
Writes the race cinematic first camera position over a position; returns 0 when a record is missing
Confidence
verified, proof one
Finding
glue/flow#first-login-camera

Finding: First-login camera in glue: the screen flow

0x46c2c0 (race in cl, position in edx) looks the race up in ChrRaces.dbc, its CinematicSequenceID (+0x40) in CinematicSequences.dbc, and that sequence's first camera (+0x08) in CinematicCamera.dbc; a miss returns 0 and leaves the position. It loads the camera's model (+0x04) and waits for it, places it at the origin +0x0c..+0x14 turned about z by the facing +0x18, and writes camera 0's eye, vector property 7, over the position, returning 1. The world loads where the race's intro cinematic opens. enterworld holds the entry conditions.

The derivation is in the doc.

Callers 1

Callees 14

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