[L4D & L4D2] Christmas Tree
Lux for the WeaponHandling_API plugin and reward suggestion.
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)
sm_gift // Spawns a gift at where you're looking.
sm_gifter // Gives yourself a reward. For testing.
Saved to l4d2_gift_rewards.cfg in your servers \cfg\sourcemod\ folder.
// 0=Plugin off, 1=Plugin on.
// Chance to completely refill a players ammo.
// Chance to restore a players health to full.
// Chance to reward increased speed for: shooting, reloading and deploying. Requires WeaponHandling API plugin.
// 0.0=Off. Reduces the size of gifts over this many seconds.
// Duration the increased speed affects a player.
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
// Gift Rewards plugin version.
- Initial release.
Weapon speed features require the WeaponHandling_API plugin.
Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
Optionally download "l4d2_gift_rewards.txt" and save to your servers \addons\sourcemod\gamedata\ folder. This is for the sm_gift command.
Get Plugin or
Get Source (l4d2_gift_rewards.sp - 17.5 KB)
l4d2_gift_rewards.txt (638 Bytes)
Wyświetl pełny artykuł