User Tools

Site Tools


sur:surface

Table of Contents

TypeNameDescription
uint32SignatureFourCC signature. Must always be 0x73726576 (vers).
floatVersionMust always be 2.0

The header is followed by a series of “meshes” which each consist of sections. These meshes are repeated until the end of the file, no count

Mesh

TypeNameDescription
uint32meshIDCRC of cmp part object name - or 0 for 3db
uint32tagcountNumber of sections

Sections

Surface

Note: uint24 can be constructed on little-endian platforms with the following

a + (b << 8) + (c << 16)

where abc are 3 bytes read from the stream.

TypeNameDescription
uint32Tag0x66727573 (surf)
uint32Size
floatcenter_x
floatcenter_y
floatcenter_z
floatinertia_x
floatinertia_y
floatinertia_z
floatradius
bytescaleunknown
uint24bitsend
uint32bitsstart
uint24paddingunknown

Let bStart = the current position + bitsstart - 40

Let bEnd = the currentposition + bitsend - 40

hpid

Something to do with hardpoint hitboxes?

TypeNameDescription
uint32Tag0x64697068 (hpid)
uint32CountNumber of hardpoint meshes ?
uint32[Count]IDs

exts

Some sort of AABB

TypeNameDescription
uint32Tag0x73747865 (exts)
floatmin_x
floatmin_y
floatmin_z
floatmax_x
floatmax_y
floatmax_z

!FXD

Empty section present in vanilla files.

TypeNameDescription
uint32Tag0x64786621 (!fxd)
sur/surface.txt · Last modified: 2018/06/26 14:06 by cmcging