func_nav_avoidance_obstacle
Class hierarchy |
---|
CFuncNavObstruction |
nav_entities.cpp
|
func_nav_avoidance_obstacle
is a brush entity available in all Source games since Left 4 Dead. It is also available in Counter-Strike: Source, Team Fortress 2 and 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:This entity applies its effect based on its AABB instead of its brush model.
Uses in Official Maps
l4d_hospital03_sewers / c8m3_sewers
- 1 used on gas station to prevent bos going near it
l4d_airport02_offices / c11m2_offices
- 2 used inside the office on office dividers to prevent bots slowing down doing hard jumps over them
- 2 used in metal detectors to prevent bots triggering them
l4d_river01_docks / 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
l4d_river02_barge / 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
- 2 used in an attempt to prevent bots going into fire but enabled trigger_hurt already has that effect