Add CVar: sv_rehlds_allow_large_sprays #1081
Open
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.
Add new CVar:
sv_rehlds_allow_large_sprays
0: disallow larger custom sprays than regular 64x64
1: default hlds behaviour, spray max bound size is 256
Purpose
Some players like to be annoying by using custom tools to create larger than normal sprays, sometimes trolling by spraying ladder textures and such. It's funny the first time but gets old fast.
Because of this, lot of server owners decide to disable sprays altogether with sv_allowupload 0, which is not fun.
This gives another option for server owners to disallow those annoying large sprays, while allowing the regular 64x64 sized ones.
Future improvements
In future another CVar could be added
sv_rehlds_allow_color_sprays
, by adding check whether the palette is regular single-color (grayscale), as is result when making custom sprays normally as BMP like supposed to, instead of directly editing wad with custom tools to get around the color limitation.