benilla-re systems structs docs

CMapObj::TraceGroupMasked

function · models · primitive

Address
0x6a3a40 · 200 bytes, up to 0x6a3b07
Signature
uint8_t __thiscall (CMapObj *this, const float *start, const float *end, uint32_t group, uint32_t flags, uint16_t *face, float *t)
Meaning
Traces a segment against one group with a face reject mask built from the flags and returns the first face word
Confidence
verified, proof one
Finding
terrain/mapentities#face-masks

Finding: Face masks in terrain: map entities

A face is a candidate for a trace when its flag byte has none of the mask bits set. The nearest-object probe 0x6a8840 passes mask 4 to 0x6b92b0, which ORs in 0x80 and so rejects faces with 0x84. The material trace 0x6a2600 passes 0x20 to 0x6a3a40, which builds mask 0x88. The bit 0x80 is a visited mark the leaf writes into the loaded face bytes and the query clears when it ends.

The derivation is in the doc.

Callers 2

Callees 2

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