Infinite Ammo for L4D2.
This plugin gives admins more options for infinite ammo.
Command:
REQUIRES Admin Ban - l4d2_iammo <user id | name | @all> <0 | 1> - Gives or removes infinite ammo to a player.
Cvar: l4d2_iammo_enable <0|1|2> Enable Infinite Ammo? 0=Off 1=On 2=Everyone l4d2_iammo_gl <0|1|2> Allow infinite ammo on grenade launcher? 0=Off 1=On 2=Only l4d2_iammo_m60 <0|1|2> Allow infinite ammo on the M60? 0=Off 1=On 2=Only l4d2_iammo_chainsaw <0|1|2> Allow infinite ammo on the chainsaw? 0=Off 1=On 2=Only l4d2_iammo_throwables <0|1|2> Allow Infinite Ammo on Throwables? 0=Off 1=On 2=Only l4d2_iammo_upgradeammo <0|1> Allow Infinite Explosive and Incendiary Ammo? 0=Off 1=On l4d2_iammo_meds <0|1|2> Allow Infinite Ammo on Medkits? 0=Off 1=On 2=Only l4d2_iammo_defibs <0|1|2> Allow Infinite Ammo on Defibrillators? 0=Off 1=On 2=Only l4d2_iammo_pills <0|1|2> Allow Infinite Ammo on Pills? 0=Off 1=On 2=Only l4d2_iammo_shots <0|1|2> Allow Infinite Ammo on Shots? 0=Off 1=On 2=Only l4d2_admin_override <0|1> Admins with infinite ammo always have all settings enabled? 0=Off 1=On
Changelog:
1.0
- Release
1.1
- Made the cvar work as intended.
1.2
- Bug fixes, can use command in console.
1.3
- Fixed clip sizes on some weapons not being correct.
- Fixed issue with infinite ammo not staying on mapchange.
1.4
- Added M60 Support
- Added new convars for disabling certain weapons
1.5
- Added Throwables and Upgrade Ammo Cvars.
- Updated Cvar options to make only certain weapons have Infinite Ammo.
- Swapped OnGameFrame for Weapon Fire Events (Better Performance)
- I renamed the cmds and cvars from sm_ to l4d2_, the new config file will be named l4d2_iammo_config. You may delete the sm_iammo_config.
1.5.1
- Extra Error Checking/Bug Fixes
1.5.5
- Added support for medkits, defibs, pills and shots
- Added Adminmenu support
- Removed config load/save, just use the adminmenu
Last edited by Machine; 04-03-2013 at 21:42.
Reason: Updated to v1.5.5