-
Notifications
You must be signed in to change notification settings - Fork 17
Console Variables
am4u edited this page Sep 17, 2023
·
13 revisions
The gamemode has several console variables that can be altered. See below for documentation.
These console variables are typically what server operators should modify:
ConVar | Type | Values | Description |
---|---|---|---|
mtf2_maxrounds | integer | 0 - 999 | Sets the maximum rounds to be played. Setting 0 will result in no limit, however this is not recommended. When mp_timelimit is > 0, mtf2_maxrounds is ignored. |
mtf2_intermission_enabled | boolean | 0 or 1 | Controls whether or not intermission is to be held half way through the maximum round count. Having Intermission enabled assumes you have a intermission integration enabled - for example the SourceMod Mapchooser integration. |
mtf2_bonuspoints | boolean | 0 or 1 | Controls whether or not minigames should have a bonus point. For example, being the first person to answer a maths question would result in the player getting an extra point, as well as a point for succeeding. |
mtf2_cosmetics_enabled | boolean | 0 or 1 | Allows cosmetics to be worn by players. NOTE: This mode is explicitly not supported and may cause visual bugs and possible server lag spikes. WARNING: It is also known to affect power levels on Strange cosmetics. Added in v3.1.0. |
mtf2_use_server_map_timelimit | boolean | 0 or 1 | NOTE: This ConVar has been removed in v5.0.0, as timelimits are handled via mp_timelimit only in v5+. Sets whether or not the gamemode should instead run an infinite number of rounds and let mp_timelimit dictate when the map ends. If set to 1, the gamemode will also not run an intermission mid-game, and your mapchooser plugin will need to handle triggering a mapvote instead. When setting this ConVar to 1, ensure that you set mtf2_use_server_map_timelimit & mp_timelimit before you run the map, i.e. in your server.cfg to ensure it is configured prior to the gamemode initialising. Added in v4.1.0. |
There are some console variables useful for debugging the gamemode:
ConVar | Type | Values | Description |
---|---|---|---|
mtf2_debug_forceminigame | integer | 0 - maximum minigame count | Forces a minigame to always be played. If 0, no minigame will be forced. Refer to https://github.com/gemidyne/microtf2/blob/master/src/data/microtf2/Minigames.txt for minigame IDs. |
mtf2_debug_forcebossgame | integer | 0 - maximum bossgame count | Forces a bossgame to always be played. If 0, no bossgame will be forced. Refer to https://github.com/gemidyne/microtf2/blob/master/src/data/microtf2/Bossgames.txt for bossgame IDs. |
mtf2_debug_forcebossgamethreshold | integer | 0 - 75 | Forces a threshold to always be played. If 0, no bossgame threshold will be forced. |
Microgames in Team Fortress 2 is a project brought to you by Gemidyne. For more information, visit https://www.gemidyne.com/projects/microtf2