Raised This Month: $255 Target: $400
 63% 

Notices

[L4D2] Adrenaline & Pills Powerups (v. 2.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dusty1029
Junior Member
Join Date: Mar 2010
Plugin ID:
1681
Plugin Version:
2.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    On the use of Adrenaline & Pain Pills, various actions are performed faster (Reloading, weapon firing, and melee swinging)
    Old 05-22-2010 , 01:18   [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #1

    [L4D2] Adrenaline & Pills Powerups
    Introduction
    This Plugin was originally developed in a response that Adrenaline should have more than just having faster channeling times, no melee cooldowns, etc.

    Originally developed over here, I was still learning how to script efficiently. But some personal issues cropped up in my life that led me to unable to lead a good first impression (Not to mention a challenge to figure out how to reformat that page too!).

    Now that I have somewhat learned how to script a little bit better, I decided to expand over on this plugin and hopefully impress you guys once again.

    Descriptions (and features)
    - Using the Adrenaline guarentees faster reloading, weapon firing, and melee swinging rates
    - Using the Pain Pills grants the boosts on a probability scale (customizable)
    - Multiple ConVars to tweek to any server needs

    Installation
    - Click on the Get Plugin at the bottom of the post and place 'l4d(2)_powerups_rush.smx' into your ...addons\sourcemod\plugins directory
    - Alternatively, you can also click on the Get Source at the bottom of the post and compile it yourself

    Admin Commands
    sm_giveadren - Give Adrenaline to everybody
    sm_givepills - Give Pain Pills to everybody
    sm_giverandom - Give either Adrenaline or Pain Pills to everybody

    ConVars (Edit most configurations in your ...cfg\sourcemod\l4d2_powerups_rush.cfg directory)
    l4d_powerups_rush_version - 2.0.1
    The version of the Power Ups Plugin
    l4d_powerups_plugin_on - 1
    Is the Plugin active? (1 = ON 0 = OFF)
    l4d_powerups_broadcast_on - 1
    Should players be notified when connecting to the server about the powerups? (1 = ON 0 = OFF)
    l4d_powerups_broadcast_type - 1
    How are players notified? (0 = CHAT 1 = HINT 2 = BOTH)
    l4d_powerups_use_on - 1
    Should players use adrenaline (or pills) to get super reload, weapon firing, and melee swings? (1 = ON 0 = OFF)
    l4d_powerups_adren_give_on - 0
    Should players be given adrenaline at round start? (1 = ON 0 = OFF)
    l4d_powerups_pills_give_on - 0
    Should players be given pills at round start? (1 = ON 0 = OFF)
    l4d_powerups_random_give_on - 0
    Should players be given either adrenaline or pills at round start? (1 = ON 0 = OFF)
    l4d_powerups_duration - 20
    How long should the duration of the boosts last?
    l4d_powerups_pills_luck - 3
    The luck factor for swallowing pills that will grant the boost(s). (1 = 1/1 2 = 1/2 3 = 1/3 4 = 1/4 etc.)
    l4d_powerups_weaponreload_rate - 0.5714
    The interval incurred by reloading is multiplied by this value (clamped between 0.2 < 0.9)
    l4d_powerups_weaponmelee_rate - 0.45
    The interval for swinging melee weapon (clamped between 0.3 < 0.9)
    l4d_powerups_weaponfiring_rate - 0.6667
    The interval between bullets fired is multiplied by this value. WARNING: a short enough interval will make SMGs' and rifles' firing accuracy distorted (clamped between 0.2 < 0.9)

    To Do
    *Find a better thread title?
    *Find better wordings for this thread
    *Clean up my coding (about 75% done)
    *Add support for which catagory Adrenaline (or Pills) affects
    (At the moment, it toggles all 3...)
    *Add support for L4D1?
    *Bug reports that anyone gives

    Credits
    tPoncho - Huge props for the fast reload, weapon firing, and melee swing codes
    hihi1210 - for the formula for multiple melee swings (Version 1.5)
    AlliedModders Wiki - for all the references
    Testers - of this Plugin
    dirka dirka - for fixing the tag mismatches

    Changelog
    Code:
    2.0.0
    *Renamed file name from l4d2_adren_reload to l4d(2)_powerups_rush
    *Renamed more various handles, floats, etc.
    *Added support for faster melee swings
    *Added ConVar for melee swing rates
    *Added support for faster weapon firing speeds
    *Added ConVar for weapon firing rates
    *Added support for pills
    *Added ConVar to toggle what are the odds you will get the boosts
    *Added support for giving Pain Pills at round start
    *Added an Admin command 'sm_givepills' to give everybody Pain Pills, anytime
     (Requires CHEATS flag)
    Added support for giving either Adrenaline or Pain Pills at round start
    *Added an Admin command 'sm_giverandom' to give everybody either Adrenaline or Pain Pills, anytime
     (Requires CHEATS flag)
    
    2.0.1
    *Fixed the Tag Mismatches
     (Thanks 'dirka dirka')!
    *Added a URL in plugin information
    *Changed the default 'l4d_powerups_weaponmelee_rate' from 0.5 to 0.45
    The rest of the changelog can be found in the source code.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d(2)_powerups_rush.sp - 6925 views - 49.7 KB)

    Last edited by Dusty1029; 06-02-2010 at 03:33. Reason: Update
    Dusty1029 is offline
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 05-22-2010 , 02:40   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.0)
    Reply With Quote #2

    tag mismatches:
    g_powerups_timeleft[] is declared as a handle, your using it as an int
    remove the handle.

    Last edited by dirka_dirka; 05-22-2010 at 02:44.
    dirka_dirka is offline
    Dusty1029
    Junior Member
    Join Date: Mar 2010
    Old 05-23-2010 , 21:45   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.0)
    Reply With Quote #3

    Quote:
    Originally Posted by dirka_dirka View Post
    tag mismatches:
    g_powerups_timeleft[] is declared as a handle, your using it as an int
    remove the handle.
    Thanks 'dirka dirka'!

    New update: Version 2.0.1 is out.
    Dusty1029 is offline
    teo265
    Junior Member
    Join Date: May 2010
    Location: Finland
    Old 06-01-2010 , 12:38   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #4

    Excellent plugin! I just love it!
    teo265 is offline
    Send a message via MSN to teo265
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 06-05-2010 , 01:24   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #5

    i see in your onpluginstart you set some global vars
    PHP Code:
    g_fl_reload_rate 0.5714;
    g_flDT_rate 0.6667
    they should be
    PHP Code:
    g_fl_reload_rate GetConVarFloat(g_h_reload_rate);
    g_flDT_rate =  GetConVarFloat(g_hDT_rate); 
    as they are now, whatever someone puts in their config file is ignored. the only way to use some other value is to change the cvar after the plugin loads.
    dirka_dirka is offline
    Urthgirl
    New Member
    Join Date: May 2011
    Location: Australia
    Old 05-18-2011 , 00:53   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #6

    Hey guys, sorry if bumping this is a no no but I need some help.

    I love this addon but there is a bug, I run a VS server and have l4d_powerups_pills_give_on set to "1"
    The very first team to play survivors on the very first map don't get pills, so I manually give them pills with sm_givepills.
    But I'm not always around to do this, any one with some experience able to help so it always gives pills the very first round?
    __________________
    Urthgirl is offline
    MasterMind420
    Veteran Member
    Join Date: Nov 2010
    Old 05-18-2011 , 07:11   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #7

    Try this...http://forums.alliedmods.net/showthread.php?p=1131184 works pretty good. Haven't tried starting with pills but I have with adrenaline and not sure if its another plugin or the mod itself but when u spawn u get adrenaline and a crap load on the ground around you...very customizable though as far as load out...good luck ;)
    MasterMind420 is offline
    Newf
    Senior Member
    Join Date: Dec 2009
    Old 09-14-2011 , 11:18   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #8

    i keep getting this error in my logs:
    L 09/13/2011 - 0935: [SM] Displaying call stack trace for plugin "l4d(2)_powerups_rush.smx":
    L 09/13/2011 - 0935: [SM] [0] Line 1406, /home/groups/alliedmodders/forums/files/7/4/0/6/7/66109.attach:T_OnGameFrame()
    L 09/13/2011 - 0935: [SM] [1] Line 1121, /home/groups/alliedmodders/forums/files/7/4/0/6/7/66109.attach::OnGameFrame()
    L 09/13/2011 - 0935: [SM] Native "GetEntDataEnt2" reported: Entity 4 (4) is invalid
    __________________
    I like to drink beer and shoot stuff. Video games are fun too i guess!
    Newf is offline
    bubbabyte
    Member
    Join Date: Jun 2010
    Old 03-13-2012 , 21:13   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #9

    As of today (for some reason) The reload/firerate have gone crazy.. no matter what i set them to, it's maxed out and i can't change it. I've restarted the server, i've removed and readded the plugin and config, same thing. I can't figure this out but would love to keep using the plugin.
    bubbabyte is offline
    ricksfishin
    Member
    Join Date: Oct 2017
    Old 02-02-2018 , 14:09   Re: [L4D2] Adrenaline & Pills Powerups (v. 2.0.1)
    Reply With Quote #10

    Works Tested. Weapons reload fast. And shoots fast.Change. l4d_powerups_duration. To Desired Time.
    Attached Files
    File Type: smx l4d(2)_powerups_rush.smx (15.3 KB, 97 views)
    File Type: sp Get Plugin or Get Source (l4d(2)_powerups_rush.sp - 168 views - 49.6 KB)
    ricksfishin is offline
    Reply


    Thread Tools
    Display Modes

    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 11:46.


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