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

[L4D2] Varying Ammunition Reserves (1.5.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TimeShift
Member
Join Date: Aug 2009
Plugin ID:
1630
Plugin Version:
1.5.3
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    26 
    Plugin Description:
    Randomizes the amount of ammunition stored in guns picked up in the map
    Old 04-29-2010 , 20:19   [L4D2] Varying Ammunition Reserves (1.5.3)
    Reply With Quote #1

    This is a modified version adapted to Left 4 Dead 2! The original one was made by Luke Penny (Thread)

    This plugin will help add some realism and variety to Left 4 Dead 2, by randomizing the amount of ammunition in the guns around the map, as well as right away when you start in the saferoom.

    An automatic CFG file is created under "cfg/sourcemod" folder, with all the cvars with their default values.

    CVARs:
    l4d_varyingammo_version - Version of the plugin

    l4d_huntingrifleammo_min - Min Hunting Rifle ammo variation (Def: 150)
    l4d_huntingrifleammo_max - Max Hunting Rifle ammo variation (Def: 90)

    l4d_shotgunammo_max - Max shotgun ammo variation (pump and chrome) (Def: 56)
    l4d_shotgunammo_min - Min shotgun ammo variation (pump and chrome) (Def: 32)

    l4d_rifleammo_max - Max rifles ammo variation (M16, AK-47, Desert and SG552) (Def: 360)
    l4d_rifleammo_min - Min rifles ammo variation (M16, AK-47, Desert and SG552) (Def: 180)

    l4d_autoshotammo_max - Max autoshotgun ammo variation (Def: 90)
    l4d_autoshotammo_min - Min autoshotgun ammo variation (Def: 30)

    l4d_smgammo_max - Max SMG ammo variation (Silenced, MP5 and Normal SMG) (Def: 650)
    l4d_smgammo_min - Min SMG ammo variation (Silenced, MP5 and Normal SMG) (Def: 300)

    l4d_sniperammo_max - Max Sniper Rifle ammo variation (AWP, Scout, Military) (Def: 180)
    l4d_sniperammo_min - Max Sniper Rifle ammo variation (AWP, Scout, Military) (Def: 70)

    l4d_glammo_max - Max Grenade Launcher ammo variation (Def: 30)
    l4d_glammo_min - Min Grenade Launcher ammo variation (Def: 15)

    l4d_m60ammo_max - Max M60 ammo variation (Def: 150)
    l4d_m60ammo_min - Min M60 ammo variation (Def: 50)

    Changelog:
    1.0.0 - First release
    1.3.0 - Added M60 support and added cvar to change timer interval
    1.4.0 - Added game check
    1.5.0 - Added support for Gun Control M60 ammo control cvar (Thanks birno for the idea)
    1.5.1 - Added total support for Gun Control
    1.5.2 - Added pistols support (EXCEPT FOR MAGNUM)
    1.5.3 - Removed pistol support and timer cvar

    Thanks to AtomicStryker because of his plugin Gun Control, I got the function to change M60 ammunition from his plugin.

    Suggestions are welcome as replies or PMs.
    Attached Files
    File Type: sp Get Plugin or Get Source (L4D2VaryingAmmo.sp - 4966 views - 7.8 KB)

    Last edited by TimeShift; 05-01-2010 at 23:19.
    TimeShift is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-29-2010 , 21:35   Re: [L4D2] Varying Ammo
    Reply With Quote #2

    I love this plugin because it make the game becoming more realistic. Maybe you can add modification of css weapons such as awp,scout,mp5 or something like that
    chris1701 is offline
    TimeShift
    Member
    Join Date: Aug 2009
    Old 04-29-2010 , 21:58   Re: [L4D2] Varying Ammo
    Reply With Quote #3

    Quote:
    Originally Posted by chris1701 View Post
    I love this plugin because it make the game becoming more realistic. Maybe you can add modification of css weapons such as awp,scout,mp5 or something like that
    For this you can install this plugin
    http://forums.alliedmods.net/showthread.php?t=114296
    TimeShift is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-29-2010 , 22:00   Re: [L4D2] Varying Ammo
    Reply With Quote #4

    Quote:
    Originally Posted by TimeShift View Post
    For this you can install this plugin
    http://forums.alliedmods.net/showthread.php?t=114296

    I mean randomize the ammunition of css weapons.
    chris1701 is offline
    TimeShift
    Member
    Join Date: Aug 2009
    Old 04-29-2010 , 22:04   Re: [L4D2] Varying Ammo
    Reply With Quote #5

    Quote:
    Originally Posted by chris1701 View Post
    I mean randomize the ammunition of css weapons.
    Oh! Im going to do this

    EDIT:

    Gonna do this tomorrow, ok? Have to sleep now
    TimeShift is offline
    paradinon
    Junior Member
    Join Date: Apr 2010
    Old 04-29-2010 , 22:20   Re: [L4D2] Varying Ammunition Reserves
    Reply With Quote #6

    Good plugin Great Job!
    paradinon is offline
    birno
    Senior Member
    Join Date: Mar 2010
    Old 04-30-2010 , 02:43   Re: [L4D2] Varying Ammunition Reserves
    Reply With Quote #7

    Thank you very much!
    I love this plugin.

    Maybe add M60 randomize?
    birno is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-30-2010 , 03:32   Re: [L4D2] Varying Ammunition Reserves
    Reply With Quote #8

    Quote:
    Originally Posted by birno View Post
    Thank you very much!
    I love this plugin.

    Maybe add M60 randomize?

    I think m60 is different from other primary weapons since it cannot reload and is disposable.
    chris1701 is offline
    birno
    Senior Member
    Join Date: Mar 2010
    Old 04-30-2010 , 12:07   Re: [L4D2] Varying Ammunition Reserves
    Reply With Quote #9

    It doesn't work for me:
    Code:
    L 04/30/2010 - 18:05:27: [SM] Native "GetConVarInt" reported: Invalid convar handle 0 (error 4)
    L 04/30/2010 - 18:05:27: [SM] Displaying call stack trace for plugin "L4D2VaryingAmmo.smx":
    L 04/30/2010 - 18:05:27: [SM]   [0]  Line 100, /home/groups/alliedmodders/forums/files/5/8/5/1/9/64661.attach::GunTimer()
    chris1701: You can do M60 randomize if you use the Gun Control plugin too.
    birno is offline
    TimeShift
    Member
    Join Date: Aug 2009
    Old 04-30-2010 , 12:38   Re: [L4D2] Varying Ammunition Reserves
    Reply With Quote #10

    Quote:
    Originally Posted by birno View Post
    It doesn't work for me:
    Code:
    L 04/30/2010 - 18:05:27: [SM] Native "GetConVarInt" reported: Invalid convar handle 0 (error 4)
    L 04/30/2010 - 18:05:27: [SM] Displaying call stack trace for plugin "L4D2VaryingAmmo.smx":
    L 04/30/2010 - 18:05:27: [SM]   [0]  Line 100, /home/groups/alliedmodders/forums/files/5/8/5/1/9/64661.attach::GunTimer()
    chris1701: You can do M60 randomize if you use the Gun Control plugin too.
    Fixed!

    In next version (1.2.0) going to do CSS weapons variation =)

    EDIT:

    CSS weapons are included in the weapon types that the plugin already changes.

    You can't set a variation to each weapon, only to a group of weapons, here is the group's list:

    - Rifles: SG552, Desert, M16, AK-47
    - Hunting Rifle
    - Sniper: AWP, Scout, Military
    - SMG: MP5, Silenced, Normal SMG

    The names on bold are the CSS weapons.

    Last edited by TimeShift; 04-30-2010 at 12:54.
    TimeShift 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 07:03.


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