Team Fortress Classic

Team Fortress Classic

SilkySmooth Nov 26, 2017 @ 1:31am
How to add bots?
title
< >
Showing 1-15 of 20 comments
pizzahut Nov 26, 2017 @ 10:51am 
Download the latest installer for FoxBot here:

https://apg-clan.org/vbdownloads.php?do=download&downloadid=980
SilkySmooth Nov 26, 2017 @ 4:39pm 
Originally posted by pizzahut:
Download the latest installer for FoxBot here:

https://apg-clan.org/vbdownloads.php?do=download&downloadid=980

thanks

how does it work tho?
pizzahut Nov 27, 2017 @ 7:53am 
After installing go to

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\tfc\addons\foxbot\tfc

and edit the file "foxbot.cfg" as you wish. You can also add your Steam ID (which on a local server is "STEAM_ID_LAN") to the file "foxbot_commanders.txt". This will allow you to assign a role (attack / defend / roam) to a bot via team chat. A console command list is available in the documentation at

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\tfc\addons\foxbot\documentation

Open the file "Help_Index.html". Other things covered are e.g. creating your own bot way points for a map.

These bots only run when you start (create) a server. If you join a server, you can't add your own bots.
Last edited by pizzahut; Nov 27, 2017 @ 12:02pm
SilkySmooth Nov 28, 2017 @ 2:21am 
Originally posted by pizzahut:
After installing go to

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\tfc\addons\foxbot\tfc

and edit the file "foxbot.cfg" as you wish. You can also add your Steam ID (which on a local server is "STEAM_ID_LAN") to the file "foxbot_commanders.txt". This will allow you to assign a role (attack / defend / roam) to a bot via team chat. A console command list is available in the documentation at

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\tfc\addons\foxbot\documentation

Open the file "Help_Index.html". Other things covered are e.g. creating your own bot way points for a map.

These bots only run when you start (create) a server. If you join a server, you can't add your own bots.

ok thanks but how do I add the bots ( i have foxbot installed on the tfc folder btw) is there a command?


also im not really experienced in this "' field" the only bot adding command (TF2) is tf_bot_add (insert number here) would it be something like that?
Last edited by SilkySmooth; Nov 28, 2017 @ 2:21am
Classic Gamer Nov 28, 2017 @ 4:15am 


Originally posted by skial.com TheBroGamer14082:
Originally posted by pizzahut:
After installing go to

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\tfc\addons\foxbot\tfc

and edit the file "foxbot.cfg" as you wish. You can also add your Steam ID (which on a local server is "STEAM_ID_LAN") to the file "foxbot_commanders.txt". This will allow you to assign a role (attack / defend / roam) to a bot via team chat. A console command list is available in the documentation at

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\tfc\addons\foxbot\documentation

Open the file "Help_Index.html". Other things covered are e.g. creating your own bot way points for a map.

These bots only run when you start (create) a server. If you join a server, you can't add your own bots.

ok thanks but how do I add the bots ( i have foxbot installed on the tfc folder btw) is there a command?


also im not really experienced in this "' field" the only bot adding command (TF2) is tf_bot_add (insert number here) would it be something like that?

Type "addbot" in console.
pizzahut Nov 28, 2017 @ 5:59am 
You can either use max_bots which will fill up the server automatically, or addbot. The commands work in the cfg and in the console (if you created a server via main menu). Please read the foxbot.cfg and the HTML documentation at the locations mentioned above.

Examples:

addbot (adds a bot)
addbot 2 (adds a bot to red team)
addbot 2 1 (adds a scout to red team)
kickall (removes all manually added bots)

max_bots 8 (adds bots until the total number of players is 8)
max_bots 0 (removes the automatically added bots)

If you're running a dedicated server, you need to format commands like this:

Server console:
bot "max_bots 8"

Client console:
rcon_password "secret password"
rcon bot "max_bots 8"

With admin add-ons like AdminMod or AMX Mod X you use the commands of these mods instead. E.g.

Admin Mod:
admin_rcon bot "max_bots 8"

AMX Mod X:
amx_cvar bot "max_bots 8"

AMX Mod X has a server side menu system which you can customise.

TFC has a client side menu which is configured using the file "commandmenu.txt" in the tfc folder.

You could add something like
"8" "Bot menu" { "1" "Change role" { "1" "Attack" "say_team %i changerole attack" "2" "Defend" "say_team %i changerole defend" } "2" "Change class (after next respawn)" { "1" "Scout" "say_team %i changeclass 1" } "3" "Change class immediately" { "1" "Scout" "say_team %i changeclassnow 1" } }
Last edited by pizzahut; Nov 28, 2017 @ 7:51am
SilkySmooth Nov 28, 2017 @ 6:56am 
Originally posted by pizzahut:
You can either use max_bots which will fill up the server automatically, or addbot. The commands work in the cfg and in the console (if you created a server via main menu). Please read the foxbot.cfg and the HTML documentation at the locations mentioned above.

Examples:

addbot (adds a bot)
addbot 2 (adds a bot to red team)
addbot 2 1 (adds a scout to red team)
kickall (removes all manually added bots)

max_bots 8 (adds bots until the total number of players is 8)
max_bots 0 (removes the automatically added bots)

If you're running a dedicated server, you need to format commands like this:

