Bot: Difference between revisions
(Used game templates directly. cs_bots with a targetname turn into players.) |
(Added list of "base" bot commands/convars. Feel free to add what I missed or missed to describe.) |
||
Line 44: | Line 44: | ||
{{inline note|name=1|In VScript, if <code>bot</code> is the handle of a cs_bot, then <code>bot.[[List of CS:GO Script Functions#Methods|GetClassname]]()</code> always delivers <code>"player"</code>.<br>If a cs_bot receives a {{ent|targetname}}, it turns into a <code>player</code>.}} | {{inline note|name=1|In VScript, if <code>bot</code> is the handle of a cs_bot, then <code>bot.[[List of CS:GO Script Functions#Methods|GetClassname]]()</code> always delivers <code>"player"</code>.<br>If a cs_bot receives a {{ent|targetname}}, it turns into a <code>player</code>.}} | ||
==See | == Related Console Commands and Variables == | ||
All games with bots have ConCommands and ConVars to control them. These might have slightly different side effects per game. | |||
{{note|{{tf2}} The following need the prefix <code>tf_</code>, such as <code>tf_bot_add</code>.}} | |||
{{note|For commands to modify where bots can go, see [[Nav Mesh Commands]]. To learn how to use them, see [[Nav Mesh Editing]].}} | |||
{| class=standard-table | |||
! ConCommand / ConVar !! Description | |||
|- | |||
| <code>bot_add</code> || Adds a bot to the server. Parameters can be used to set the name, team or difficulty of the new bot. This might do nothing for the first time if <code>bot_quota_mode</code> is set to <code>fill</code>. | |||
|- | |||
| <code>[[bot_kill]]</code> || Cheat command that makes all bots suicide. If a parameter is given, tries to kill the bot with that name. | |||
|- | |||
| <code>bot_kick</code> || Remove all bots from the server. Parameters can be used to target only specific bots.<br>{{csgo}} Bots don't die properly such that they don't drop any equipment. | |||
|- | |||
| <code>bot_stop</code> || If set to non-zero, bots won't do anything. | |||
|- | |||
| <code>bot_zombie</code> || | |||
|- | |||
| <code>[[bot_quota]]</code><br><code>bot_quota_mode</code> || Determines the number of bots on the server that are added automatically. | |||
|} | |||
== See Also == | |||
* [[Nav Mesh|Navigation Meshes]] | * [[Nav Mesh|Navigation Meshes]] | ||
* [[NextBot]] | * [[NextBot]] | ||
* [[Server-Side Bots]] | * [[Server-Side Bots]] | ||
* [[Botrix]] | * [[Botrix]] | ||
* {{csgo}} [[CS:GO Bot Behavior Trees|Bot Behavior Trees]] | * {{csgo}} [[CS:GO Bot Behavior Trees|Bot Behavior Trees]] | ||
* {{csgo}} [[CS:GO VScript Examples#Functions to distinguish bots and human players|VScript Examples#Functions to distinguish bots and human players]] | * {{csgo}} [[CS:GO VScript Examples#Functions to distinguish bots and human players|VScript Examples#Functions to distinguish bots and human players]] |
Revision as of 08:46, 23 June 2022
A bot (short for robot) is similar to an NPC in a multiplayer game, usually designed to behave like a human-controlled player. An example is the Counter-Strike: Source bot.
Long Version
Given the team-based competitive nature behind many first-person shooters, a player who plays offline games, presumably limited or no internet access, will be missing out a huge portion of the game. To remedy this, these games usually come with bots, which are NPCs that behave like a human player.
Another distinct definition of bot is that of a computer program which is commonly designed to perform monotonous or hard-to-achieve tasks such as "farming" and raising levels in RPG-type games. As a result, most RPG games have banned them from use because it is considered cheating. In FPS games this type of bot is also known to be a form of cheating. It helps players achieve better scores by improving their aim and reflexes which, in the extreme case, are completely controlled by the bot software.
Bot Classes and Properties
Bot Class | Game | Target Class for I/O, VScript |
Is solid to NPC clip? |
Affected by LOS Blockers? |
---|---|---|---|---|
cs_bot | ![]() |
player | Yes | No |
![]() |
cs_bot1 | Yes | Yes | |
survivor_bot | ![]() ![]() |
player | No | Yes |
tf_bot | ![]() |
player | No | No |
bot
is the handle of a cs_bot, then bot.GetClassname()
always delivers "player"
.If a cs_bot receives a targetname, it turns into a
player
.Related Console Commands and Variables
All games with bots have ConCommands and ConVars to control them. These might have slightly different side effects per game.

ConCommand / ConVar | Description |
---|---|
bot_add |
Adds a bot to the server. Parameters can be used to set the name, team or difficulty of the new bot. This might do nothing for the first time if bot_quota_mode is set to fill .
|
bot_kill |
Cheat command that makes all bots suicide. If a parameter is given, tries to kill the bot with that name. |
bot_kick |
Remove all bots from the server. Parameters can be used to target only specific bots.![]() |
bot_stop |
If set to non-zero, bots won't do anything. |
bot_zombie |
|
bot_quota bot_quota_mode |
Determines the number of bots on the server that are added automatically. |
See Also
- Navigation Meshes
- NextBot
- Server-Side Bots
- Botrix
Bot Behavior Trees
VScript Examples#Functions to distinguish bots and human players