Bots

From CKRAS Wiki

Revision as of 12:33, 24 October 2023 by Ckras (talk | contribs)

Guide how to add bots to your CS2 Gameserver.

You can manage Bots with our CKRAS BOT - ease by typing !addbot !nobot or !rcon bot_"command"


bot_add

bot_add   <T / CT> <Difficulty> <Name>

This command adds a bot to your current game. If you specify a team (T or CT), the bot will be added to that team. You can also optionally specify a difficulty and a name (if there is an existing profile).

Name Description
T / CT Enter the letter T to add a Terrorist bot or CT to add a Counter-Terrorist bot.
Difficulty The difficulty the spawned bot should have. Options are:
  • easy
  • normal
  • hard
  • expert
Name Optional - if not specified, the bot will have a random name. The name of the bot you wish to add (this name will show in the scoreboard/kill list/chat). The name must have an existing profile (e.g. Mark, Opie, etc).

bot_add_ct

bot_add_ct <Difficulty> <Name>

This console command adds a bot to the CT side. If the bot spawns dead, it will respawn at the start of the next round. You can optionally specify a difficulty and a name (if there is an existing profile).

Name Description
Difficulty The difficulty the spawned bot should have. Options are:
  • easy
  • normal
  • hard
  • expert
Name Optional - if not specified, the bot will have a random name. The name of the bot you wish to add (this name will show in the scoreboard/kill list/chat). The name must have an existing profile (e.g. Mark, Opie, etc).

bot_add_ct Examples

bot_add_ct - Adss a bot to the CT Side

bot_add_ct easy - Adds an easy bot to the CT side.

bot_dont_shoot

bot_dont_shoot <0 / 1>

This command can be used to prevent NPC characters (bots) from being able to fire guns.

Enter 1 to stop bots from being able to shoot their weapons, and 0 to allow them to fire as normal.

bot_quota

bot_quota <Amount>

This command adjusts the maximum number of bots you can have in your server. The default value is 10.

bot_knives_only

bot_knives_only <0 / 1>

This console command forces all bots on the server to use knives.

Enter 1 to only allow bots to use knives, and 0 to turn the command off. Enter mp_restartgame 1 after this command for it to take effect.

bot_loadout

bot_loadout <Weapon Codes>

This command sets what bots in your server will spawn with, such as particular weapon and grenade setups.

A list of weapon codes, separated by spaces. For example, to make bots spawn with an AK-47 and a flashbang, you'd enter: "ak47 flashbang". See command examples for more help.

(SV_CHEATS REQUIRED for bot_loadout !rcon sv_cheats 0|1 see CKRAS BOT Commands)

Example:

bot_loadout ak47 hegrenade

bot_loadout awp deagle

Extra Information

Find additional information relating to this command below.

sv_cheats Required No
Client or Server Command Server