Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

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


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:

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.

By Default:
  • The leniency amount is 5 (30 + 5 = 35) before it creates a timer.
  • The timer is 3.0 seconds, before instant deleting.
  • The instant deleting disables after 5.0 seconds have elapsed without any deletions occurring.

Features:

sm_common_limit - Prints the current amount of common infected, max common infected, and leniency.

Thanks:
  • Silvershot - Initial plugin
  • Addie - Helping on Discord

Changelog:

Code:

0.3 (25-May-2024)
    - Initial release.

Reason:

This plugin is heavily inspired by Silvers's plugin: [L4D & L4D2] Common Limiter and has a lot of similarities.

Silver's plugin was a lifesaver for custom campaigns like Wormwood 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).

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.

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.

Note(s):

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.

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_max_common_spawn.sp - 4.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...