Node graph

From Valve Developer Community
Revision as of 15:14, 11 July 2005 by Robin Walker (talk | contribs) (Created. Needs more work, especially on nodegraph building.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

When an NPC attempts to move to a point farther than the local navigation limit (600 units in HL2), it will use the node graph to build a route.

Whenever a map is loaded, the AI system checks the timestamp on the existing node graph for the map. If there is no node graph for the map, or the map has changed, the AI system will rebuild the node graph. Node graphs are stored in the hl2\<modname>\maps\graphs directory.

The node graph is built from a set of level designer placed info_node entities. For each node, the AI system determines which other nodes should connect to it, and for which NPC Hull. The AI system ignores all potentially movable entities (doors, func_trains, etc) when doing this.


TBD

Good node graph construction tips.


See also