<div><b>Sound filter </b>(v0.1)<br />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.<br /><br /><b>Configuration<br /></b>The configuration is loaded as a KeyValues file from configs/disabledsounds.cfg. It should contain a list of case-insensitive substrings to test for.<br />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.<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">"Sounds" //substrings<br />{<br /> "1" "soldier_painsevere"<br /> "2" "soldier_painsharp"<br /> "3" "demoman_painsharp"<br /> "4" "demoman_painsevere"<br /> "5" "pl_fallpain"<br /> "6" "pl_fleshbreak"<br />}</code><hr />
</div><b>Convars/Commands<br /></b><ul><li>sm_soundfilter_enabled: 1 to enable, 0 to disable. Default 1.</li>
<li>sm_soundfilter_reload: Reload list of strings from disk.</li>
</ul>I have only tested this on TF2, but theoretically it should work on any source mod that supports Sourcemod 1.7 or 1.8.</div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...44"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1467685188">GetSource</a> (soundfilter.sp - 2.1 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/cfg.gif"alt="File Type: cfg" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...dsounds.cfg</a>(175 Bytes)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...dfilter.smx</a>(5.2 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse

[ANY] Sound filter (v0.1)
Temat rozp. Adminek AMXX.PL, 05.07.2016 03:30
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych