This wall-of-text will describe how Mannhattan gatebots work, and then based on that, the reason why bots with special AI (e.g. sentry busters, engie bots) that walk near the gate areas do weird things.
There's a type of map entity called func_nav_prerequisite
, which is integral to how gatebots work. You can put one of these entities in a particular portion of a map, and it will make bots stop what they're doing and do something else before they proceed. (They're only a "prerequisite" in the sense that a bot who walks through one is commanded to do something else before it can proceed with what it was doing before.) There are three possible things a func_nav_prerequisite
can be set to make bots do:
- Destroy entity. In theory, this would make bots switch to the
CTFBotNavEntDestroyEntity
AI action, but the (apparently working) code for it was never actually hooked up for whatever reason. The map designer specifies which entity the bo