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] Scavenge Pouring - Unleaded Gas Only (1.0) [17-Jun-2021]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Fixes:
  • Blocks pouring non-scavenge models of gascans. Can configure which types to allow.
  • Some options to choose what happens when pouring is denied.


Thanks:
  • Eärendil - For the idea and request
  • XeroX - For showing the function to detour
  • Lux - Discussion about the plugin and plugin title



CVars:

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

PHP Code:

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

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

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

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

// 0=Off. 1=Prevent dropping the gascan when denied pouring.
l4d2_block_gascan_drop "1"

// 0=Off. 1=Print a message to the client explaining they cannot use this gascan.
l4d2_block_gascan_print "1"

// 0=Off. 1=Stagger the client when denied pouring.
l4d2_block_gascan_stagger "1"

// Which models to block. 1=Standard, 2=Scavenge, 4=Green, 8=Green with Diesel text. Add numbers together.
l4d2_block_gascan_types "13" 



Changes:
Code:

1.0 (17-Jun-2021)
    - Initial release.



Requirements:
  1. DHooks (Experimental Dynamic Detour support) extension.


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

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_block_gascan.sp - 11.3 KB)
File Type: smx l4d2_block_gascan.smx (7.5 KB)
File Type: txt l4d2_block_gascan.txt (981 Bytes)

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