goldsrc-mapping-notes

Creating Map Overviews

A map overview requires two files: a bitmap (.bmp) image and a description file (.txt). Both files are placed in <dod>/overviews and should be added to the map’s .res file.

Acquiring Image from In-Game

View Adjustment Commands

Command Action Corresponding Action in a Normal Game
+forward shifts the screen to the left 1 walk forward
+backward shifts the screen to the right 1 walk backward
+moveright shifts the screen up 1 strafe right
+moveleft shifts the screen down 1 strafe left
+jump increases Z max value (removes floors from the bottom) jump
+duck decrease Z max value (adds floors from the bottom) duck
+moveup increase Z min value (adds floors from the top) move upwards on a ladder or in water
+movedown decrease Z min value (removes floors from the top) move downward on a ladder or in water
+attack1 increase zoom factor primary firing button
+attack2 decrease zoom factor alternate firing and zoom button

Editing Overview Image

The bitmap (.bmp) must be edited to be used for a map overview. The file must be saved as <mapname>.bmp.

BMP Image File Format

If transparency is needed/used, one of the 256 colors should be assigned as 0x00ff00.

Overview Description File

Create <mapname>.txt based on the following template using the parameters obtained with dev_overview 1 where HEIGHT is the Z Max value.

// overview description file for <mapname>.bsp

global 
{
	ZOOM		1.11
	ORIGIN		-150.75	-1021.05	-576.00
	ROTATED		1
}

layer 
{
	IMAGE	"overviews/<mapname>.bmp"
	HEIGHT	-2305.00
}
  1. If the map is rotated, the forward/backward and moveright/moveleft will be swapped  2 3 4