How can I change the game mode in tf2 server? in the server.cfg file?
How to change the gamemode for the Team Fortress 2 server from capture the flag to payload
server-administrationteam-fortress-2
Related Topic
- Is it possible to change gamemode or gametype while the server is running
- Team Fortress Server Bots – Does nav_generate persist
- Cannot connect to own Team Fortress 2 server
- How to automatically update a Team Fortress 2 server with SteamCMD
- Steam – Team Fortress 2 Dedicated Server Replays
- Test run items in Single Player for Team Fortress 2
- Team Fortress 2: Hidden Stats on Capture Points for Payload Cart pushing
Best Answer
Short Answer: Change your server's startup map to a payload map and change the maps in your
mapcyclefile
(tf/cfg/mapcycle.txt
by default) to payload maps.Explanation:
For most game modes, it's the map that determines the game mode and not the server.
Payload maps all start with
pl_
. The list of standard payload maps is stored in the server'stf/cfg/mapcycle_quickplay_payload.txt
. As of this writing, the list is:There are also a small selection of Payload Race maps, where both teams have a cart:
There are also a few Halloween-themed Payload and Payload Race maps:
and finally, a beta map that Valve is still working on:
You can also use custom maps, including those from the TF2 Map Workshop. I even wrote a guide for server owners about it.
Note: I said most game modes earlier. There are two exceptions:
Mannpower
Mannpower uses specific CTF maps, but these CTF maps will be played as normal CTF maps unless you set these cvars:
The CTF maps that are meant for use with Mannpower are:
Mann vs. Machine
While MvM does use the map's filename, MvM mode works differently than the other game modes.
It will "crash" the server if
maxplayers
is set to something other than 32.As soon as you launch an MvM map, the server stops using the
mapcyclefile
(mapcycle.txt by default, TF2 looks in tf/cfg/ for this file).tf_mvm_missioncyclefile
(tf_mvm_missioncycle.res
by default, TF2 looks in tf/ for this file) instead. The default mission file is embeddedtf_misc_dir.vpk
and cannot be directly edited without extracting it first.