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

[L4D/2] More Director Bosses: Many Witches Guaranteed Tank


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
More Director Bosses
Repost because I typed "None" in the cvar box and therefore original post was not flagged as a plugin. Original thread edited to link to this one. No way to delete threads D:


Compatible with both L4D And L4D2


Short Description
This is a simple plugin that forces the Director to give you multiple witches each map, alongside a guaranteed tank. It works simply by toggling basegame cvars.

Long Description
The game has two console variables "director_force_witch" and "director_force_tank" which forces the Director to offer you the respective bosses as soon as possible. However, the two variables are mutually exclusive as the two bosses are treated as the same entity - if you set both variables to one, you will get either multiple tanks with no witches or multiple witches with no tanks.

This plugin is a simple jerry-rigged solution to counteract that problem. At the start of each map, it forces witch but not tank. When the first witch spawns, if no tank has spawned yet, it sets "force_tank" to 1 and disables "force_witch". After the first tank spawns, it sets "force witch" to 1 and disables "force tank".

On a normal map, this translates to multiple witches per map, as well as 1 tank that occurs after your first witch encounter in the map. In finales, tank waves still occur as normal. Special rules are implemented for finale maps to potentially allow for multiple witches if possible. Note that boss spawns still obey map-specified rules.

I made this as I was dissatisfied with existing options to handle boss spawns. Using z_spawn_old to spawn the bosses is terrible gameplay-wise as they cannot be paced properly, with jarring results such as tanks in the midst of a panic event or a witch suddenly popping up in the room next to you.
As they are out of director control, they can also spawn in places they should not be able to, resulting in absurd situations like a spawn in the c1m1 or c8m1 corridors.

Requirements

Left4Downtown2 is required.
I used the L4D_IsMissionFinalMap() native to implement special rules for finale maps. Essentially, since finale tanks only spawn in guaranteed waves, "force_tank" is useless, therefore we do not want to disable "force_witch" so that we can potentially maximize witch spawns on maps with multiple witch spawn points before the finale event.

Installation

The "Get Plugin" button does not work. The plugin will not compile since it utilizes a left4downtown2 native. Download the smx. Drag and drop to addons/sourcemod/plugins.

Compatibility
This only tampers with basegame cvars, should be compatible with everything. It only manipulates the Director's chances of spawning tanks/witches; does not interfere at all with tank mods such as the likes of Super Tanks, Last Boss, MultiTanks, Finale Tank Storm et al.
Plugins to spawn more witches are technically compatible but obsolete and not recommended.

Notes
  • All this plugin does is dynamically toggle basegame cvars based on the situation. It is up to the director to spawn the bosses. Dont come to me saying "no witch/tank on XX map!!111" Boss spawns still obey each map's vscript rules.
  • This makes tank spawns less dynamic and more predictable. As the code indicates, the map's tank always appears after the first witch that you encounter.
  • This is my first plugin. I am new to sourcemod so tell me if I did anything wrong in my plugin. Do tell me if there is any code optimization I can implement.

Miscellaneous
These variables will allow you to further tweak the director's boss spawn rates.

Related Console Variables

I recommend these cvar settings for best experience.
director_tank_max_interval 500
director_tank_min_interval 180 //default 500
director_threat_max_separation 5000
director_threat_min_separation 1000 //default 5000

Related Vscript DirectorOptions

cm_WitchLimit
cm_TankLimit

You want to use the mutation specific values (cm_) since they can override map/event specified values.

Attached Files
File Type: smx l4d_moredirectorbosses.smx (5.2 KB)
File Type: sp Get Plugin or Get Source (l4d_moredirectorbosses.sp - 3.1 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

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

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