For anyone looking for the chance to change ConVars such as
mp_teamplay instantly with this plugin upon map/s load, not having to set them before changing map anymore, you can use attached custom version.
Config file patterns:
- *.pre.cfg (new): For settings that must be applied as soon as map begins loading (required for mp_teamplay)
- *.cfg (unchanged): For settings that must be applied right after both the map and base settings (e.g. server.cfg) load
Use case: "Overriding gamemode = CTF. I want to enforce
mp_teamplay 1, and also set timelimit to 60" > Add
mp_teamplay 1 to
ctf.pre.cfg and
mp_timelimit 60 to
ctf.cfg. +If you need to disable teamplay on the normal modes (not CTF), you could add
mp_teamplay 0 to
ctf.cfg; this way, the value will be
0 at the CTF session/s but teamplay disable will only be effective when returning to a normal mode.
Source code