View Single Post
AdRiAnIlloO
Member
Join Date: Jul 2015
Location: Spain
Old 12-26-2021 , 17:12   Re: Map configs with prefix support 1.3
Reply With Quote #188

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
Attached Files
File Type: smx mapconfigs.smx (4.8 KB, 164 views)

Last edited by AdRiAnIlloO; 12-26-2021 at 17:22.
AdRiAnIlloO is offline