CMapObjDef::GetFaceTerrainType
function · terrain · orchestration
- Address
0x6a26c0· 88 bytes, up to0x6a2717- Signature
uint32_t __thiscall (CMapObjDef *this, uint32_t group, uint16_t face)- Meaning
- Returns the terrain type of a map object face from its material, or -1
- Confidence
- verified, proof one
- Finding
- terrain/mapentities#face-terrain-type
Finding: Face terrain type in terrain: map entities
0x6a26c0 returns the terrain type of a map object face: for a group key and a face index it
reads the face's material byte from the group's face table and returns the dword at +0x20 of
that material's 0x40-byte record in the root's material table. It returns −1 when the group is not
found or has no face table.
The derivation is in the doc.
Callers 1
- AttachEntityToGround terrain
Callees 1
- CMapObj::GetLoadedGroup models
Calls and jumps by a bare address, from tables/calls.tsv.