benilla-re systems structs docs

CGObject_C::SetLight

function · objectlayer · primitive

Address
0x614550 · 138 bytes, up to 0x6145d9
Signature
void __thiscall (CGObject_C *this, int bit)
Meaning
Sets a highlight bit and gives the model the light state's emissive colour
Confidence
verified, proof one
Finding
objectlayer/objectbase#highlight-light-bits
Test
objectlayer::decal_rgb_difftest

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 2

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