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[L4D & L4D2] Shove Handler (1.0) [16-May-2022]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About:
  • Custoimse how many shoves to kill Common Infected, Witch and Special Infected (or no shove limit)
  • Custoimse how much damage each shove causes
  • Prevent stumbling or enable stumbling
  • Block insta kill on shoving Common Infected from behind


Thanks:
  • Toranks - For the request.
  • Lux - For scripting advice.
  • Dragokas - For scripting advice.
  • Marttt - For scripting advice.


Cvars:

Saved to l4d_common_headshot.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d_shove_handler_allow "1"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_shove_handler_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_shove_handler_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_shove_handler_modes_tog "0"

// 0=Off. 1=Allow (game default). Can Common Infected be insta-killed when first shoving their back.
l4d_shove_handler_common_back "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_boomer "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_charger "0"

// 0=Ignore shove count killing common. How many shoves does it take to kill a common infected (game default is 4).
l4d_shove_handler_count_common "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_hunter "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_jockey "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_smoker "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_spitter "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_tank "0"

// 0=Ignore shove count (unlimited shoves). How many shoves does it take to kill.
l4d_shove_handler_count_witch "0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_boomer "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_charger "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_common "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_hunter "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_jockey "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_smoker "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_spitter "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_tank "10.0"

// 0.0=None (game default). Amount of damage each shove causes. If using percentage type, 100.0 = full health.
l4d_shove_handler_damage_witch "10.0"

// Who can be damaged when shoved: 0=None, 1=Common, 2=Smoker, 4=Boomer, 8=Hunter, 16=Spitter, 32=Jockey, 64=Charger, 128=Tank, 256=Witch. 511=All. Add numbers together.
l4d_shove_handler_damaged "511"

// Stumble when shoved: 0=None, 1=Common, 2=Smoker, 4=Boomer, 8=Hunter, 16=Spitter, 32=Jockey, 64=Charger, 128=Tank (default off), 256=Witch (default off). 511=All. Add numbers together.
l4d_shove_handler_stumble "127"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_boomer "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_charger "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_common "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_hunter "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_jockey "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_smoker "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_spitter "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_tank "1"

// 1=Deal the damage value specified. 2=Deal the specified damage value as a percentage of their maximum health.
l4d_shove_handler_type_witch "1"

l4d_shove_handler_version // Shove Handler plugin version. 



Changes:
Code:

1.0 (16-May-2022)
    - Initial release.



Requirements:
  1. Left 4 DHooks Direct plugin version 1.102 or newer.



Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left 4 DHooks Direct!
  1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
  2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.

Attached Files
File Type: sp Get Plugin or Get Source (l4d_shove_handler.sp - 27.1 KB)
File Type: smx l4d_shove_handler.smx (17.4 KB)
File Type: txt l4d_shove_handler.txt (2.8 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ę...