CWorld::IsEntityReady
function · terrain · orchestration
- Address
0x670950· 71 bytes, up to0x670996- Signature
uint32_t __fastcall (void *entity)- Meaning
- Returns whether an entity's doodads exist and its model or groups have loaded, by its type
- Confidence
- verified, proof one
- Finding
- terrain/entities#entity-readiness-gate
Finding: Entity readiness gate in terrain: entity facets
0x670950 says whether an entity is ready for the transport tick's animation and callback. A map object def (bit 0x8) is ready when 0x6a25b0 and 0x6a4270 both hold: bit 7 of the def's flags +0xc is set and every group def has bit 3 set, and the root +0x118 is loaded with each of its groups loaded. A doodad def (bit 0x40) is ready with no model, else when 0x7103d0(model, 0, 0) returns true. Any other entity is never ready.
The derivation is in the doc.
Callers 3
- MovingTransportHandlerOnTick objectlayer
- MovingTransportHandlerOnBoard objectlayer
- TransportHandlerOnTick objectlayer
Callees 3
- CMapObjDef::AreDoodadsMade terrain
- CMapObj::AreGroupsLoaded models
- CM2Model::IsLoaded models
Calls and jumps by a bare address, from tables/calls.tsv.