Capture the Flag


by: Steven Polge
http://www.epicgames.com/

Capture the Flag requires FlagBases, which are a type of NavigationPoint to specify the home location of the flag for each CTF team.  There can only be two CTF teams, and each can only have one FlagBase.  The team attribute of the FlagBase specifies to which team the FlagBase is associated, with 0=Red, and 1=Blue.

AlternatePaths are used to indicate alternate routes that bots can use to enter an opponent´s base.  The AlternatePath´s team attribute should be the same as the team of the FlagBase for which the AlternatePath is pointing out a route.  The AlternatePath´s SelectionWeight is used to modify the likelihood of bots using that path.   Bots use AlternatePaths by first moving along the shortest route to the AlternatePath they have chosen, and then moving along the shortest route from their to the FlagBase.  If the AlternatePath is set up so that the shortest route to the AltermatePath involves running right by the FlagBase, bots will do that (a bad thing!).   The location of AlternatePaths may need to be adjusted to provide the desired results.  AlternatePaths with the bReturnOnly flag set true are used by bots with the same team number returning to their base with a flag.