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.