Nav Mesh: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| mNo edit summary | mNo edit summary | ||
| Line 18: | Line 18: | ||
| {{main|Nav Mesh Editing}} | {{main|Nav Mesh Editing}} | ||
| {{main|Nav Mesh Commands}} | {{main|Nav Mesh Commands}} | ||
| The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with <code>nav_generate</code> (which requires {{ent|sv_cheats|1}} and {{ent|nav_edit|1}}). | The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with <code>nav_generate</code> (which requires {{ent|mode=link|sv_cheats|1}} and {{ent|mode=link|nav_edit|1}}). | ||
| ==Game Specific SubVersions== | ==Game Specific SubVersions== | ||
Revision as of 05:58, 30 December 2022
A Navigation Mesh (or shorter: nav mesh) is a data structure that stores data used for path finding, which is typically used by bots. In  Source, navigation meshes are used by the following entities:
 Source, navigation meshes are used by the following entities:
…to realize what's navigable in their environment, and path to their desired destination.
NAV files
Main article:  NAV
Navigation Mesh data is stored in a NAV file corresponding to the map file (.bsp) for which it is used. For example, the nav mesh for cstrike\maps\de_dust.bsp is stored in cstrike\maps\de_dust.nav.
Main article:  Nav Mesh Editing
Main article:  Nav Mesh Commands
The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with nav_generate (which requires sv_cheats 1 and nav_edit 1).
Game Specific SubVersions
| Game | Nav Mesh Class | Subversion | Notes | 
|---|---|---|---|
|  Garry's Mod | TheNavMesh | 0 | Garry's Mod is using the base navigation mesh (It doesn't use it's own implementation unlike Valve games) | 
|  Counter-Strike: Source | CSNavMesh | 1 | * Appends approach area data to each area. | 
|  Team Fortress 2 | CTFNavMesh | 2 | Appends TF2-specific attribute flag to area data. | 
|  Left 4 Dead | TerrorNavMesh | 13 | |
|  Left 4 Dead 2 | TerrorNavMesh | 14 | 
See also
- Navigation Mesh Console Command Reference
- List of L4D Series Nav Mesh Attributes
- L4D Level Design/Nav Meshes
- L4D Level Design/Nav Flow
- L4D Level Design/Advanced Nav Editing
External Links
- Official forums for the bot system (down) - Archived version.
- Waypointing for CS:S Bots/Hostages (Edit Life)


























