Just because someone asked me to release the code I used to test the core of this in a video.
:siren: This requires the gm_navigation module! Read below for more information. :siren:
:siren: This is not meant for multiplayer! Your npcs would probably just stumble around and cry. :siren:
This tool is for telling an npc to move from point A to B. Only unlike other tools, npcs do not walk directly to point B and hit their face into a wall, they actually move around it. This is more useful in un-noded maps.They don't know about props, so they won't navigate your prop maze or anything like that.[/release]
Left click on a point somewhere to set the start, right click to set the end. Reload on an npc to make it begin.
Make sure the npc is near the start position, it will walk directly to that one, to really start, and then follow the path the navigation module created.[/release]
IF YOU ARE ON A MAP FOR THE FIRST TIME USING THIS TOOL, TYPE NPCMOVER_NODEMAP INTO THE CONSOLE. This will tell the module to create it's own node path to use. Depending on the map's size and your computer, this could take from ten seconds to five minutes. But after that the map's node file is saved into data/mapname.txt, and you never have to do it again for that map. The node path is created based on your current position when you use the command, so stand in the general area that you'll usually be making npcs move around in.
Sometimes (actually quite often) the node path that is created will not work in some areas, like up some stairs or ramps. This will cut off areas from the map from being noded. This addon uses a VERY basic method of creating a node file with the module! If you had a node file that was perfect for your map, this tool would work perfectly too. I will try to make some nodes for a few maps to distribute, or a visual editor for nodes, but don't hold your breath on that. If you do get a fantastic noding of your map, just rename the file to mapname.txt, and put it into the data folder.
Don't try to node flatgrass, it will take you a very very long time.
Gm_Navigation module, excellent module by Spacetech. Put the .dll of the windows release into gmod/lua/includes/modules.
Special thanks to Spacetech for helping me out with silly errors.[/release]