Raised This Month: $51 Target: $400
 12% 

[L4D2] Adrenaline Reload (v.1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dusty1029
Junior Member
Join Date: Mar 2010
Plugin ID:
1561
Plugin Version:
1.0.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    On the use of Adrenaline, the reload speed is increased
    Unapprover:
    Reason for Unapproving:
    Author's request.
    Old 03-27-2010 , 12:05   [L4D2] Adrenaline Reload (v.1.0.5)
    Reply With Quote #1

    [L4D2] Adrenaline Reload

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_adren_reload.sp - 1638 views - 26.8 KB)

    Last edited by Dusty1029; 05-22-2010 at 01:34. Reason: No longer supported
    Dusty1029 is offline
    marvel
    BANNED
    Join Date: Dec 2009
    Old 03-27-2010 , 12:13   Re: [L4D2] Adrenaline Reload (v.1.0.1)
    Reply With Quote #2

    Nice work! I'm going to test this!
    marvel is offline
    marvel
    BANNED
    Join Date: Dec 2009
    Old 03-27-2010 , 12:32   Re: [L4D2] Adrenaline Reload (v.1.0.1)
    Reply With Quote #3

    There's a bug. I have set it to always fast reload (so when you hold adrenaline you get fast reload) but when you use it up you'll still have fast reload until the map ends.
    marvel is offline
    Dusty1029
    Junior Member
    Join Date: Mar 2010
    Old 03-27-2010 , 12:37   Re: [L4D2] Adrenaline Reload (v.1.0.1)
    Reply With Quote #4

    To clarify, if you turn on l4d_adren_use_on, you need to pop the Adrenaline to get the boost. If it's off, you don't need to use Adrenaline. You always get the boost. At least that's what I think you're asking me O_O
    Dusty1029 is offline
    marvel
    BANNED
    Join Date: Dec 2009
    Old 03-27-2010 , 13:25   Re: [L4D2] Adrenaline Reload (v.1.0.1)
    Reply With Quote #5

    Quote:
    Originally Posted by Dusty1029 View Post
    To clarify, if you turn on l4d_adren_use_on, you need to pop the Adrenaline to get the boost. If it's off, you don't need to use Adrenaline. You always get the boost. At least that's what I think you're asking me O_O
    I figured that wehn l4d_adren_use_on = 0 (like I have it) you would only get the boost when you have adrenaline in your inventory, when you then use it or you don't carry it the boost should disappear.

    Can you make it like that?
    marvel is offline
    Dusty1029
    Junior Member
    Join Date: Mar 2010
    Old 03-28-2010 , 02:59   Re: [L4D2] Adrenaline Reload (v.1.0.2)
    Reply With Quote #6

    Updated to version 1.0.2
    Dusty1029 is offline
    marvel
    BANNED
    Join Date: Dec 2009
    Old 03-28-2010 , 09:14   Re: [L4D2] Adrenaline Reload (v.1.0.2)
    Reply With Quote #7

    Thanks, works perfectly! Now survivors have a better chance with the adrenaline and it's of great use together with the incapped medsmunch plugin!
    marvel is offline
    siangc
    Senior Member
    Join Date: Mar 2010
    Old 03-28-2010 , 13:20   Re: [L4D2] Adrenaline Reload (v.1.0.2)
    Reply With Quote #8

    I love this plugin, but can you please make a cvar to control if its gonna advertise itself? Also, just an idea, make a cvar to control the firerate.

    edit:
    it doesn't seem to react to any of the current cvars, I set it to not give adrenaline at each start, but still it does..:/
    also the speed rate doesn't seem to be affected. they don't need sm_cvar infront of them do they?

    Last edited by siangc; 03-28-2010 at 17:22.
    siangc is offline
    Dusty1029
    Junior Member
    Join Date: Mar 2010
    Old 03-28-2010 , 20:35   Re: [L4D2] Adrenaline Reload (v.1.0.2)
    Reply With Quote #9

    Customizations should be located in ...\cfg\sourcemod\l4d2_adren_reload.cfg

    Edit the values there

    EDIT: Just tested it with the adren on. Yeah it's giving Adrenaline at round start even when it's off. I'll see if I can fix it ASAP. Gonna be busy for the next few days

    EDIT2: Uploaded version 1.0.3

    Last edited by Dusty1029; 03-28-2010 at 21:39. Reason: Testing
    Dusty1029 is offline
    Jo-Barf_Creepy
    Member
    Join Date: Mar 2010
    Location: Denmark
    Old 03-30-2010 , 21:26   Re: [L4D2] Adrenaline Reload (v.1.0.3)
    Reply With Quote #10

    I love the idea! Thanks.

    Edit:I lowered the rate since I think your reloading a bit too fast this way.

    Last edited by Jo-Barf_Creepy; 04-06-2010 at 11:45.
    Jo-Barf_Creepy is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 10:35.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode