Npc route

From Valve Developer Community
Revision as of 05:47, 30 December 2007 by CnaerDaror (talk | contribs)
Jump to navigation Jump to search

watch tv ausstellung muenchen maerz naturalist appliance discount sears greatest records internet poker event exhibition and design loctite 770 spinal tap headache waterproof backpack handmade greeting cards papertoys.com cruise discounts nissan accessories ideas forum rosti potatos money transfer to canada schwangerschaft wann zum frauenarzt visual runtime library runtime error hochzeit des figaro salzburger festspiele elan apartments san jose ca free software downloads cisco gsr african recipe rice abba acapulco hotel las brisas health and safety signs doors design rutgers scarlet knight football ticket audi rs6 mieten antelope home loan cabello de implante job search jacksonville fl home intercom valencia de penis 14 jahre custom car for sale sony ericson ringtones xxxxx rothschild coats personal manga scans free mobile games stereo musik center 2434n baby kool savas illmatic very fast car the constitution of united state of american postleitzahl 4020 5 7 9 clothing gedichtinterpretation die liebe cancun resort cristiana musica free maps hostname photofile.ru ms crm desk lamps naca generator wichtiger hinweis western diamondback rattle snake asian love perfect smile dentistry cigarros lodine tcsh prompt current directory dsl check t online radio read water meters history d day pallet conveyor perrys play tyler wellness obergurgl large ranch floor plans only time download free enter sandmann lyrics computer pro contra bild bill airbrush tanning cd wechsler alpine piltdown man namen tipps pregnant fucking new veronica zemanova travel florida hard core porn mustang body kit jacuzzi spa trapeze spunge mobile home manufacturer bank ol america kids incorporated cast deutschland fahrzeug kennzeichen boutique hotels hamburg tanning booth shield volcano diagram nursing delegation scenarios old trucks klick dvd new phenomenon lady looking marriage mexican single love personality test 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