CGUnit_C::PostInit
function · objectlayer · primitive
- Address
0x5fb880· 721 bytes, up to0x5fbb50- Meaning
- Sets a new unit up: display, model, sounds, mover size, mount or death, first animation, markers, name
- Confidence
- verified, proof one
- Finding
- objectlayer/units#lifecycle
- Test
objectlayer::uh_ground_snap_gate_difftest
Finding: Lifecycle in objectlayer: units
0x5fb880(time, a, spawned) runs after creation: it resolves the display, gives the body its
callbacks, textures and sounds, sizes the mover, finds the race's sound race, sets up mount, death
time and loot sparkle, picks the first animation, and refreshes markers, tokens, name, breath,
auras and channel. Slot 1 tears a unit's client state down when it leaves; slot 2 rebuilds its
name and facings when it returns; slot 3 refreshes what an update may have changed.
The derivation is in the doc.
Callers 2
- ObjectCreateNotify objectlayer
- CGPlayer_C::PostInit objectlayer
Callees 28
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- ClntObjMgrGetC8 objectlayer
- DeleteCharacterComponent charactermodel
- ApplyCreatureDisplay charactermodel
- CGPlayer_C::StartFarSight objectlayer
- CGUnit_C::CacheModelData objectlayer
- CGUnit_C::UpdateBaseAnimation objectlayer
- CGUnit_C::ShowAllAuraSlots objectlayer
- CGUnit_C::AddLootSparkle objectlayer
- CGUnit_C::ResetDisplayFacing objectlayer
- CGUnit_C::CreateNameDesc objectlayer
- CGUnit_C::RefreshQuestGiverStatus objectlayer
- CGUnit_C::UpdateBreathState objectlayer
- CGUnit_C::SetModelCallbacks objectlayer
- CGUnit_C::Mount objectlayer
- CGUnit_C::ResolveDisplayRecords objectlayer
- CGUnit_C::UpdateCollisionSize objectlayer
- CGUnit_C::UpdateUnitTokenFlags objectlayer
- CGUnit_C::StartChannelVisual objectlayer
- CGObject_C::Show objectlayer
- CGObject_C::ReleaseEffects objectlayer
- CMovement::StartSwim collision
- CGUnit_C::UpdateLoopSound objectlayer
- NotifyCameraTransportChange collision
- CWorld::GetEntityLight terrain
- CWorld::GetEntityTerrainType terrain
Calls and jumps by a bare address, from tables/calls.tsv.