Portal Home > Knowledgebase > Game Servers > HalfLife 2 Games > How do I add bots to my server?


How do I add bots to my server?




Create a bot.cfg file and add the following in it. You also need to make sure you have "exec bot.cfg" in your server.cfg

 

 

//General CS:Source BOT Config v5
echo "Loading CS:Source Bot Configuration Settings..."

//Control how bots talk. Allowed values: 'off', 'radio', 'minimal', or 'normal'.
bot_chatter radio

//Set to 0 to let bots complete map objectives. 0/1
bot_defer_to_human 1

//0 is Easy, 1 is Normal, 2 is Hard, & 3 is Expert.
bot_difficulty 3

//Bots wait for a human to join before joining. 0/1
bot_join_after_player 0

//Add bot(s) to a specific team. any/CT/T or Adds a bot to whichever team has fewer players.
//bot_join_team:
//bot_add
//bot_add_ct
//bot_add_t

//Defines a Prefix for all bot's names.
bot_prefix "pf :: "

//Reports on the bots' memory usage
//bot_memory_usage

//Restricts the bots to particular weapons
//bot_knives_only
//bot_pistols_only
//bot_snipers_only
bot_all_weapons

//Weapon Control. 0/1
bot_allow_grenades 1
bot_allow_machine_guns 1
bot_allow_pistols 1
bot_allow_rifles 1
bot_allow_shotguns 1
bot_allow_snipers 0
bot_allow_sub_machine_guns 1

//Bots with high co-op may automatically follow a nearby human player. 0/1
bot_auto_follow 0

//Bots will not buy if their money falls below this amount. Default = 2000
bot_eco_limit "800"

//Bots may occasionally go 'rogue'.
//Rogue bots do not obey radio commands, nor pursue scenario goals. 0/1
bot_allow_rogues 1

//Determines the type of quota. Allowed values: 'normal' and 'fill'.
//If 'fill', the server will adjust bots to keep N players in the game, where N is bot_quota.
bot_quota_mode "fill"

//Bots will automatically leave to make room for human players. 0/1
bot_auto_vacate 1

//Set to min # of bots allowed on server
bot_quota 4


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How to add SourceTV? (Views: 264)