Tutorial: Radar locations in Counter-Strike: Source Last edited 3 months ago2024-09-20 03:14:50 UTC

As we all know, a believable setting for a map is extremely important. Even if you've created a 31st century spaceship made entirely from transparent goo technology, it should ideally still come across as a believable location.

Something Counter-Strike does to assist with making a map feel more like a real location is allow level designers like us to give seperate areas in the map place names or "nav locations." These are the little names which appear below the radar, next to a teammate's voice comm or chat message and most fun of all - what bots will shout about.

Setting these locations up isn't especially difficult once you get your head around it, but it can be quite time consuming so go and make yourself a cup of coffee, grab a bun and get prepared to put in some effort.

Firstly, like cubemaps and bot navigation meshes, this part of the mapping process is done in the game engine. Start a private server, load up your map and activate sv_cheats 1.

It is important to note here that this tutorial assumes you already have a navigation mesh generated for your map. (nav_generate in the console.) To save yourself some time later, if you've noticed while playing with bots that they dont use some parts of the map, go to these locations, look at the floor and type nav_mark_walkable and then remake your navigation mesh.

Once in the game, make sure you have spawned and then proceed to type the following into the console:
nav_edit 1
If you've never done this before, what you will see when you close the console will make no sense to you at all. Don't worry. Move your player around a bit, looking at the floor. Do you see it's been devided up into squares?
This is what your map looks like to a bot.This is what your map looks like to a bot.
The squares show what a bot considers to be walkable space. You might see some other shapes as well like triangles or diamonds. Don't concern yourself with them. They're just locations that bots will interact with differently by performing actions like crouching or jumping.

Anyway, move to your first location. Lets use CT spawn as an example.

Bring up the console and enter nav_toggle_place_mode 1. This command will take you into the nav location editor.
Now it's time to name your location. Use this console command: `nav_use_place [location]` where [location] is the place name. For this example, the command I entered was nav_use_place CTSpawn.
Simple console commands are all you need.Simple console commands are all you need.
Here's a complete list of possible place names. Sorry to say you can't make up your own. Aim your cursor at the first rectangle you want to designate and enter nav_toggle_place_painting 1 into the console. The square should turn green. Without typing anything else, move the the cursor to a different square. It will also change. In this painting mode, every square you look at will be designated simply by looking at it, allowing easy designation of even large areas.
Squares turn green when they're assigned a nameSquares turn green when they're assigned a name
To leave paint mode, simply enter nav_toggle_place_painting 0.
To move onto your next zone, simply repeat the process from the nav_use_place stage.

Once you're satisfied that every place which needs a name has one, enter nav_save into the console and you're done. Test by starting a new server and running around.

To recap, the console commands to use, in order, are:
sv_cheats 1
nav_edit 1
nav_toggle_place_mode
nav_use_place [location]
nav_toggle_place_painting
nav_save

12 Comments

Commented 16 years ago2008-10-09 23:49:47 UTC Comment #100900
This is interesting and really helpful to understand a new map .
Commented 16 years ago2008-10-10 02:38:06 UTC Comment #100901
Useful, understandable, easy-to-read.

I can't see anything wrong with it!
Commented 16 years ago2008-10-10 22:15:37 UTC Comment #100902
Unknown command: sv_cheast
^^
Commented 16 years ago2008-10-11 01:25:19 UTC Comment #100903
Oh, I see it now.

Sv_cheast :P
Commented 16 years ago2008-10-13 02:19:16 UTC Comment #100904
Is this for noobs? Well, your location is here, you fuc*ing noob. :D
Commented 16 years ago2008-10-13 05:09:07 UTC Comment #100905
.wat
Commented 16 years ago2008-10-27 02:43:25 UTC Comment #100906
Omg why did they make it THAT complicated ?
And not just use a Brush-based Ent ?
Commented 16 years ago2008-11-06 23:24:09 UTC Comment #100907
Actually i think this is pretty damn easy.
you even included the par to make your bots less stupid. Bravo Hunter
Commented 16 years ago2008-11-10 09:47:04 UTC Comment #100908
"Omg why did they make it THAT complicated ?
And not just use a Brush-based Ent ?"

dude, just calm down, it ain't that hard...

i mean come on, it's very easy to use, not to mention how awesome it is to have a ingame editor. (kinda like with crysis's editor, sandbox 2)

if you find it too inconvenient to type in all the commands, just bind the commands, like i did, i bound delete to "nav_delete" so i can easily delete parts.

btw, nice tut, even though i already knew how to do this. :P
Commented 15 years ago2009-07-27 21:42:27 UTC Comment #100909
lmao. just noticed the "oh cock" in the console. classy
Commented 14 years ago2010-05-30 15:44:52 UTC Comment #100910
realy very simple to understand to the point, thanks a lot
Commented 9 years ago2015-09-12 20:00:29 UTC Comment #100911
Hey guys.,.this tutoial is soo hard.,and below radar the area name does not appear . I know it is green text but can someone help me.. i cant see the area names .

You must log in to post a comment. You can login or register a new account.