Bot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Used images for NPC clip an LOS blocker. Added bot_dont_shoot and removed bot_zombie but apparently both are specific to css and csgo. Sorted table.)
Line 13: Line 13:
{| border="2" cellpadding="5" style=margin:1em
{| border="2" cellpadding="5" style=margin:1em
|- style="background:#404040;"
|- style="background:#404040;"
! Bot Class
!rowspan=2| Bot Class
! Game
!rowspan=2| Game
! Target Class<br>for [[I/O]], [[VScript]]
!rowspan=2| Target Class<br>for [[I/O]], [[VScript]]
! Is solid to<br>[[npc clip|NPC clip]]?
!colspan=2| Affected by...?
! Affected by<br>[[LOS]] Blockers?
|- style="background:#404040;"
! [[File:Toolsnpcclip.gif|64px|link=npc clip|NPC Clip]]
! [[File:Toolsblocklos.gif|64px|link=LOS|LOS Blockers]]
|-
|-
|rowspan=2| [[cs_bot]]
|rowspan=2| [[cs_bot]]
Line 52: Line 54:
|- id="bot_add"
|- id="bot_add"
| <tt>bot_add</tt> || Adds a bot to the server. Parameters can be used to set the name, team or difficulty of the new bot. This command might do nothing the first time if <tt>bot_quota_mode</tt> is set to <tt>fill</tt>.
| <tt>bot_add</tt> || Adds a bot to the server. Parameters can be used to set the name, team or difficulty of the new bot. This command might do nothing the first time if <tt>bot_quota_mode</tt> is set to <tt>fill</tt>.
|- id="bot_dont_shoot"
| <tt>bot_dont_shoot</tt> {{css}}{{csgo}} || Determines whether bots will intentionally shoot at enemies or not. They might still shoot for example if they are blinded by a [[weapon_flashbang|flashbang]] or if a [[func_breakable]] is in their way.
|- id="bot_kick"
| <tt>bot_kick</tt> || Remove all bots from the server. Parameters can be used to target only specific bots.<br>{{csgo}} Bots don't die in this process such that they don't drop any equipment.
|- id="bot_kill"
|- id="bot_kill"
| <tt>[[bot_kill]]</tt> || Cheat command that makes all bots suicide. If a parameter is given, tries to kill the bot with that name.
| <tt>[[bot_kill]]</tt> || Cheat command that makes all bots suicide. If a parameter is given, tries to kill the bot with that name.
|- id="bot_kick"
|- id="bot_quota"
| <tt>bot_kick</tt> || 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.
| <tt>[[bot_quota]]<br>bot_quota_mode</tt> || Determines the number of bots on the server that are added automatically.
|- id="bot_stop"
|- id="bot_stop"
| <tt>bot_stop</tt> || If set to non-zero, bots won't do anything.
| <tt>bot_stop</tt> || If set to non-zero, bots won't do anything.
|- id="bot_zombie"
| <tt>bot_zombie</tt> ||
|- id="bot_quota"
| <tt>[[bot_quota]]<br>bot_quota_mode</tt> || Determines the number of bots on the server that are added automatically.
|}
|}



Revision as of 10:09, 30 January 2023

English (en)Deutsch (de)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

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 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
Affected by...?
NPC Clip LOS Blockers
cs_bot Counter-Strike: Source Counter-Strike: Source player Yes No
Counter-Strike: Global Offensive Counter-Strike: Global Offensive cs_bot1 Yes Yes
survivor_bot Left 4 Dead Left 4 Dead
Left 4 Dead 2 Left 4 Dead 2
player No Yes
tf_bot Team Fortress 2 Team Fortress 2 player No No
1: In VScript, if 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.

Note.pngNote:Team Fortress 2 The following need the prefix tf_, such as tf_bot_add.
Note.pngNote:For commands to modify where bots can go, see Nav Mesh Commands. To learn how to use them, see Nav Mesh Editing.
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 command might do nothing the first time if bot_quota_mode is set to fill.
bot_dont_shoot Counter-Strike: SourceCounter-Strike: Global Offensive Determines whether bots will intentionally shoot at enemies or not. They might still shoot for example if they are blinded by a flashbang or if a func_breakable is in their way.
bot_kick Remove all bots from the server. Parameters can be used to target only specific bots.
Counter-Strike: Global Offensive Bots don't die in this process such that they don't drop any equipment.
bot_kill Cheat command that makes all bots suicide. If a parameter is given, tries to kill the bot with that name.
bot_quota
bot_quota_mode
Determines the number of bots on the server that are added automatically.
bot_stop If set to non-zero, bots won't do anything.

See Also

External links