YaPB console commands Summary¶
- The following main YaPB commands are available (note these ARE case sensitive):
Adds specific bot into the game. (see below)
Kicks off the random or specified bot from the game. (see below)
Kicks all the bots from the game. Also available via alias
yb kickall. (see below)
Kills the specified team or all the bots. (see below)
Fills the server (add bots) with specified parameters. (see below)
Forces all the bots to vote to specified map.
Sets the bots weapon mode to use. (see below)
Opens the main bot menu.
Displays version information about bot build.
Lists the bots currently playing on server.
Displays all the cvars with their descriptions. (see below)
Handles graph operations.
Shows the current values from custom.cfg
To get help for all commands such as arguments, aliases, etc, type in the console
If you want to get help for specified command for example
yb add, type in the console
yb help add.
To add a specific bot to the game, with nickname: John Smith, Difficulty: Average, Personality: Careful, Team: Counter-Terrorists, Team Class: SAS, you should type in console
yb add 1 2 2 3 "John Smith"
yb add arguments info:¶
1- Aggressive (rusher)
1- Phoenix Connexion
2- Elite Crew
3- Arctic Avengers
4- Guerilla Warfare
5- Midwest Militia (Condition Zero only!)
1- Seal Team 6
5- Spetsnaz (Condition Zero only!)
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).
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.
You can also use the alias
yb kickall to remove all bots.
If you want to remove bots instantly, add the
instant argument to this command.
yb kickall instant
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
To fill the server with random bots type in console
yb fill 0.
If you want to fill the server with specific bots, for example: Team: Terrorists, Count: 5, Difficulty: Normal, Personality: Aggressive, you should type in console the follow command
yb fill 1 5 2 1.
yb fill arguments info:¶
0- Both teams
1- Terrorists only
2- Counter-Terrorists only
1- Aggressive (rusher)
Don’t enter the bot personality value if you want bots with random personalities.
Correct format for the
yb fill command is
yb fill [team][count][difficulty][personality].
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.
Standard means that bots will use all weapons.
This command lists all cvars with their descriptions.
If you want to save all cvars you configured to config, add the
save argument to this command.
yb cvars save
Also you can narrow your search by entering a word as an argument, instead of looking through a list of all cvars.
Adding bots to the game¶
1. Add a Bot, Quick from the bot control menu to add a bot with random stats (name, difficulty, personality etc.)
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 Language
ru- Russian Language
de- Deutsch Language
chs- Chinese Language
For example, write in the config
yb_language ru for Russian Language.
Bot management on a dedicated server¶
To have access to the bot’s menus and commands, you need to in a server console specify a password and a key from which the password will be read.
To specify a password, you must enter in the console the following cvar
yb_password botpassword where
botpassword is the password you specified.
To specify a key, you must enter in the console the following cvar
yb_password_key _ybpw, where
_ybpw is the key you specified.
Then, in a client console you must enter the following commandline in the console
setinfo _ybpw botpassword to have access to the commands and menus of the bot.
To have access to graph commands, you need to enter in the console the following command
yb g acquire_editor. Make sure that no one has entered this command before you, who has the password from the bot. Otherwise, you won’t be able to access graph commands until that player removes graph editing rights.
To revoke the rights to edit graphs, you must enter in the console the following command:
yb g release_editor.