DeleteCharacterComponent
function · charactermodel · orchestration
- Address
0x476000· 27 bytes, up to0x47601a- Signature
void __thiscall (void *this)- Meaning
- Tears a character component down and returns it to its pool
- Confidence
- verified, proof one
- Finding
- charactermodel/component#create-build-and-delete
Finding: Create, build and delete in charactermodel: component
0x475fb0 takes a block from the pool, constructs it with 0x476810 and stores its handle at +0x14. 0x476b90 builds a component from a
descriptor: it releases the old model, copies 91 dwords to +0x18, zeroes both cell grids and +0x4d8 to +0x4e3, and fails (returns 0) unless the race is in
range and CharSections has a skin row for it. It then marks a full rebuild, drops a stale target, sets the race flag from the race's flags bit 1, loads the baked skin when +0x3c is
set, and applies skin, hair style and facial hair. 0x476000 destroys with 0x476ac0 and frees the block.
The derivation is in the doc.
Callers 12
- ReleaseCreateGlobals glue
- ReleaseCreateState glue
- BuildCreateCharacter glue
- DestroyCharSelectRecord glue
- 0x504310 ui
- DressUpModel::SetModelInstance ui
- CGCorpse_C::~CGCorpse_C objectlayer
- CGCorpse_C::Rebuild objectlayer
- CGUnit_C::BuildCharacterComponent objectlayer
- CGUnit_C::~CGUnit_C objectlayer
- CGUnit_C::PostInit objectlayer
- CGUnit_C::OnDisplayChanged objectlayer
Callees 2
- ObjectFree objectalloc
- DestroyCharacterComponent charactermodel
Calls and jumps by a bare address, from tables/calls.tsv.