func_nav_avoidance_obstacle

From Valve Developer Community
Jump to: navigation, search
Toolstrigger.gif

func_nav_avoidance_obstacle is a brush entity available in the Left 4 Dead series Left 4 Dead series.

English (en)中文 (zh)
Edit
class hierarchy
CFuncNavObstruction defined in nav_entities.cpp
CBaseEntity

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:AABB is used for LOS obscuring, so clipping or rotating brushes does not change a brush's size as one expects.

Diagonal walls will always be ignored, as it will take the furthest out corners of the diagonal walls and create one huge box around all of it. That box will be your brush entity.

If you need a large diagonal brush, you must create multiple small square entities aligned diagonally.

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