CMapObjGroup::FirstLiquidTileType
function · models · primitive
- Address
0x6ba970· 62 bytes, up to0x6ba9ad- Signature
uint32_t __thiscall (CMapObjGroup *this)- Meaning
- Returns the first non-hole tile nibble of a group's first MLIQ tile row, else 0xf
- Confidence
- verified, proof one
- Finding
- models/wmo#group-liquid-draw-type
- Test
models::first_liquid_tile_type_difftest
Finding: Group liquid draw type in models: map objects
0x6ba970 gives the type a group's liquid draws as (terrain/groupdraw#group-liquid): the low
nibble of the first tile byte whose nibble is not 0xf among the first x tiles bytes of the MLIQ
tile flags, else 0xf. Only the grid's first row of tiles is scanned, so a group whose first row is
all holes takes type 0xf, whose frame the draw requests before bounding it, a client fault
(terrain/groupdraw#group-liquid); the header's liquid word +0x38 is not read.
The parse stores MLIQ's vertex and tile counts at +0xf8 to +0x104, the corner at +0x108,
the material at +0x114, the vertices at +0x118 and the tile flags at +0x11c.
The derivation is in the doc.
Callers 1
- DrawGroupLiquid terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.