Npc route

From Valve Developer Community
Revision as of 11:15, 12 November 2007 by CnaerDaror (talk | contribs)
Jump to navigation Jump to search

american pile driving microsoft office mac upgrades west wing series five dvd the anxiety disease kidney medicine salary of radiologist auto body salvage yards project mend journal of business and industrial marketing pa government law pro and cons of internet dating man on fire soundtracks element periodic table outsourced hosting support escort exotic party vegas agent detroit travel audio childrens books sets volkswagen truck if you have the means i highly recommend it picture quizzes free live by the sword die by virginia day care inspections apartment la maison e world publishing the game how we do ringtones minimum hardware requirements party rental baltimore average factor rating weighted the council house birmingham instead said use words 2 of hearts lyrics original equipment manufacturer definition what is business interruption insurance picture of tree in the fall renaissance monarchs wisconsin car classifieds under the water mp3 online lpn training state map austria white dress pants men publicservice commission 2 phone wire mining regions metal floor lamp salary of registered nurse california maps bicycle kim model next top tack boxes texas hunting dog radio scanner numbers soda club music apartment fulton search addams auto cycle set up directv mp3 speaker systems list of famous columbian people anastasia kelly maine county song vacation rental homes orlando florida alien attacks predator space vehicle control masturbation picture tip v bulletin stark county home sales schema document ac adapter blackberry reviews of antivirus software sample letter for pay increase student select insurance trina music videos sports radio boston ma 3 nada what is knowledge management ppt movie heater listen to 70s music online return of the mac song sheriff la county election window steam cleaners making log furniture initial d manga scanlations extra idea money arizona building contractors russian model engines african american self help po go games que es energia potencial tech materials international music on education privat bukkake zoom text sexual definitions sumitomo industry taste of the world restaurant slider cellular phone thyroid and symptoms to look out for quorum international ltd you have mail sound wav st louis skate king motorola v220 camera drivers lake superior view Template:Wrongtitle

The npc_route console command is a debugging tool for debugging the route that an NPC is using to navigate to a target destination. The route consists of a set of waypoints. Waypoints are either an info_node entity placed by the level designer, or a dynamically generated point used to triangulate around an obstacle.

Example

An npc_zombie's route in HL2's d1_town_01.bsp

An example of npc_route in action. The npc_zombie is attempting to move from the right of the screen to the left (he is operating under the instruction of the npc_go command). The waypoints are represented by small squares, and the lines between the waypoints represent the route. Note the dynamic triangulation route built to avoid the barrel, represented by the cyan link.

Notes

The color of the route lines represent the type of route built from each waypoint to the next. The colors are as follows:

  • Blue
    • Standard path to the next waypoint.
  • Cyan
    • The path to a triangulation waypoint. These are dynamically generated by NPCs when they detect objects in their path, in an attempt to navigate around the obstacle.
  • Red
    • The NPC will perform a jump from this waypoint to the next.
  • Maroon
    • The final path to the destination point.

Usage

  • npc_route
    • This will toggle the route display for the NPC under your crosshair, if any.
  • npc_route <entity index>
    • This will toggle the route display for the NPC matching the specified entity index, if any.
  • npc_route <name>
    • This will toggle the route display for all NPCs whose classname matches the specified name, or whose targetname matches the specified name.

See also