This article's documentation is for anything that uses the Source engine. Click here for more information.

Bot quota: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Replaced deprecated {{Game name}} template with {{Software}} counterpart. Action performed by bot)
(CS2 Additions)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{this is a|console variable|name=bot_quota}}
{{this is a|console variable|name=bot_quota}}
'''<code>bot_quota</code>''' and '''<code>bot_quota_mode</code>''' are [[cvar]]s in {{css|4}} and {{csgo|4}}.
'''<code>bot_quota</code>''' and '''<code>bot_quota_mode</code>''' are [[cvar]]s in {{css|4}}, {{csgo|4}}, and {{cs2|4}}.


'''<code>tf_bot_quota</code>''' and '''<code>tf_bot_quota_mode</code>''' are the corresponding commands in {{Team Fortress 2|4}}.
'''<code>tf_bot_quota</code>''' and '''<code>tf_bot_quota_mode</code>''' are the corresponding commands in {{Team Fortress 2|4}}.
Line 26: Line 26:
|-
|-
| <code>fill</code>
| <code>fill</code>
| The server is filled with bots until there are at least <code>bot_quota</code> [[player]]s on the server (humans + bots). Human players joining cause an existing bot to be kicked, human players leaving might cause a bot to be added. {{bug|{{csgo}} When a human player switches teams between T and CT, a bot is added.}}
| The server is filled with bots until there are at least <code>bot_quota</code> [[player]]s on the server (humans + bots). Human players joining cause an existing bot to be kicked, human players leaving might cause a bot to be added. {{bug|{{csgo}} When a human player switches teams between T and CT, a bot is added. Fixed in {{cs2}}|tested=csgo}}
{{bug|{{cs2}} Changes to <code>bot_quota</code> will cause the [[SourceTV]] bot to be kicked from the game, stopping any recordings or broadcasts.|tested=cs2}}
|-
|-
| <code>match</code>
| <code>match</code>
| The number of bots on the server equals the number of human players times <code>bot_quota</code>.
| The number of bots on the server equals the number of human players times <code>bot_quota</code>.
|-
|-
| {{csgo}} <code>competitive</code>
| <code>competitive</code> {{csgo|only}}
| The number of inactive bots on each team with no human players equals <code>bot_quota</code>. It has the same side effect as {{ent|bot_stop|1}}, although being independent from this [[ConVar]].
| The number of inactive bots on each team with no human players equals <code>bot_quota</code>. It has the same side effect as {{ent|bot_stop|1}}, although being independent from this [[ConVar]].
|}
|}

Latest revision as of 15:23, 2 December 2025

bot_quota is a console variable available in all Source Source games. bot_quota and bot_quota_mode are cvars in Counter-Strike: Source Counter-Strike: Source, Counter-Strike: Global Offensive Counter-Strike: Global Offensive, and Counter-Strike 2 Counter-Strike 2.

tf_bot_quota and tf_bot_quota_mode are the corresponding commands in Team Fortress 2 Team Fortress 2.

bot_quota is also available in Dino D-Day Dino D-Day.

Syntax

bot_quota <int>
bot_quota_mode <string>

Effects

Normally, bot_quota is simply the number of bots that are added automatically on the server. If bot_quota_mode exists, it allows to interpret bot_quota differently to achieve more complex effects.

The allowed values for bot_quota_mode are in the following table. With the expression bot_quota we mean its value.

bot_quota_mode Effects
normal (and invalid values) The number of bots on the server equals bot_quota.
fill The server is filled with bots until there are at least bot_quota players on the server (humans + bots). Human players joining cause an existing bot to be kicked, human players leaving might cause a bot to be added.
Icon-Bug.pngBug:Counter-Strike: Global Offensive When a human player switches teams between T and CT, a bot is added. Fixed in Counter-Strike 2  (tested in: csgo)
Icon-Bug.pngBug:Counter-Strike 2 Changes to bot_quota will cause the SourceTV bot to be kicked from the game, stopping any recordings or broadcasts.  (tested in: cs2)
match The number of bots on the server equals the number of human players times bot_quota.
competitive (only in Counter-Strike: Global Offensive) The number of inactive bots on each team with no human players equals bot_quota. It has the same side effect as bot_stop 1, although being independent from this ConVar.