benilla-re systems structs docs

CGCorpse_C::OnCreate

function · objectlayer · orchestration

Address
0x5d6260 · 729 bytes, up to 0x5d6538
Signature
void __thiscall (CGCorpse_C *this, uint32_t time, void *movement, uint32_t flag)
Meaning
Builds and dresses the character component, sets the pose, adds the sparkle and publishes the player's own corpse
Confidence
verified, proof one
Finding
objectlayer/corpses#dressing-the-body

Finding: Dressing the body in objectlayer: corpses

0x5d6260 is the create hook (the notify pass of update). After the base hook it builds, unless the flags mark a skeleton, a character component from the race, gender, skin, face, hair and facial-hair bytes of fields +0x69 to +0x6f and the body model. It then sets the pose and dresses the component from the 19 item slots. Slot 0 is skipped with flags bit 3, slot 14 with bit 4 and slot 17 always; slots 15 and 16 attach a weapon model only when an item object has the field value as its GUID. A tabard in slot 18 whose display row has bit 0 of +0x24 installs the guild emblem.

The derivation is in the doc.

Callers 1

Callees 16

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