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]Weapon Cleaner


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Intro

The idea of this plugin arises from the fact of avoiding the excess of weapons. This usually happens when players abuse weapons spawn. In addition to other plugins that generate weapons which several of these are abandoned.
Since also the excess of these weapons on the map can cause the server to warp or even crash due to excess entities.

This plugin consists of an independent timer countdown for each weapon, and this is activated when the weapon is left on the ground, similar to KF2.

Feature list:
  • cleaning weapons drop
  • cleaning weapons drop by player dead
  • cleaning weapons drop by player(bot) kicked
  • cleaning weapons spawned in game (except map weapons)
  • filter the weapons for visibility
  • set effects on weapons with the timer (blink/glow)


Cvars:
PHP Code:

// 0:Disable, 1:Enable Plugin
// Default: "1"
weapon_cleaner_enable "1"

// Set name weapons to exclude, example: gascan,propanetank,first_aid_kit,...(etc) (https://wiki.alliedmods.net/Left_4_Dead_2_Weapons)
// Default: "gascan,cola_bottles"
weapon_cleaner_exclude "gascan,cola_bottles"

// Set delay to clean each weapon in seconds
// Default: "300"
// Minimum: "1.000000"
weapon_cleaner_delay "300"

// 0:Disable, 1:Enable visibility filter on weapons
// Default: "0"
weapon_cleaner_visible "0"

// 0:Pause timer if is visible weapon , 1:Pause timer if someone is aiming at the gun, 2:Reset timer if is visible weapon, 3:Reset timer if someone is aiming at the gun
// Default: "0"
// Minimum: "0.000000"
// Maximum: "3.000000"
weapon_cleaner_visible_mode "0"

// 0:Disable effects on weapons in timer cleaning, 1:Set blink effect(RenderFx), 2:Set glow effect(L4D2), 3:All effects modes
// Default: "1"
weapon_cleaner_effect_mode "1"

// Set percentage of delay time to activate effects on weapons, ex:("0.2")=>(0.2*delay=0.2*300s=60s) or Set time in seconds value if: (value >= 1), ex:("60")s
// Default: "0.5"
// Minimum: "0.010000"
weapon_cleaner_effect_time "0.5"

// Set glow color in Hex Format (L4D2)
// -
// Default: "808080"
weapon_cleaner_effect_glowcolor "808080" 


Notes:
-if you wish to compile a version yourself, l4dstocks is required.
-possible bug on weapon switch, with the plugin:Multiple Equipments
and its other rewritten versions.(to be confirmed)


credits
zipcore
Mr. Zero
AtomicStryker
berni
Bacardi
KissLick


pd: sorry for me bad english :/

Attached Files
File Type: sp Get Plugin or Get Source (weapon_cleaner.sp - 14.5 KB)
File Type: smx weapon_cleaner.smx (13.0 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

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...