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 & L4D2] Incapped Weapons Patch (1.0) [06-Apr-2020]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Related Plugins:

About:
  • Memory patch method to use weapons while incapped, instead of changing weapons scripts.
  • Press the keys 1, 2, 3, 4, 5 to switch Weapons. Mouse scroll does not work.
  • Grenades and Melee weapons can be used while incapped.


Thanks:
  • xZk - For the original plugin and ideas.
  • Lux - For scripting advice and melee patch method.
  • MasterMind420 - For scripting advice.


Cvars:

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

PHP Code:

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

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

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

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

// L4D2 only: 0=Don't give pistol (allows Melee weapons to be used). 1=Give pistol (game default).
l4d_incapped_weapons_pistol "0"

// Empty string to allow all. Prevent these weapon IDs from being used while incapped. See below for details.
// L4D2: default blocks all meds/upgrade ammo. To block grenades add "13,14,25"
l4d_incapped_weapons_restrict "12,15,23,24,30,31"

// L4D1: default blocks medkits/pills. To block grenades add "9,10" e.g: "8,12,9,10"
l4d_incapped_weapons_restrict "8,12"

// Incapped Weapons plugin version.
l4d_incapped_weapons_version 


Weapon Restriction Cvar:

The cvar l4d_incapped_weapons_restrict uses Weapon IDs to restrict their usage. String must be comma separated.

Complete list:

Spoiler



Changes:
Code:

1.0 (06-Apr-2020)
    - Initial release.


Installation:
  1. Click "Get Plugin" and put the .smx file 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: txt l4d_incapped_weapons.txt (3.0 KB)
File Type: sp Get Plugin or Get Source (l4d_incapped_weapons.sp - 17.0 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

×
×
  • Dodaj nową pozycję...