benilla-re systems structs docs

ClaimCameraMapObject

function · terrain · host

Address
0x6821f0 · 377 bytes, up to 0x682368
Signature
void __cdecl (void)
Meaning
Traces the camera's down-ray against terrain and map objects and stores the map object that holds the camera
Confidence
verified, proof one
Finding
terrain/camstate#camera-down-ray
Test
terrain::world_query_consumer_difftest

Finding: Camera down-ray in terrain: camera state

0x6821f0 finds the map object that holds the camera and stores it in 0xc7b748. With world flag 0x100 set, it traces a segment from the camera 1760 yards down the z axis against the terrain (0x69c320) and against the map objects (0x6be250), both fractions starting at 1.0. A map object hit counts when the terrain was missed or its fraction is not larger than the terrain's; strictly nearer terrain wins. A counted hit becomes 0xc7b748 and its model and group join the window list.

The derivation is in the doc.

Callers 1

Callees 6

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