ReattachEntity
function · terrain · orchestration
- Address
0x6a86d0· 86 bytes, up to0x6a8725- Signature
void __thiscall (void *this)- Meaning
- Unlinks an entity's chunk nodes and places it again by its type
- Confidence
- inferred
- Finding
- terrain/mapentities#entity-placement
Finding: Entity placement in terrain: map entities
0x6a86d0 re-places an entity: it unlinks the chunk nodes, clears a doodad's +0xdc, and places
it by its type, with bit 0x2000 of +0x90 through 0x6a8c10, otherwise 0x6a8a20. 0x6a8c10
links the entity to the map object group that holds it (0x6a8ed0), sets the light flags, bakes an
interior-lit entity's light and stores the face word +0xe0. 0x6a8a20 probes down against the
terrain (0x69c320) and the map objects (0x6a8840), twice at most; a map object hit stands
when the terrain was missed or is not nearer, else the entity attaches to the chunk.
The derivation is in the doc.
Callers 5
- CWorld::CreateLightObjectB terrain
- CWorld::CreateLightObjectA terrain
- CMapDoodadDef::SetMatrix terrain
- CMapDoodadDef::SetPlacement terrain
- UpdateMapEntityEnvironment terrain
Callees 3
- FreeMapLink terrain
- AttachEntityToGround terrain
- PlaceEntity terrain
Calls and jumps by a bare address, from tables/calls.tsv.