Bot Usage¶
YaPB console commands Summary¶
- The following main YaPB commands are available (note these ARE case sensitive):
yb add
Adds specific bot into the game. (see below) yb kick
Kicks off the random or specified bot from the game. (see below) yb removebots
Kicks all the bots from the game. Also available via alias yb kickall
yb kill
Kills the specified team or all the bots. (see below) yb fill
Fills the server (add bots) with specified parameters. (see below) yb vote
Forces all the bots to vote to specified map. yb weapons
Sets the bots weapon mode to use. (see below) yb menu
Opens the main bot menu. yb version
Displays version information about bot build. yb list
Lists the bots currently playing on server. yb cvars
Displays all the cvars with their descriptions.
yb add¶
To add a specific bot to the game, with nickname: John Smith, difficulty 2. Average, personality 4. Careful, team: CT, team class: SAS, you should type in console yb add 2 4 2 3 "John Smith"
Correct format for the yb add
command is yb add [difficulty][personality][team][model][name]
. All bot values are selected by numbers (except the bot name).
yb kick¶
Type in console yb kick
command to remove the random bot.
If you want to remove the bot from the specified team, you should type in the console yb kick t
to kick a bot from Terrorists team, and yb kick ct
to kick a bot from Counter-Terrorists team.
yb kill¶
The yb kill
command kills all the bots. To kill a specific team, such as terrorists you should type in console yb kill t
command. For Counter-Terrorists the command are yb kill ct
yb fill¶
To fill the server with random bots type in console yb fillserver
.
If you want to fill the server with specific bots, for example: Team: Terrorists, Count: 5, Difficulty: 3. Normal, Personality: 2. Aggressive, you should type in console the follow command yb fill 1 5 3 2
.
Correct format for the yb fill
command is yb fill [team][count][difficulty][personality]
.
yb weapons¶
To force the bot to use only a certain type of weapon, for example, shotguns, you should type in console the yb weapons shotgun
command.
Allowed values: knife|pistol|shotgun|smg|rifle|sniper|standard
.
Standard means that bots will use all weapons.
Adding bots to the game¶
Select 1. Add a Bot, Quick
from the bot control menu to add a bot with random stats (name, difficulty, personality etc.)
Select 2. Add a Bot, Specified
from the bot control menu to add a bot with manually specified stats.
Or type in console yb_quota x
where X is amount of adding bots.
Selecting the bot language¶
You must open the file yapb.cfg
in the folder addons/yapb/conf
and change the value of yb_language cvar to the next available one.
en
- English Languageru
- Russian Languagede
- Deutsch Languagechs
- Chinese Language
For example, write in the config yb_language ru
for Russian Language.