I don't need to test my programs. I have an error-correcting modem.
From Unreal Wiki, The Unreal Engine Documentation Site
CTFSquadAI contains all of the AI code for Capture the Flag. CheckSquadObjectives is where most of the action is.
- The last time the enemy flag carrier was seen by a squad member
- The team's CTFFlag.
- The enemy team's flag.
- The next AssaultPath on the way back to base for the flag carrier.
- The tag of the path that the flag carrier is following.
- Doesn't do combos while the squad is attacking.
- Allows the flag carrier to detour only in certain circumstances, such as if the home flag needs to be recovered.
- This is where ReturnPath is used.
- Doesn't let bots with flags translocate.
- Tells a bot to go touch and return the team's flag.
- Either the SquadObjective (the enemy flag base), the enemy flag carrier, or the squad leader, in that order.
- Separates out the flag carrier logic from CheckSquadObjectives.
- Don't give up on the enemy flag carrier.
- In the same zone as the enemy flag (if the flags are in different zones), or use BotNearObjective (from GameObjective).
- Essentially the opposite of NearEnemyBase.
- Is the flag reasonably close to its base?
- The main AI decision-making function.
- A squad member has picked up the enemy flag. Called by CTFFlag.SetHolder.
- Don't taunt if you're carrying a flag or if your team's flag is out.
- Always defer to the flag carrier.
- Depends on whethere the bot is carrying a flag, whether it's close to scoring, and if the team's flag is out.
- Threat level is higher near the enemy flag base.