benilla-re systems structs docs

CGCorpse_C::GetModelPath

function · objectlayer · primitive

Address
0x5d6700 · 211 bytes, up to 0x5d67d2
Signature
const char * __thiscall (CGCorpse_C *this)
Meaning
Gives the skeleton path of a skeleton or the display id's model path
Confidence
verified, proof one
Finding
objectlayer/corpses#the-corpses-model-path

Finding: The corpse's model path in objectlayer: corpses

Slot 10 gives the model file. A skeleton (flags bit 0) uses World\Generic\PassiveDoodads\DeathSkeletons\%s%sDeathSkeleton.mdx with the race's file string (ChrRaces row +0x3c, indexed by the byte at +0x69) and the gender word Male, Female or NOSEX for the byte at +0x6a. Any other corpse uses the model of its display id: the CreatureDisplayInfo row's +0x4 indexes the model store, whose row +0x8 is the path. A miss prints INVALIDPLAYERDISPLAYID|%d|%d|%d or INVALIDPLAYERMODELRECORD|%d|%d|%d and gives no path.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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