Check out this Team Fortress 2 guide to learn how you can auto-execute console commands in the game. If you’re one of the TF2 players who are tired of typing the same commands all over again, this guide will help you skip this process.
How to Auto-Execute Console Commands in TF2
Enable TF2 Console
For those who haven’t enabled the console in Team Fortress 2, here is the step on how to do it:
- Launch Team Fortress 2
- クリック 設定 ボタン
- に行く キーボード > 高度な and check the second option
- Quit Team Fortress 2
- 開ける 蒸気 > ゲーム > Right-click on TF2 and select プロパティ
- クリック 起動オプションを設定する and type the following commands:
- -コンソール
- Relaunch TF2 and type the following commands
- バインド [YOUR KEY] トグルコンソール
Creating the AutoRun File
Now that we have enabled TF2 console, we’re now going to create the automation. 以下の手順に従ってください.
- Go to the directory of Team Fortress 2.
- Once you’re already in the directory folder, に行く tf > CFG フォルダ
- Create a new .txt file and name it to autoexec.
- After creating a new text file named autoexec.txt, change the .txt extension to .CFG.
- The final result should be 自動実行.cfg
Console Command Customization
We’re now going to customize the autoexec console commands. Edit the autoexec.cfg by performing the right-click on your mouse and select open with notepad. そこから, you can customize the commands. Please note that the file will be following one command per line.