Ammo Crate SWEP

If you liked this item, please rate it up on Steam Workshop page.

Author: ljkhgcffewte

Last revision: 9 Feb at 15:57 UTC

File size: 58.7 KB

On Steam Workshop

Description:

This addon adds a portable ammo crate that replenishes your ammunition based on the weapon you’re holding. It works best with weapons using standard ammo types but will also resupply custom ammo from other addons.

Usage:

Item is located in the "Other" tab. Left-click to drop the ammo crate onto the ground. Interacting with the crate will refill the ammo for the weapon currently held by the player.

If you admin, you can add your own ammo types and adjust default ammo, type ammocrate_menu in console for open configuration panel

Ammo Resupply Amounts:

– Pistol rounds – 150
– Revolver rounds – 18
– SMG rounds – 225
– AR2 (pulse) rounds – 120
– Shotgun shells – 60
– Crossbow bolts – 30
– Grenades – 3
– RPG rockets – 3
– SMG grenade – 3
– All other ammo types – 120

Important Notes:

1. Crate will be deleted after 60 second, if nobody pick it up

2. If the server enforces an ammo limit lower than the resupply amount defined in this addon (<225), the crate will still function, but ammo will not be refilled beyond the server’s configured

3. Adjust values from ammocrate_menu interface

I uploaded code of this addon on Github, feel free to change and reupload with it

https://github.com/P4rket/Ammo-Crate-SWEP