- Computers & Software»
- Computer Science & Programming
How to make a basic map for Counter Strike: Global Offensive
Making a map for Counter Strike is easier then you think
Making a map for Counter Strike does not require experience in programming.
If you are able to use other basic computer programs you will be able to wrap your head around the tool required to create basic maps for Counter Strike.
The tool used to create maps is called "Source SDK."
You can get Source SDK for free from within the Steam application which is used for playing Counter Strike.
Getting Started With Your Map
Once Source SDK is downloaded, click "Hammer Editer" which opens up the interface.
You will be presented with 4 windows. One in the "front view", one is the "Top down level", and other the is "Side view" and the upper left box is the "3D Viewer".
The 3D viewer will be very handy as it lets you fly around your level in a similar way to the "Free view" does when you are in the game.
The first thing you want to do is click the "View" tab and click "3D Textured Polygons"
This means that your 3D window will render in 3D, as it would be seen in the game.
Choosing a Texture
The first think you want to do is choose a texture for your room.
First click the "Browse" button in the textures area on the right hand side of the screen.
Type in any keyword, I have chosen "brick".
You will see a bunch of textures reflecting your keyword.
Select a texture double click it to select it.
Each map is made up of 3 basic components: Brushes and models and entities.
Brushes are the basic building blocks of the map: This could include walls, floors, roofs, full rooms.
Models are the more detailed parts of the maps which you do not create yourself: Couches, bins, objects in the game that the player can interact with.
Entities are information objects: for example you need to choose a place for each team to spawn, so you can select a "spawn" entity and put it where ever you want the player to spawn. Other entities include buy zones, lighting and sounds.
Today we will be using brushes to create a simple room, and a single spawn point entity.
First, select the brush tool and create a small square in the upper right hand box.
Building the Block
Now in the bottom right hand corner (which is the view of your level from the front), drag the box downwards. In this box, imagine you are looking at your building as if you were standing in from of it. Right now it looks a little thin.
Drag the bottom of the box downwards to make the building taller.
The top right hand corner box is the bird's eye view of your building.
Once you are happy with the shape your building, press "enter" so that the block is built.
Now you can observe your block in the upper left hand corner box.
Simply put your mouse over the box then use "Up, down, left and right" in conjunction with "w, a, s and d" on your keyboard to move and fly around your level. Once you have a good view of your building, we can now make the inside hollow so that you can walk around inside of it.
Making your room hollow
To make your room hollow, select the red arrow tool (at the top of left hand sidebar) then put your mouse over the square in one of the boxes (not including the 3D viewer).
Right click the box and select "Make Hollow".
Select "32" and click okay.
You can now zoom into your level using the 3D viewer.
Once in there, click the entity tool (Look at the picture below), once it's clicked, select "info_player_start".on the right hand side entity selection tool.
Click anywhere on the floor of your level.
You should see a green man appear.
Note: If info_player_start does not work when you run your map, try info_player_t or info_player_ct
Finishing and Testing your Map
Now you're all done... Click "file" then "Run map".
You will have to select a name for your map. Make sure you save it in the folder that automatically opens.
Click "okay" for the next options.
Once your map has compiled (this can take a while, especially for bigger maps) counter strike will run and the map will appear in your map list.
Play the map and try it out!
You have now built your first, basic map for Counter Strike.