fix(map): Unconditionally create gm, ttt and ttt2 prefixes #1669
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a draft until i've verified that this doesn't do funky stuff on specific configurations
We can reasonably assume
gm
maps to be present on the server the same goes forttt
andttt2
maps.Even if either or both of them are not currently installed on the server creating these unconditionally would allow an admin to configure their behaviour in that case.
Creating these convars unconditionally instead of dynamically has the added upside that if an admin would change the value to non-default the value value will be set on file read and won't trigger
FCVAR_NOTIFY
. (An "active" convar change mid-round will still triggerFCVAR_NOTIFY
as normal)Creating convars dynamically if we find other map prefixes is still done and is still affected by the above caveat.
Closes #1632
With this change we could also disable
gm
maps by default and additionally disable all other map prefixes by default. That's up for discussion