CWorld::CreateMapEntity
function · terrain · orchestration
- Address
0x6707c0· 328 bytes, up to0x670907- Signature
void * __fastcall (const char *path, const float *position, float facing, uint32_t arg4, uint32_t register_flag, uint32_t guid_low, uint32_t guid_high)- Meaning
- Builds a game object's map object (.wmo) or doodad def, stores the owner GUID in it and registers it for a nonzero flag
- Confidence
- verified, proof one
- Finding
- terrain/entities#game-object-doodads
Finding: Game object doodads in terrain: entity facets
A game object's doodad definition is registered only for the transport types. 0x5f4970 calls 0x5f8030 with the object's GUID for types 11 and 15 and a null GUID
for the rest, and 0x5f8030 gives 0x6707c0 a zero register flag (0x5f8058 push 0), so 0x6707c0 builds the definition and stops. A model that is not a .wmo
becomes a doodad definition (0x694980), after which 0x6707c0 stores the GUID at +0x180 and +0x184 (0x6708c6, 0x6708ba) and ORs 0x2000 into +0x90; a .wmo becomes a map object definition (0x6953e0) with the
GUID at +0x158. The registration 0x698e20 has two callers: 0x6708f1, skipped by the zero flag, and 0x6709a0, whose four callers are the two transport ticks and a
spell model placement (objectlayer/transports).
The derivation is in the doc.
Callers 3
- CGGameObject_C::CreateMapEntity objectlayer
- TryCastSpell spell
- OnPlacementObjectCached spell
Callees 7
- SStrStr2 storm
- CreateEntityDoodadDef terrain
- CreateEntityMapObjDef terrain
- AnchorPlacement terrain
- CMapDoodadDef::SetPlacement terrain
- CMapObjDef::SetPlacement terrain
- AllocMapLink terrain
Calls and jumps by a bare address, from tables/calls.tsv.