Raid

From Team Fortress Wiki
Revision as of 00:21, 14 July 2020 by MCandRBfan (talk | contribs) (A little more tidbit of info, eventually it'll pile up to a finished page?)
Jump to: navigation, search

Raid mode is an experimental gamemode that was being tested for Team Fortress 2. In this gamemode, players would be on a 5 man BLU team and RED enemy bots would attack from any possible location while players attempt to push through hordes of robots, much like in Left 4 Dead. Development for this gamemode started in November 2009 which is also the month Left 4 Dead 2 was released, November 17 2009. The development was being done by Mike Booth, the person behind the AIs in the Left 4 Dead series, TFBots and Mann vs. Machine.

Raid's objective is currently unclear, but there are some code that tells bots to check on uncaptured points and telling bots that a gate door may be actively blocking or not blocked in an area.

Enemies

Players generally face not many enemy types, with some of it from Left 4 Dead, which include:

  • Wanderers
  • Mobs (or Hordes)
  • Squads
  • Specials
  • Sentry Guns
  • Defenders

Interestingly, each of the 9 classes are handled differently for this gamemode, most being limited to only certain events.

Wanderers

Wanderers, also featured in Left 4 Dead, generally spawn at areas players have yet to traverse to which are ahead of them and they aren't looking at that area directly. In Raid mode, Scout robots are set to be the primary Wanderers of this gamemode, and only the Wanderers. All Wanderers choose to only use their Melee weapon, while speaking about several lines at random intervals that are seemingly random to the other Wanderers, with some having them harass at other Wanderers. They will only engage in players that are either too close to them, or they killed their allies too close to them. For the latter case, the closer the player is on their nearby ally's death is to them, the faster they will react to attacking the player.

If they spawn while possessing the AGGRESSIVE flag, they will not try to idle and instead immediately rush down from their spot to attack the players. This actually happens in L4D when the horde timer (or Mega Mob) is up, or a horde event has started.

Mobs

Mobs, one of the prominent enemy types in Left 4 Dead, consists of a group of enemies that rush down to wherever players are and attack them, instead of the usual Wanderer's passive-aggressive behavior. By default, Mobs have a spawn time of 60 - 90 seconds, and have a total count of 15. The interval for Mobs to respawn becomes lower and players progress through the campaign. Mobs also respawn faster when players are capturing a point, having only a 20 second respawn time. The same is also done for the Left 4 Dead series's finales, where survivors have to fend themselves to wait for rescue, or to collect gas cans and fill up their objective to escape.

Classes that robots in Mobs spawn as is pre-defined. Only 4 classes are possible for Mobs to spawn as: Scouts, Pyros, Heavies and Spies. However, Squads will join in Mob fights, which consist of different classes to deal with. Squads's spawning are based on several commands, and they seem to imply a random chance of Mob spawning, but all of them are set to 100 which may be for debugging reasons. More about Squads later.

One thing is absent from Left 4 Dead though, which is "Mega Mobs", these are periods where a horde of Infecteds have a much higher spawn count than Mobs, always leading to them lasting for a while and forcing survivors to find a good defendable spot, but can allow for the game session to have intensity peaks. Presumably this wasn't kept because unlike the Infected, robots have ranged weaponry to fight back the players.

Boss Battle Submode

The gamemode would've also had boss battles.

Leftover Content

Content Creation Related

Hammer Editor

In the default entity list for the Source Engine Mapping software, Hammer, three entities can be seen that point to this gamemode: base_boss, tf_logic_raid and tf_logic_boss_battle. With the latter two not working, as their code is not loaded.

Navigation Meshes

For Navigation Meshes, or nav, which are used by bots to determine where they can go, where players can walk on and whatnot. The command tf_mark has two leftover flags which are meant for Raid mode. Which are RESCUE_CLOSET and NO_SPAWNING.

The first flag is clearly referring to these Rescue Closets in Left 4 Dead, which are areas where a previously dead survivor may spawn in, then shout for someone to get them out of the closet (which revives them). In Raid mode, the game uses this to exclude players from being counted as "alive", or use this to make the Director start certain voicelines.

The second flag is used to manually set what areas should the Director not spawn any robots. In L4D, Flags with a similar function are the flags NO_MOBS, EMPTY (No Wanderers) and NOTHREAT (which the function it does is unclear, but only speculation is to disallow special spawning.)

Population Files

Population files, or pop files, are what MvM reads to create a playable MvM mission. These files have several Raid mode leftovers, two Populators and two Spawners. They can still be used to spawn bots, but are really dated and janky. They do however, point to a time when Population files may have filled a much different role, where they could been instead to exist for an option to create custom game modifications, like Left 4 Dead 2's mutations.

In Population files, there are two types of keys for managing bot spawning, Spawners and Populators. Spawners are responsible for applying anything on the bot itself like giving them crits or hats, while Populators are to setup the bot before it spawns with things like where to spawn or the total amount of them. The keys in question are: PeriodicSpawn, RandomPlacement, Mob and SentryGun, the latter two being Spawners while the others are Populators.

PeriodicSpawn only has three keys:

  • When
  • MinInterval
  • MaxInterval

When is used to determine the respawn times, but both MinInterval and MaxInterval are used to specify random respawn times. The last two keys are only used if When is not specified. For unknown reasons, bots that are spawned using this always drops cash and mess up the game's logic regarding cash. This could however been the Bounty mode having code that may have conflicted it unintentionally.

RandomPlacement appears to be lacking with what it wanted to accomplish. It has the keys:

  • Count
  • MinimumSeparation
  • NavAreaFilter
    • Accepts the following:
    • SENTRY_SPOT
    • SNIPER_SPOT

Based on others's experiences with this Populator, it appears that it only works with the SentryGun spawner, unusually. Another thing to note is that SENTRY_SPOT or SNIPER_SPOT isn't actually used by TFBots at all! And only SNIPER_SPOT is actually automatically added to navigation meshes when a Mapper puts a Sniper hint over a navigation mesh, which tells Snipers that its a spot they should consider sniping at.