[ANY] Sound filter (v0.1)
3 Attachment(s)
Sound filter (v0.1)
This plugin loads a list of strings from a configuration file, then prevents any sounds that contain any of those strings in their filename from playing. Configuration The configuration is loaded as a KeyValues file from configs/disabledsounds.cfg. It should contain a list of case-insensitive substrings to test for. As an example, I use this configuration (also attached to the post) on my TF2 jump server to disable soldier/demoman pain sounds and fall damage sounds. Code:
"Sounds" //substrings
|
Re: [ANY] Sound filter (v0.1)
You can't block clientside sounds like footsteps using this method though.
|
Re: [ANY] Sound filter (v0.1)
True enough. I didn't take footsteps into consideration since I developed this in TF2, where footsteps aren't quite as important as they are in other games.
According to this post, you can silence footsteps by using the method this plugin does as well as setting sv_footsteps to 0 using SendConVarValue. I haven't tested it myself, though. |
All times are GMT -4. The time now is 07:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.