Change the distance player's can apply sprays to walls, change how fast you can spray, and apply player sprays to surfaces while dead. I'm mainly just experimenting with some smaller things and luckily I got this to work pretty quickly. Luckily, forcing player sprays onto surfaces wont emit sounds automatically, so I made the spray-can sound only emit if the player is alive. Yes, you can spray while spectating.
Control Variables:
sm_spraywhiledead_enabled (default: 1) Enable/Disable the plugin
sm_enhancedsprays_distance (default: 115) Distance players can apply sprays to walls
decalfrequency (default: 10) How often players can apply sprays
Overrides:
sm_enhancedsprays_deadflag (default: None) Who can spray while dead?
Version Log:
Version 1.1
Added convar to change distance player's can apply sprays to walls
Added override to only allow certain people to spray while dead