This SourceMod plugin for Left 4 Dead 2 adds a "lucky draw" feature that triggers when a Tank is killed by a melee weapon. The player who delivers the final melee blow to the Tank gets a chance to win various prizes that affect gameplay.
The plugin includes the following possible outcomes:
- No prize (bad luck)
- Increase health randomly
- Toggle infinite ammo for all players
- Toggle infinite melee range for all players
- Limited-time world gravity to moon gravity
- Limited-time moon gravity for the lucky player
- Average health for all survivors
- Toggle world gravity to moon gravity
- Increase gravity for the lucky player
- Decrease health randomly for the lucky player
- Kill the lucky player
- Kill all players
The plugin is highly configurable.
All these settings can be modified through ConVars, which can be found and adjusted in the plugin's configuration file.
To customize the plugin, look for the l4d2_tank_draw.cfg
file in your SourceMod addons/sourcemod/configs/
directory after first running the plugin on your server.
- Place the
l4d2_tank_draw.smx
file in youraddons/sourcemod/plugins/
directory. - Restart your server or load the plugin using the
sm plugins load
command. - The plugin will automatically create its configuration file (
l4d2_tank_draw.cfg
) in theaddons/sourcemod/configs/
directory after first run.
Enjoy the excitement of random prizes after taking down a Tank with melee weapons!