Mapping/map file file format
From UFO:AI
< Mapping
structure
The map files made by UFORadiant 1.5 have no indentation.
{//entity 0
"classname" "worldspawn"
{//brush 0
face_0
...
}
{
}
{//entity 1
"classname" "some_other_entity"
"another_key" "another_value"
}
faces
( x0 y0 z0 ) ( x1 y1 z1 ) ( x2 y2 z2 ) tex x_off y_off angle x_scale y_scale cont_flags surf_flags surf_value
The 3 sets of 3D coordinates define the plane of the face. If the 3 points go clockwise when view from a point in space, then that point is outside the face. A point that is inside all the faces of a brush are inside the brush.
- tex is the path to the image file for the texture
- x_off y_off are coordinates for the texture on the face
- angle the angle of the texture
- x_scale y_scale the scale of the texture
- cont_flags Content flags
- surf_flags Surface flags
- surf_value E.g. the light value for surface lights
levelflags
LEVEL1 0x0100 LEVEL2 0x0200 LEVEL3 0x0400 LEVEL4 0x0800 LEVEL5 0x1000 LEVEL6 0x2000 LEVEL7 0x4000 LEVEL8 0x8000

