Hey, this is my first submission as a Plugin and I hope you enjoy it.
Description:
This Plugin on the use of Adrenaline allows you to obtain a reload boost on guns for the duration. You can also toggle between whether you need to use an Adrenaline to get that boost.
I recommend writing '
sm_cvar adrenaline_duration' in your server.cfg to match the convar '
l4d_adren_duration'
Don't forget to put the f at the end (Example: if your
l4d_adren_duration is
30, set
sm_cvar adrenaline_duration to
30.0f)
Updating:
Delete "l4d2_adren_reload.cfg" in ...cfg\sourcemod\l4d2_adren_reload.cfg directory and the plugin will generate a new one
Installation:
Download "l4d2_adren_reload.smx" and place into ...addons\sourcemod\plugins\l4d2_adren_reload .smx directory
Credits:
tPoncho - Huge props for him. I used his script to initiate the fast reload
AlliedModders Wiki - I refered to their reference through out
Testers - of this plugin
CVars:
l4d_adren_plugin_on - (DEFAULT 1). Is the Plugin Active?
l4d_adren_broadcast_on - (DEFAULT 1) - Should clients be notified when connecting to the server?
l4d_adren_broadcast_type - (DEFAULT 1) - How are clients notified? (0 = Chat, 1 = Hint, 2 = Both)
l4d_adren_duration - (DEFAULT 15) - How long does the boost last?
l4d_adren_reload_rate - (DEFAULT 0.5714). Reload rate is multiplied by this value.
l4d_adren_use_on - (DEFAULT 1). If adrenaline needs to be used to get the boost
l4d_adren_give_on - (DEFAULT 1). Give clients adrenaline at round start? (Delayed 30 seconds to prevent loading errors)
l4d_adren_reload_version - 1.0.5. The version of the Plugin
Admin commands (Requires CHEATS flag)
sm_giveadren - Give every survivor Adrenaline at any time
Bug Reports:
If there is a Bug issue, please tell me the exact steps you did so I can do my best to replicate the bugs.
To do:
Clean up coding (50% finished)
Fix those Tag mismatches somehow
Add support for L4D1?
Add support for Double Melee swing? (Next priority)
Add support for faster weapons firing?
Add support for Pills?
Changelog:
1.0.0 - Initial Release
1.0.1 - Added ConVar for toggling if adrenaline needed to be used
1.0.2 - Added URL
- Added support for giving Adrenaline at round start
- Added an Admin command to give Adrenaline to every survivor, any time. (Requires CHEATS flag)
1.0.3 - Fixed a bug where you would always be given adrenaline at round start (Needs verification)
1.0.4 - I skipped it. Why? Because i can
1.0.5 - Added ConVar to toggle if Plugin is Active
- Added ConVar to toggle if broadcasts will play on client connect
- Added ConVar to toggle where broadcasts will play on client connect (Chat or Hint text)
- Tweeked some commands to allow in-game changes
- Fixed sm_giveadren showing up as an unknown command in console
- Fixed the adrenaline toggling off (and on) not picking up *ahem* for real this time
- Added ConVar to determine how long the duration of adrenaline reload lasts (This does NOT apply to the convar 'adrenaline_duration') (Will be adding one that affects the convar soon...)
- Added a timer Hint box counting down how many seconds remains
- Added a debug definition for easier debugs