forked from charlesj/tf2manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bots.tex
36 lines (31 loc) · 2.13 KB
/
bots.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\subsection{Appendix D - Bots}
\label{Bots}
Bots are players controlled by AI. They generally aren't as sophisticated as human-controlled players, but they can be used when other humans aren't available. Some servers use bots so both Red and Blu teams have a good number of players, even though only a few live people are actually connected. Bots are also useful for those who wish to practice on their own. This can be done by starting up a local server and loading any of Valve's King of the Hill TF2 maps. These maps are Viaduct, Nucleus, and Sawmill. (While Harvest is also an official KOTH map, it does not have Bot support.) Once the server is started, open up a console and type:
\begin{lstlisting}
tf_bot_add <number> <class> <team>
\end{lstlisting}
Replace \textless number\textgreater~with the number of bots wanted, \textless class\textgreater~with the class they will play (if omitted, a random class will be chosen), and then the team, Red or Blu.
From this point forward, the match will proceed normally, although beware that the more bots in the game, the slower the game will run.
TF2 has the ability to use bots on any map, although their functionality is not perfect. In order to do this, there are a few additional steps:
Start a server From the main menu choose "Create Server." The map can be chosen here as well. Alternatively, open the console and type:
\begin{lstlisting}
map <map name>
\end{lstlisting}
It will start a server loaded up with that map.
Open up the console and turn cheats on:
\begin{lstlisting}
sv_cheats 1
\end{lstlisting}
Run the navigation generation command:
\begin{lstlisting}
nav_generate
\end{lstlisting}
This will take a few minutes to complete. Once the process completes, the server will restart. Bots can be added right away, but for stat tracking and achievements to work, cheats must be turned back off:
\begin{lstlisting}
sv_cheat 0
\end{lstlisting}
With cheats off, progress can be made towards Achievements. To prevent this from happening, leave cheats turned on.
To keep bots from changing classes after they die, type this into the console:
\begin{lstlisting}
tf_bot_keep_class_after_death 1
\end{lstlisting}