benilla-re systems structs docs

CGObject_C::ClearLight

function · objectlayer · primitive

Address
0x6144f0 · 88 bytes, up to 0x614547
Signature
void __thiscall (CGObject_C *this, int bit)
Meaning
Clears a highlight bit and blacks the emissive colour when none is left
Confidence
verified, proof one
Finding
objectlayer/objectbase#highlight-light-bits

Finding: Highlight light bits in objectlayer: the base object

0x614550(bit) sets the bit in +0xb8 and gives the model an emissive colour from the light state's byte triple at +0x178. 0x6144f0(bit) clears the bit and, when no bit is left, resets the model's emissive colour to black. The interface uses bit 0 for the locked target and bit 1 for the object under the cursor.

The derivation is in the doc.

Callers 2

Callees 1

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