*.cform (Collision Form)


About

Contains a solid map structure. All tangible objects with materials live here. Because of this, the game knows with what sound and property objects should react when they are hit by bullets or walked on


Technical information

  • Format version: 4

The file consists of one block, which contains the following

ValueSize
Version4 for build 1537 and higherDWord(4)
Number of vertices-DWord(4)
Number of triangles-DWord(4)
BBox diagonal-24 bytes
vertices--
triangles--

BBox

BBox describes the entire map, including absolutely all static objects. The BBox diagonal is represented by two vertices that have the same format as the others:

CoordinatesOffsetSize
X coordinate0Single(4)
Z coordinate4Single(4)
Y coordinate8Single(4)

Triangle

OffsetSize
First Index0DWord(4)
Second index4DWord(4)
Third index8DWord(4)
Material ID (14 bits) and flags in the two highest bits12Word(2)
Sector number14Word(2)

Programs editing this file


Sources

Source