Server console:
bot "max_bots 8"

Client console:
rcon_password "secret password"
rcon bot "max_bots 8"

ok thanks but is there such a thing a addbot 1? as in it adds a bot to the blue team? and is there also a way to make it so that there can only be 1 class per team, i wanna try and play it like as though theres no "clones" in the games i gonna be playing (what i mean is theres 9 mercs per team (including tf2), not 12)
pizzahut Nov 28, 2017 @ 8:05am 
Originally posted by TheBroGamer14082:
is there also a way to make it so that there can only be 1 class per team
Not bot specific, you can adjust class limits using these cvars:

cvarlist cr
CVar List
--------------
cr_demoman : 1, sv
cr_engineer : 2, sv
cr_hwguy : 1, sv
cr_medic : 4, sv
cr_pyro : 1, sv
cr_random : 0, sv
cr_scout : 4, sv
cr_sniper : 1, sv
cr_soldier : 4, sv
cr_spy : 4, sv
--------------
10 CVars for [cr]
CvarList ? for syntax

So you type in (if you created the server via the main menu):

cr_scout 1

And it'll limit the number of scouts to 1 per team. If there already are more scouts at the time, they get to stay though.

0 means unlimited, -1 means zero, cr_random obeys the other class limits. (So if you have 1 scout and unlimited random classes, there will never be more than 1 scout.)

Best put this into listenserver.cfg in the tfc folder. If you run a dedicated server, it's server.cfg instead.
Last edited by pizzahut; Nov 28, 2017 @ 8:11am
SilkySmooth Nov 28, 2017 @ 4:43pm 
Originally posted by pizzahut:
Originally posted by TheBroGamer14082:
is there also a way to make it so that there can only be 1 class per team
Not bot specific, you can adjust class limits using these cvars:

cvarlist cr
CVar List
--------------
cr_demoman : 1, sv
cr_engineer : 2, sv
cr_hwguy : 1, sv
cr_medic : 4, sv
cr_pyro : 1, sv
cr_random : 0, sv
cr_scout : 4, sv
cr_sniper : 1, sv
cr_soldier : 4, sv
cr_spy : 4, sv
--------------
10 CVars for [cr]
CvarList ? for syntax

So you type in (if you created the server via the main menu):

cr_scout 1

And it'll limit the number of scouts to 1 per team. If there already are more scouts at the time, they get to stay though.

0 means unlimited, -1 means zero, cr_random obeys the other class limits. (So if you have 1 scout and unlimited random classes, there will never be more than 1 scout.)

Best put this into listenserver.cfg in the tfc folder. If you run a dedicated server, it's server.cfg instead.


thanls, i would guess the listenserver.cfg is for local area? (thanks for answering all my questions, i can imagine it might be irritating,)
noExplorer Jun 29, 2019 @ 12:48am 
I'm sorry for joining this chat but, i have foxbot installed on the Half-Life folder

I wonder how i can change difficulty o the bots so it is not always on hard
Last edited by noExplorer; Jun 29, 2019 @ 12:50am
pizzahut Jun 29, 2019 @ 2:08am 
It has a "foxbot.cfg" file at "addons\foxbot\tfc". Open it with Notepad, Wordpad or any other text editor of choice. These settings are probably the most relevant:

# botskill_upper (1 - 5 [Skill 1 is the best, Skill 5 is worst])
# This option lets you decide the best possible skill level to be randomly assigned
# to bots that join the game automatically.
botskill_upper 1

# botskill_lower (1 - 5 [Skill 1 is the best, Skill 5 is worst])
# This option lets you decide the worst possible skill level to be randomly assigned
# to bots that join the game automatically.
botskill_lower 3

# bot_skill_1_aim (0 - 200)
# This setting governs how inaccurate a bot of skill 1 will naturally be.
# Set to 0 if you want them to be very accurate, or up to 200 to reduce their accuracy.
bot_skill_1_aim 30

# bot_aim_per_skill (5 - 50)
# This setting governs the drop in accuracy for each bot skill level after
# skill level 1. If you set bot_skill_1_aim to 10, and bot_aim_per_skill to 15
# then bots of skill 2 will have an accuracy of 25, skill 3 an accuracy of 40 and so on.
bot_aim_per_skill 10

The addbot command supports a skill parameter as well:

# Manual adding of bots so they join right away with prechosen classes
# Below you can delete/add any addbot command, syntax for adding bots is
# addbot <team#> <class#> <custom name> <skill#>
# So adding a red scout named paco skill 1 is, addbot 2 1 paco 1
addbot 2 1 paco 1
Last edited by pizzahut; Jun 29, 2019 @ 2:12am
John Jul 8, 2020 @ 6:13am 
did everything you said and it didn't work.
Bot only join to Spectators.
SilkySmooth Jul 30, 2021 @ 5:20pm 
man i made this so long ago lol.
ventsi_bs Apr 20, 2023 @ 6:35pm 
Originally posted by pizzahut:
Download the latest installer for FoxBot here:

https://apg-clan.org/vbdownloads.php?do=download&downloadid=980
I know I am very late, but is this the official link for FoxBot? Because I've seen foxbot on Gamebanana and Moddb
< >
Showing 1-15 of 20 comments
Per page: 1530 50