←  [RSS] Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

[TF2] Taunt Rate Limiter

Adminek AMXX.PL's Photo Adminek AMXX.PL 03.06.2013

<!-- BEGIN TEMPLATE: postbit_external -->
<div>So it would seem there are some script kiddies going around spamming taunts at really really high rates. Normal taunts don't really do too much, other than annoy players. However, if they use things that create particle systems (medic taunt, shred alert) which do not get destroyed for several seconds (4-6) they will rapidly pile up over a few seconds and crash your server due to ED_Alloc No Free Edicts.<br /><br />There's probably a better way around this, but I didn't care at the time, and just wanted to solve the problem so it would go away. This limits each player's taunt commands. It uses whole seconds. It doesn't care if your taunt landed or not. If you want better accuracy, you can go ahead and change it to use engine time // floats, or perhaps check if the player is in condition taunting, or simply count the number of taunts they do over a certain period and ban them it's too high. I think smac can do something like that.<br /><br />This is much too simple for all of that.<br /><br /><font size="5"><b><u>CVARs:</u></b></font><br /><b>ftauntlimit_version</b>: version number, for tracking (don't change) - lol<br /><b>sm_tauntallow_blue</b>: (0) - Enable/Disable Blocking for Blue [0/1]<br /><b>sm_taunt_primary</b>: (2) - Taunt delay after normal taunts<br /><b>sm_taunt_action</b>: (6) - Taunt delay after action slot items<br /><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">2013-6-3 (v1.0.0)<br />* Initial Release</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="5"><b><u>Installation:</u></b></font><br />- Put SMX in plugins directory<br />- Set sm_tauntallow_blue 1 if you are running saxton hale or something and need him to be able to hammer his taunt keys.</div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...?file_id=120725"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1370268369">Get Source</a> (tauntfix.sp - 3.1 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł
Quote