Skip to content
/SLASHPLAY

How to make all bots one class in TF2

Type tf_bot_force_class spy in the server console and every bot respawns as Spy. tf_bot_force_class "" lets them choose again.

tf_bot_force_class

Forces every TFBot to respawn as the given class. Empty means bots pick their own class.

tf_bot_force_class <class>

Examples

tf_bot_force_class spy

All bots play Spy.

tf_bot_force_class ""

Let bots choose again.

Arguments

classRequired
Class name such as soldier or sniper. Empty to clear.

What it does

Handy for practice, for example all Spy bots to train spy checking or all Heavies for a target range.

The game's own description: If set to a class name, all TFBots will respawn as that class

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to tf/cfg/server.cfg. New to this? Start a TF2 server first.

Your own
TF2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.