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

[L4D2] Explosive Ammo Enable v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Plugin ID:
1766
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Re-enables explosive ammo in vs.
    Old 06-27-2010 , 17:34   [L4D2] Explosive Ammo Enable v1.1
    Reply With Quote #1

    First off, the plugin's structure is based off guncontrol(http://forums.alliedmods.net/showthread.php?p=1020236) by AtomicStryker, so this is his coding reworked for this purpose.

    Well this is from a request by IronWarrior(http://forums.alliedmods.net/showthread.php?t=129947)

    This plugin will replace 1 incendiary ammo pack into an explosive ammo pack by a chance setting.

    CVARS:
    l4d2_eammo_chance "3" if set to 1 it will always replace I ammo with E ammo if set to 2 it will do this half the time and so on.
    l4d2_eammo_version you know what this does.

    Changelog:
    1.0 - Initial Release
    1.1 - Fixed Incendiary Ammo being replaced when gamemode was not versus or teamversus, also unnecessary coding was removed.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_eammo.sp - 2558 views - 3.9 KB)
    __________________

    Last edited by McFlurry; 07-20-2010 at 19:56.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 06-27-2010 , 17:44   Re: [L4D2] Explosive Ammo Enable
    Reply With Quote #2

    PHP Code:
        CreateConVar("l4d2_eammo_version"PLUGIN_VERSION" Version of L4D2 Gun Control on this server "DEFAULT_FLAGS|FCVAR_SPONLY|FCVAR_DONTRECORD); 
    PHP Code:
        PrintToChatAll("[GUNCONTROL] %s"buffer);
        
    PrintToConsole(0"[GUNCONTROL] %s"buffer); 
    You might want to check your copy 'n paste again.
    AtomicStryker is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 06-27-2010 , 19:49   Re: [L4D2] Explosive Ammo Enable
    Reply With Quote #3

    Fixed.

    Snip-
    __________________

    Last edited by McFlurry; 06-29-2010 at 15:56. Reason: Answered my own question.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    IronWarrior
    Veteran Member
    Join Date: Jan 2010
    Old 06-28-2010 , 19:36   Re: [L4D2] Explosive Ammo Enable
    Reply With Quote #4

    Oh awesome.

    Thank you McFlurry, will get this installed tomorrow and report back on any problems or bugs.
    IronWarrior is offline
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 03-20-2011 , 15:43   Re: [L4D2] Explosive Ammo Enable v1.1
    Reply With Quote #5

    Ehi, looks like this plugin in Dark Carnival and No Mercy causes crash!
    On No Mercy it crash loading the second map.
    On Dark Carnival, it crash loading the first map, or the third map.
    When it crash, an engine error pop up telling me that l4d2_eammo can't sobstitute incendiary ammo with explosive ammo in some places (obviously, the pop up message is more accurate, but i forget anytime to take a screenshot).

    Oh, this happened once on Dead Center loading the second map... But it happened only once in 30 tests...

    I'm using windows... Any idea?

    Paul92
    paul92 is offline
    Dont Fear The Reaper
    Member
    Join Date: Nov 2011
    Old 12-15-2011 , 12:07   Re: [L4D2] Explosive Ammo Enable v1.1
    Reply With Quote #6

    Thanks for the plugin

    I got one minor request, could you please update it so that both teams get the same ammo upgrades, meaning the chance setting only has effect on the first round and for the second round it just takes the same replacements as on the first round. And you might want to add realism versus to the game mode check, if you didn't exclude it on purpose.

    Last edited by Dont Fear The Reaper; 12-15-2011 at 12:19.
    Dont Fear The Reaper 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 06:42.


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