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

[L4D2] Max Common (0.3) [2024-05-25]


  • 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 530
  • Lokalizacja:AMXX.PL
Offline

Napisano 25.05.2024 23:55

<div><b><u>Description</u></b>:<br /><br />This plugin aims to clamp the amount of common infected to the 'z_common_limit' without interfering with the AI director on default campaigns (or any campaign that doesn't force spawn common infected). It does this by giving an initial leniency, and if that leniency is passed then a short timer is started before checking if the amount of common infected is still above the `z_common_limit` threshold. It will delete the common infected above 'z_common_limit', and then keep deleting any common that spawns if the total common exceeds 'z_common_limit'. After enough time has passed that no common infected has been deleted, it will disable instant deletion of common infected.<br /><br />By Default:<br /><ul><li>The leniency amount is 5 (30 + 5 = 35) before it creates a timer.</li>
<li>The timer is 3.0 seconds, before instant deleting.</li>
<li>The instant deleting disables after 5.0 seconds have elapsed without any deletions occurring.</li>
</ul><br /><b><u>Features</u></b>:<br /><br /><b>sm_common_limit</b> - Prints the current amount of common infected, max common infected, and leniency.<br /><br /><b><u>Thanks</u></b>:<br /><ul><li>Silvershot - Initial plugin</li>
<li>Addie - Helping on Discord</li>
</ul><br /><b><u>Changelog</u></b>:<br /><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">0.3 (25-May-2024)<br />&nbsp; &nbsp; - Initial release.</code><hr />
</div><b><u>Reason</u></b>:<br /><br />This plugin is <b>heavily </b>inspired by Silvers's plugin: <a href="https://forums.allie....php?p=2782587"target="_blank" rel="noopener">[L4D &amp; L4D2] Common Limiter</a> and has a lot of similarities.<br /><br />Silver's plugin was a lifesaver for custom campaigns like <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=122651122" target="_blank" rel="nofollow noopener">Wormwood</a> that could spawn infinite amount of common infected, causing the server to stutter and or become unresponsive. However, I noticed with his plugin that instantly removing common infected caused issues with the AI director on default (and other campaigns).<br /><br />If you are in a multi-floored building, or are around the corner filled with common infected, the common count is going to be max (30/30) since the room next is filled with all the naturally spawned common infected. However, if the AI director spawns a horde (which it does on timer intervals, based on difficulty), it will spawn slightly over the `z_common_limit` reaching up to 33 or 34. As it does this, it slowly overtime deletes common infected that are idle and not part of the horde it just spawned.<br /><br />Because of this AI director behavior, plugins that instantly delete common infected will cull the horde amount that spawns. Resulting in much weaker hordes than vanilla's director intended.<br /><br /><b><u>Note(s)</u></b>:<br /><br />This plugin does not prevent custom campaigns from changing z_common_limit through ConVar.SetValue() or through director script options. This is also my first plugin. So hopefully there are no issues. I am running this on my public servers.</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="https://www.sourcemo...51"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1716676115">GetSource</a> (l4d2_max_common_spawn.sp - 4.4 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




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

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