How to add bots? CS:S

Post Reply
IcEWoLF
This is my homepage
This is my homepage
Posts: 1192
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Aug 10, 2006 9:41 pm
Contact:

How to add bots? CS:S

Post by IcEWoLF »

Sorry I was searching the forums but I couldn't find the exact thread to add bots.
I am looking for the command to add 4 bots to my server when empty and whenever one player joins 1 bot leaves...until we have 4 live players then all bots leave.
Image
Image
User avatar
Edge100x
Founder
Founder
Posts: 12941
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to add bots? CS:S

Post by Edge100x »

At its simplest, something like:

Code: Select all

bot_quota 4
bot_join_after_player 0
User avatar
TimeX
Staff
Staff
Posts: 1730
Joined: Thu Jul 22, 2004 12:24 am
Location: Big Bear, CA

Re: How to add bots? CS:S

Post by TimeX »

A more specific setup for what you want to do, you will want this in your server.cfg file:

bot_quota 4
bot_quota_mode "fill"
bot_join_after_player 0
bot_add

That should get it working the way you want. The bot_add line may need to be removed with recent game changes, so if you find there aren't any bots or too many bots, add or remove the line accordingly.
TimeX
IcEWoLF
This is my homepage
This is my homepage
Posts: 1192
Joined: Thu Aug 10, 2006 9:41 pm
Contact:

Re: How to add bots? CS:S

Post by IcEWoLF »

Hi Timex, whenever players are joining the server the bots are not dropping accordingly.
Image
Image
User avatar
TimeX
Staff
Staff
Posts: 1730
Joined: Thu Jul 22, 2004 12:24 am
Location: Big Bear, CA

Re: How to add bots? CS:S

Post by TimeX »

Try changing to bot_quota_mode "normal" and see if that helps. If not, try removing the bot_add line instead of changing quota mode.
TimeX
IcEWoLF
This is my homepage
This is my homepage
Posts: 1192
Joined: Thu Aug 10, 2006 9:41 pm
Contact:

Re: How to add bots? CS:S

Post by IcEWoLF »

TimeX, none of the options above are working.
Bots are not leaving the server when people are joining.
Image
Image
dawnofviolence
A regular
A regular
Posts: 37
Joined: Mon Nov 01, 2010 7:16 pm
Contact:

Re: How to add bots? CS:S

Post by dawnofviolence »

here a full list of bot options that i use on my servers
the one in read is the one that makes the bots leave on player join


//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 0

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

//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 "DoV"

//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 1
bot_allow_sub_machine_guns 1

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

//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
DoVGaming.net CSS COMMUNITY POWERED BY NFOSERVERS.COM
Post Reply