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] Gift Rewards (1.0) [03-Dec-2019]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Related Plugins:

Thanks:
  • Lux for the WeaponHandling_API plugin and reward suggestion.


About:
  • It's holiday time and servers are spawning Valves Christmas gifts, but they have no reward...
  • This rewards players when picking up gifts:
  • Health: Restores full health.
  • Ammo: Refills full ammo.
  • Speed: Increases shooting and reloading speed. Requires the WeaponHandling_API plugin.
  • Rewards are chance based using a weighted selection. Only one will trigger per gift.
  • Note: game cvar "z_holiday_gift_drop_chance".
  • Gifts expire after 30 seconds. Game default.



Admin Commands: (requires "z" flag)

PHP Code:

sm_gift      // Spawns a gift at where you're looking.
sm_gifter    // Gives yourself a reward. For testing. 



CVars:

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

PHP Code:

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

// Chance to completely refill a players ammo.
l4d2_gift_rewards_chance_ammo "100"

// Chance to restore a players health to full.
l4d2_gift_rewards_chance_heal "100"

// Chance to reward increased speed for: shooting, reloading and deploying. Requires WeaponHandling API plugin.
l4d2_gift_rewards_chance_speed "100"

// 0.0=Off. Reduces the size of gifts over this many seconds.
l4d2_gift_rewards_size "20.0"

// Duration the increased speed affects a player.
l4d2_gift_rewards_speed "20.0"

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

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

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

// Gift Rewards plugin version.
l4d2_gift_rewards_version 




Changes:
Code:

1.0 (03-Dec-2019)
    - Initial release.



Optional Plugin
Installation
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Optionally download "l4d2_gift_rewards.txt" and save to your servers \addons\sourcemod\gamedata\ folder. This is for the sm_gift command.

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_gift_rewards.sp - 17.5 KB)
File Type: txt l4d2_gift_rewards.txt (638 Bytes)

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