*edit
- Do not edit gamemodes.txt or gamemode_*.cfg files. Those get overwritten after updates.
- Create and use override files, gamemodes_server.txt, gamemode_*_server.cfg
- You
not need copy of all settings from base file into override file. Use just those you want change.
Something like this, it merge
_server file into base gamemodes file.
Code:
"block"
{
"key" "value"
}
_server, override file:
- Not remove keys or blocks.
- It can add new block and key with value.
- It can change value of already exist key, when you travel to right path (blocks). This is why we use it as override file, to change default value.
For quick example:
- If server not start with
-maxplayers_override parameter,
you can change maxplayers size in different game modes (example coop vs casual).
It turn maxplayers as dynamic variable.
You can change maxplayers
value with _server override file using key "maxplayers" (and for traveling in right gamemodes, gametypes etc. etc. you need mimic path).
- Base file have map group called "mg_de_dust2", it only have one map
"de_dust2" "".
Because
"de_dust2" "" map name is
key, you can't remove it.
If you use override file to place another map into it, you just increase map count.
Code:
mapgroup mg_de_dust2
Setting mapgroup to 'mg_de_dust2'
print_mapgroup_sv
Map group: mg_de_dust2
de_dust2
cs_office
- In "mapgroups" section, you can create new map group with given map list, using override file and right path.
This is my opinion what I have test.
Game could do other things, I have not look into it deeper.
Most values inside gamemodes file, are maybe for client side things.
So all things not work from server side.
__________________