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

[L4D2] Melee Range (1.0) [02-Oct-2019]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About:
  • Adjustable melee range for individual melee types.
  • There's no clear and easy way to detour or change the range per client specifically so this will have to suffice.
  • If someone melees within 5 frames of someone else (about 0.2s) it won't set their melee range but instead use the range from the previous person.
  • The distance is used over those frames to calculate hits during the swing. If you want to increase or decrease sensitivity change the "g_iFrameCount++ <= 5" value.
  • Not sure how many frames it calculates over exactly. Might be 6 or so.


Thanks:
  • xZk - For the idea and request.


Cvars:

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

PHP Code:

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

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

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

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

// 70=Default. Range for Baseball Bat.
l4d2_melee_range_weapon_baseball_bat "150"

// 70=Default. Range for Cricket Bat.
l4d2_melee_range_weapon_cricket_bat "150"

// 70=Default. Range for Crowbar.
l4d2_melee_range_weapon_crowbar "150"

// 70=Default. Range for Electric Guitar.
l4d2_melee_range_weapon_electric_guitar "150"

// 70=Default. Range for Fire Axe.
l4d2_melee_range_weapon_fireaxe "150"

// 70=Default. Range for Frying Pan.
l4d2_melee_range_weapon_frying_pan "70"

// 70=Default. Range for Golf Club .
l4d2_melee_range_weapon_golfclub "150"

// 70=Default. Range for Katana.
l4d2_melee_range_weapon_katana "150"

// 70=Default. Range for Knife.
l4d2_melee_range_weapon_knife "70"

// 70=Default. Range for Machete.
l4d2_melee_range_weapon_machete "120"

// 70=Default. Range for Tonfa.
l4d2_melee_range_weapon_tonfa "120"

// Melee Range plugin version.
l4d2_melee_range_version 



Changes:
Code:

1.0 (02-Oct-2019)
    - Initial release.



Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_melee_range.sp - 8.4 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

×
×
  • Dodaj nową pozycję...