Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[ANY] Sound filter (v0.1)


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 489
  • Lokalizacja:AMXX.PL
Offline

Napisano 05.07.2016 03:30

<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">&quot;Sounds&quot; //substrings<br />{<br />&nbsp; &nbsp; &quot;1&quot;&nbsp; &nbsp; &quot;soldier_painsevere&quot;<br />&nbsp; &nbsp; &quot;2&quot;&nbsp; &nbsp; &quot;soldier_painsharp&quot;<br />&nbsp; &nbsp; &quot;3&quot;&nbsp; &nbsp; &quot;demoman_painsharp&quot;<br />&nbsp; &nbsp; &quot;4&quot;&nbsp; &nbsp; &quot;demoman_painsevere&quot;<br />&nbsp; &nbsp; &quot;5&quot;&nbsp; &nbsp; &quot;pl_fallpain&quot;<br />&nbsp; &nbsp; &quot;6&quot;&nbsp; &nbsp; &quot;pl_fleshbreak&quot;<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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych