Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Nav Files

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Add all of the text in the code window to a file, call it nav_config, and place it in Counter-Strike:Source’s cfg folder, also tale a copy of the config.cfg and call it MainConfig.cfg incase you mess something up

The Nav Guide

Nav_edit "1"
nav_toggle_place_painting     

bind mouse1 nav_begin_area		//Begin dragging a new nav area
bind mouse2 nav_end_area		//Creates the dragged area
bind mouse3 nav_delete			//Deletes an Area 

bind v nav_split			//Splits the nav area you are looking at, at the white line
bind c nav_merge			//Select a nav area using e (nav_mark) and highlight another
                                       //(looking) then hit this key to merge them together

//bind 3 nav_crouch 			//Used for bots
//bind 3 nav_jump 			//Used for bots

//bind 1 nav_mark_walkable 
//bind 2 nav_clear_walkable_marks 

bind e nav_mark			//Selects a nav area
bind t nav_corner_select 		//Selects corner on the selected nav area, press to toggle
bind f nav_corner_lower		//lowers selected corner
bind r nav_corner_raise		//raises selected corner

bind m nav_generate			//AutoGenerate Nav file, you have to do this first and then
                                       //edit apparently, else it crashes when you try to make a
                                       //nav area

bind x nav_disconnect 			//When a nav area is selected look "highlight" another and
                                       //press this key to disconnect the two

bind z nav_connect 			//When a nav area is selected look "highlight" another and
                                       //press this key to connect the two 

bind f6 nav_save			//Saves Nav file


Load your map, and open console type - exec nav_config.cfg Then go out of console and hit "m"

This will auto-generate a nav file for your map, this will work great in most cases, but sometimes makes an error. That’s where the rest of the commands i explained together with the cfg comes into play.

Just edit it in-game, and I might make a command config so you don’t have to tap in and out to learn the commands, but now I want to sleep.

NB: Remember to place hostages at least 16 units off the ground or they will be stuck as well as spawnpoints

-Do what you do best Zeta ;)

--TAz00 00:53, 15 Nov 2004 (EST)

See also: Category:Nav_Files_2



Editing Nav Files

By Mxthe

After that, you can now edit your file, but you may not know how, that is what im going to explain.

To start, make a simple map with an light_environement like so : [1]

Then compile, and in the console write Bot_add instead of nav_generate, sometimes I dont know why, when you write nav_generate it goes pretty wrong : [2]

Then you see the bots, but with the stairs they wont walk!!The stairs sometimes, rarely, but sometimes doesnt work with the bots. [3]

So go in the console and write Nav_edit 1 [4]

Then you see lines where you aim at, theses are the nav areas, as you see on the pic, there is no areas on the stairs, thats what were going to create [5]

Point your crosshair where you want to start the area and write nav_begin_area [6]

Then you will see a rectangular blue line wich moves with your crosshair [7]

Move it to the end of the area you want [8]

And type nav_end_Area [9]

And you see, the area has correctly been apply to the stairs, it can be any form, it will always apply right, or if it doesnt, point the nav area with your crosshair, and type nav_delete. [10]

Then we might wanna do sniper spots [11]

Point the begining of the sniper spot and write same, nav_begin_area [12]

If you do it wrong, type nav_delete [13]

When its done [14]

Point your area, and type nav_make_sniper_spots [15]

and you see your sniper spot has been divided in a lot of litle areas :) [16]

Then you write nav_save to save the changes, dont forget that or you might lose your work![17]

And type nav_edit 0 to go back in normal game [18]

Then have fun! [19]


So you now know the basic!But with a litle intelligence you can figure out the rest, like hide an area from another or make ladders and stuff, it has very much possibilities, hope you understood!

No vtf for this tut, because it must be done INGAME!

Personal tools