CGObject_C::CreateNode
function · objectlayer · orchestration
- Address
0x613e10· 217 bytes, up to0x613ee8- Signature
void __thiscall (CGObject_C *this)- Meaning
- Loads the slot 10 model if none and creates the world node of kind 0, 2 or 11
- Confidence
- verified, proof one
- Finding
- objectlayer/objectbase#models-and-the-node
Finding: Models and the node in objectlayer: the base object
An object holds up to two models, the body at +0xd8 and an overriding one at +0xdc; every
user takes +0xdc when it is set. 0x613cf0(model) swaps the body: it takes a reference,
releases the old one, and sets 0x613d70 as the loaded callback. 0x613d80(model) does the
same for +0xdc, and clearing it refreshes the bounds from the body. A node, when one exists,
is told the new model. 0x613e10 creates the model from the slot 10 path when there is none, then
the node: kind 11 for a game object (type bit 5), 2 for a dynamic object (bit 6), else 0.
The derivation is in the doc.
Callers 6
- ObjectConstruct objectlayer
- CGDynamicObject_C::Reactivate objectlayer
- CGCorpse_C::Reactivate objectlayer
- CGCorpse_C::Rebuild objectlayer
- CGGameObject_C::Reactivate objectlayer
- CGObject_C::Reactivate objectlayer
Callees 7
- SysMsgPrintf sysmsg
- ClntObjMgrGetC8 objectlayer
- CGObject_C::SetModel objectlayer
- CGObject_C::UpdateNode objectlayer
- CreateWorldCallbackObject terrain
- CreateModelFromPath models
- HandleClose2 models
Calls and jumps by a bare address, from tables/calls.tsv.