Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CVar: sv_rehlds_allow_large_sprays #1081

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

anzz1
Copy link
Contributor

@anzz1 anzz1 commented Feb 13, 2025

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.

0: disallow larger custom sprays than regular 64x64
1: default hlds behaviour, spray max bound size is 256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant