Skip to content

taiyungwang/valve_source_plugin_navmesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

147 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Valve Source Navigation Mesh for Plugins

This is a refactor of the Valve Source navigation mesh code from Valve's SDK to allow for it to be used on a Valve Source Server Plugin. This allows a developer to create bots against mods or games that do not have bot support without having to create a new navigation system.

A sample plugin is provided with the code base as an example of how to build and use the nav mesh with a Valve Source Plugin. Building the sample requires CMake and a copy of Valve's Source SDK. While the compilation of the test plugin should work against all supported platforms, it was only tested against LINUX.

The functionally is unchanged from that of sdk2013. Most of the changes made were to reduce the size of the code base. There were portions of the code that could not be ported over to use with a plugin--those portions were commented out and marked as TODO. The plugin navmesh should be able to read .nav files generated by mods that already support Valve nav meshes (like TF2 or CSS), however any mod specific attributes from the nav mesh are ignored. Generating a mesh is done by executing p_nav_generate rather than the default nav_generate, so that any mods that the plugin nav generation still can be used in addition to the one provided by the mod.

Some Screenshots:

Lock Down from HL2 Death Match dm_lockdown0000

Avalanche from DoD Source dod_avalanche0008

About

A refactor of the Valve Source navigation mesh code to allow for it to be used on a Valve Source Plugin.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages