This article's documentation is for anything that uses the Source engine. Click here for more information.

func_nav_avoidance_obstacle

From Valve Developer Community
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Info.png
This entity is not in the Counter-Strike: SourceTeam Fortress 2Alien SwarmPortal 2Counter-Strike: Global Offensive FGD by default.
See below for instructions on making it available.
Class hierarchy
CFuncNavObstruction
CBaseEntity
nav_entities.cpp
Toolstrigger.gif

func_nav_avoidance_obstacle is a brush entity available in all Source Source games since Left 4 Dead Left 4 Dead. It is also available in Counter-Strike: Source Counter-Strike: Source, Team Fortress 2 Team Fortress 2 and Black Mesa Black Mesa.

It tells bots that nav areas in this volume are obstructing pathfinding but can be ignored for longer-term queries like computing flow distances and escape routes. Bots will go into the affected areas if their destination is in the obstructed area, or they must cross the obstructed area to reach their destination, but otherwise avoid it. Used sparingly to prevent bots from moving to odd-looking places.

Warning.pngWarning:This entity applies its effect based on its AABB instead of its brush model.

Uses in Official Maps

Left 4 Dead l4d_hospital03_sewers / Left 4 Dead 2 c8m3_sewers

  • 1 used on gas station to prevent bos going near it

Left 4 Dead l4d_airport02_offices / Left 4 Dead 2 c11m2_offices

  • 2 used inside the office on office dividers to prevent bots slowing down doing hard jumps over them

Left 4 Dead l4d_airport04_terminal

  • 2 used in metal detectors to prevent bots triggering them

Left 4 Dead l4d_river01_docks / Left 4 Dead 2 c7m1_docks

  • 5 of them are used on the wooden structure near the sea by a path of rocks under the bridge.
  • 1 used on a window where survivor bots have hard time jumping into
  • 1 used on barrels in the brick factory to make bots go around

Left 4 Dead l4d_river02_barge / Left 4 Dead 2 c7m2_barge

  • 1 used on the first water body to make bots go around it
  • 1 used on the ledge of the coal barge in the second water body to make bots not go near the ledge
  • 1 used on the way from top conveyor belt to the bottom one to prevent survivor bots trying to follow you through there if unnecessary and hang

Left 4 Dead 2 c13m2_southpinestream

  • 2 used in an attempt to prevent bots going into fire but enabled trigger_hurt already has that effect

See also