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] Healing Alternative (v1.0) [12-May-2024]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
.
Healing Alternative (l4d2_HealAlt) by Mystik Spiral

Improve when healing items (first aid kits, pain pills, and adrenaline shots) are used.


Summary of healing behavioral changes:
  • Bots prefer to use/give pills/adrenaline instead of first aid kits.
  • Bots will wait longer to use first aid kits on self or others.
  • Bots will never heal another player that has their own healing items.
  • Survivors with a first aid kit are healed using the standard algorithm during map changes.
  • Survivors without a first aid kit are healed to 50, same as a respawned dead player, during map changes.
  • All survivors are given a first aid kit during map changes.


Options:

For proper operation, set the following Valve ConVars in your server.cfg file:
  • sb_toughness_buffer 0
  • sb_temp_health_consider_factor 0.0
  • pain_pills_health_threshold 90


Notes:

By default, this plugin will only run in the cooperative (coop) gamemode and is intended to only be used on dedicated servers that have not modified the default values of player health or healing items.

I plan to eventually add handling for first aid kits found outside of safe rooms.
I will not be adding support for L4D1.

Please let me know if you find any bugs, but before reporting, connect to the dedicated server system console and type:

sm plugins list;sm_cvar mp_gamemode

Check that the gamemode is "coop" and whether you see "[L4D2] Healing Alternative" or error messages, especially errors related to missing prerequisites.


Code / Discussion:

GitHub
AlliedModders


Acknowledgements and Thanks:

Silvers: For the original Bot Healing Values plugin this is forked from, Left4DHooks, gamedata, Allowed Game Modes code, and many code examples.
BHaType: For help and code examples for custom Actions, and the Actions plugin.
nosoop: For the Source Scramble plugin.
Spirit_12: For help with determing navigation flow distance.
BRU7US: For help with the map_transition event.


Changelog:

Code:

12-May-2024 v1.0
- Initial release.


Prerequisites:


Installation:

Easiest:
Download the l4d2_HealAlt.zip file, place it in the addons/sourcemod directory, unzip.

Manual:
Extract the l4d2_HealAlt.smx file to the "plugins" directory.
Extract the l4d2_HealAlt.txt file to the "gamedata" directory.
Extract the l4d2_HealAlt.phrases.txt file to the "translations" directory.
Extract the l4d2_HealAlt.sp file to the "scripting" directory.

.

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ę...