This plugin allows you to place your spray as many times as you want and as large as you want.
This is accomplished by writing a VMT file using the player's spray as a base texture, sending
the VMT file to all connected clients, precaching the material, then placing the decal in the world.
FEATURES
- Place multiple sprays similar to Goldsrc
- Place sprays on brush entities similar to Goldsrc
- Dynamic resizing of player sprays
DEPENDENCIES
- LINUX ONLY (for the time being)
- My LateDL fork (builds available here)
- Builds available for TF2, L4D1/2, CS:S, HL2DM, and Source 2013
- sv_allowdownload and sv_allowupload must be enabled on your server. This is not the same as having a fastdl server!
COMMANDS
PHP Code:
// Places a "world" decal. This is the default (and safer) option. These decals are controlled
// by the client's r_decals cvar. Placing too many of these will remove the oldest one.
sm_spray [desired scale]
// Places a "BSP" decal. These are "permanent" decals and won't decay.
// May cause issues if they are spammed on a single surface. If the
// player using this command does not have rspr_adminoverride access,
// using this command will be equivalent to sm_spray.
sm_bspray [desired scale]
// Debug command, will display who is downloading your spray and which sprays
// you are downloading.
// Meant to be user-facing. Only admins can see status of other users, normal
// players will only be able to run the command on themselves.
sm_sprayinfo [user]
CVARS
PHP Code:
// Spray frequency for non-admins. 0 is no delay.
// -
// Default: "0.5"
// Minimum: "0.000000"
rspr_decalfrequency "0.5"
// Enables the plugin.
// -
// Default: "1.0"
// Minimum: "0.000000"
// Maximum: "1.000000"
rspr_enabled "1.0"
// Max range for placing decals. 0 is infinite range
// -
// Default: "128.0"
// Minimum: "0.000000"
rspr_maxspraydistance "128.0"
// Maximum scale for sprays for regular players.
// -
// Default: "2.0"
// Minimum: "0.000000"
rspr_maxsprayscale "2.0"
// Maximum scale for all sprays.
// -
// Default: "32.0"
// Minimum: "0.000000"
rspr_maxsprayscale_absolute "32.0"
// Max time to wait for clients to download spray files. 0 to wait forever.
// -
// Default: "10.0"
// Minimum: "0.000000"
rspr_spraytimeout "10.0"
// Logging level. Higher number = more console spam.
// -
// Default: "2.0"
rspr_loglevel "2"
TODO
- General code optimization and cleanup
CHANGELOG
Gitlab repo (work is currently in the dev branch)
Special thanks to Bakugo for
putting up with all the stupid questions I asked helping me with this project.
This plugin won't compile on the forum due to the aforementioned dependency.