Bodzilla
September 3rd, 2009, 07:15 AM
http://www.ubercharged.net/2009/08/26/how-to-have-bots-fighting-on-your-main-menu/
How To Do It
1. Go to the RCBot Website and download the latest version of RCBots (As of this article, the latest version is version 0.51).
2. Follow the readme instructions included with the download.
3. Now that you have installed RCBots exactly as the readme said to, open your “Steam\steamapps\<YOUR USERNAME>\team fortress 2\tf\cfg” folder and open autoexec.cfg in notepad. IF THERE IS NO AUTOEXEC.CFG, make one in notepad.
4. In your autoexec.cfg file, paste the following:
//FOR AWESOME BACKGROUND FIGHTING
plugin_load ../bin/HPB_Bot2
sv_cheats 1
map_background ctf_turbine
alias "redbot" "rcbot addbot 3 2"
alias "blubot" "rcbot addbot 3 3"
alias "botloadscript" "wait 1000; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot"
botloadscript
5. Run TF2 and wait a while, depending on the speed of your computer, the bots may take longer to load.
Explanation
Basically, I’m loading the plugin for RCBots with {plugin_load ../bin/HPB_Bot2}, running a map in the background of your main menu, and then adding bots. The way that I’m adding bots, is through the use of a script which is defined and run within the autoexec file. I named this script {botloadscript} and run it immediately after defining it.
Why don’t I simply paste a bunch of {rcbot addbot} after loading my server you ask? The autoexec runs through all the commands almost instantaneously. This means that the console doesn’t wait for the map to load before adding bots. So, while the map is still initializing, the console would attempt to add bots and fail. However, if I use a script, the script will only run once in a map, allowing bots to be added once the map is initialized.theres a heap of other stuff like how to customise it and what not.
looks fucking awesome :D
How To Do It
1. Go to the RCBot Website and download the latest version of RCBots (As of this article, the latest version is version 0.51).
2. Follow the readme instructions included with the download.
3. Now that you have installed RCBots exactly as the readme said to, open your “Steam\steamapps\<YOUR USERNAME>\team fortress 2\tf\cfg” folder and open autoexec.cfg in notepad. IF THERE IS NO AUTOEXEC.CFG, make one in notepad.
4. In your autoexec.cfg file, paste the following:
//FOR AWESOME BACKGROUND FIGHTING
plugin_load ../bin/HPB_Bot2
sv_cheats 1
map_background ctf_turbine
alias "redbot" "rcbot addbot 3 2"
alias "blubot" "rcbot addbot 3 3"
alias "botloadscript" "wait 1000; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot; wait 10; redbot; wait 10; blubot"
botloadscript
5. Run TF2 and wait a while, depending on the speed of your computer, the bots may take longer to load.
Explanation
Basically, I’m loading the plugin for RCBots with {plugin_load ../bin/HPB_Bot2}, running a map in the background of your main menu, and then adding bots. The way that I’m adding bots, is through the use of a script which is defined and run within the autoexec file. I named this script {botloadscript} and run it immediately after defining it.
Why don’t I simply paste a bunch of {rcbot addbot} after loading my server you ask? The autoexec runs through all the commands almost instantaneously. This means that the console doesn’t wait for the map to load before adding bots. So, while the map is still initializing, the console would attempt to add bots and fail. However, if I use a script, the script will only run once in a map, allowing bots to be added once the map is initialized.theres a heap of other stuff like how to customise it and what not.
looks fucking awesome :D