Place saver...Looking for opinions on how to do this since there was no official bot.
Bot Types
- List strengths
- Lots of waypoints available
- List weaknesses
- Reliance on waypoints for each map
AI Bot Behavior
- Bots currently can not use or equip unlockable content, including: non-standard Weapons, Hats, or Miscellaneous items.
- Bots currently can not jump, rocket jump or sticky jump.
- If a bot kills a player, they roll a chance to taunt immediately after and if it succeeds, they will taunt even if they are under enemy fire.
- When a bot sees a disguised enemy Spy, it will watch the Spy's movement. The bot will not attack the disguised Spy unless the Spy attacks or bumps into one of the bots.
- Pyro bots will use the Compression blast against projectiles regularly.
AI Bot Commands
To use AI bots on supported maps, the server administrator should type the following commands into the console:
tf_bot_add
|
This command will create one or more AI bots of random classes on random teams. They will also be assigned amusing human-like names.
- Syntax
tf_bot_add [<count>] [<class>] [<team>] [<difficulty>]
- Parameters
<count>
- Specifies the number of bots to spawn. If omitted, one bot is spawned.
- As of this writing, specifying a number greater than the maximum number of players, including any human players, causes the bots to freeze. Thus if you have a 24 player server (the default), and one human player, do not spawn more than 23 bots.
<class>
- The classname of the class can be Demoman, Engineer, HeavyWeapons, Medic, Pyro, Scout, Soldier, Sniper, or Spy
<team>
- Specifies the team name to assign the bot, where team can be red or blue.
<difficulty>
- Sets the difficulty level for the bot, where difficulty can be easy, normal, or hard.
- Example
tf_bot_add red 3 heavyweapons easy will add three Heavies to the RED team at the easy skill level.
|
tf_bot_difficulty
|
Defines the skill of bots joining the game.
- Syntax
tf_bot_difficulty <level>
- Parameters
<level>
- Sets the difficulty level for the bots. Values are: 0=easy, 1=normal, 2=hard, 3=expert. Default is "Normal" (1).
- Example
tf_bot_difficulty 2 will set all bots created after this command to "Hard" difficulty.
|
tf_bot_force_class
|
If set to a class name, all TFBots will respawn as that class.
- Syntax
tf_bot_force_class <class>
- Parameters
<class>
- The classname of the class can be Demoman, Engineer, HeavyWeapons, Medic, Pyro, Scout, Soldier, Sniper, or Spy. Default is "" (aka blank).
- Example
tf_bot_force_class medic will make all TFbots respawn as Medic.
|
tf_bot_join_after_player
|
If nonzero, bots wait until a player joins before entering the game.
- Syntax
tf_bot_join_after_player <integer>
- Parameters
<integer>
- Either 1 or 0. Default is 1 (enabled).
- Example
tf_bot_join_after_player 0 will make TFBots join the game when added even if no players are on a team.
|
tf_bot_keep_class_after_death
|
If zero, bots will always respawn as a different class.
- Syntax
tf_bot_keep_class_after_death <integer>
- Parameters
<integer>
- Either 1 or 0. Default is 0 (disabled).
- Example
tf_bot_keep_class_after_death 1 will prevent TFBots from changing class.
|
tf_bot_kick
|
This command will remove one or all AI bots.
- Syntax
tf_bot_kick <name/all>
- Parameters
<name/all>
- Specifies the name of bot to remove or all.
- Example
tf_bot_kick CEDA will kick the TFbot named "CEDA" if one exists.
|
tf_bot_prefix_name_with_difficulty
|
If nonzero, append the skill level of the bot to the bot's name
- Syntax
tf_bot_prefix_name_with_difficulty <integer>
- Parameters
<integer>
- Either 1 or 0. Default is 0 (disabled).
- Example
tf_bot_prefix_name_with_difficulty 1 will cause added bots to have names like "1 Aimbot" (normal) and "3 Saxton Hale" (expert).
|
tf_bot_quota
|
Determines the total number of tf bots in the game. Only has effect is "tf_bot_quota_mode" = "fill" or "match".
- Syntax
tf_bot_quota <integer>
- Parameters
<integer>
- Whole number between 0 and how many players the server can hold. Default is 0.
- Example
tf_bot_quota 2 , if tf_bot_quota_mode = match, will add two bots to the server for every one human.
|
tf_bot_quota_mode
|
Determines the type of quota.
- Syntax
tf_bot_quota_mode<normal/fill/match>
- Parameters
normal/fill/match
- If 'normal', the server will never add/remove TFbots without explicit commands and bot_quota has no effect.
- If 'fill', the server will adjust bots to keep N players in the game, where N is bot_quota.
- If 'match', the server will maintain a 1:N ratio of humans to bots, where N is bot_quota.
- Example
tf_bot_quota_mode fill will always keep (bot_quota - # of human players) bots in the game.
|