Garry's Mod

Garry's Mod

202 ratings
NPCs / Players drop ammo on death
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
27.454 KB
Jul 5, 2019 @ 10:03am
Oct 16, 2023 @ 9:20am
31 Change Notes ( view )

Subscribe to download
NPCs / Players drop ammo on death

Description
Console Commands

ChanceOfAmmo Chance of ammo drops. ( Default is 100, value determines chances. 50 = 50% chance etc. Affects both NPC and player chances. )

NPCDropAmmo Should NPCs drop ammo. ( 1 = Yes 0 = No. Default is 1 )

NPCDropAltAmmo Should NPCs drop secondary ammo. ( 1 = Yes 0 = No. Default is 1 )

PlayerDropAmmo Should Players drop ammo. ( 1 = Yes 0 = No. Default is 1 )

PlayerDropAltAmmo Should Players drop secondary ammo. ( 1 = Yes 0 = No. Default is 1 )

DisableNPCWeaponDrop Prevent NPC's from dropping their weapons. ( 1 = Yes 0 = No. Default is 0 )

These options and more can be found under the 'NPC Drops' tab under settings.

What does it do?

When an NPC is killed, they will drop ammo depending on the options chosen by the player. Ammo types are based on HL2 ammo types (Pistol ammo, 357 ammo, SMG1 ammo etc.)

To modify these options, use the Ammo Drop Settings menu found under the NPC Drops tab.

If you are using ArcCW's "Replace default HL2 entities" command, this addon will automatically convert to ArcCW's custom ammo entities.
Popular Discussions View All (1)
0
Aug 5, 2019 @ 6:46am
PINNED: Incase you want to create your own version
Sergeant Pan
68 Comments
Sergeant Pan  [author] Jan 6 @ 11:04pm 
@WolfOS

That means you have an addon that is replacing the default HL2 ammo entities. If you're using something like Total Replacer to replace the ammo with something else then that is the source of the issue.
M. Winters Jan 6 @ 3:16pm 
There's a weird bug with this addon, im not sure what exact concoction causes it to occur, but anytime i kill an enemy, some random spot on the map will eject a stack of ammo, typically of every single ammo type to exist in base game Half Life 2.
Sergeant Pan  [author] Dec 31, 2023 @ 11:40am 
@Th3TopMuglet

Any NPC with a weapon that uses base HL2 ammo should work fine. I haven't tested this with VJ Base but there shouldn't be any problems.
Th3TopMuglet Dec 31, 2023 @ 9:58am 
does this work on VJ base npcs
Ronnie1001 Oct 16, 2023 @ 8:54am 
Yes but that applies to all combine soldiers, not just the elites.
In HL2 only elites drop the AR2 orbs
Sergeant Pan  [author] Oct 15, 2023 @ 11:54pm 
@Ronnie1001

There's an option in Ammo Drop Settings to make only Combine Soldiers drop AR2 Orbs. It's under the "Disable AR2 Orb Drops" option.
Ronnie1001 Oct 15, 2023 @ 3:22pm 
Sorry to ask something again but could you add a config to make only elites drop ar2 orbs (Like in hl2)
Ronnie1001 Oct 14, 2023 @ 12:43am 
I see, thanks for responding, its a bit annoying but more pistol ammo never hurt I suppose :steamhappy:
Sergeant Pan  [author] Oct 14, 2023 @ 12:40am 
@Ronnie1001

If the weapons don't have ammo types defined then there's not much I can do. There's no real way to disable it, other than disabling pistol ammo drops (which affects all weapons.) Making a whole system for weapon-specific drops is beyond my capabilities.
Ronnie1001 Oct 13, 2023 @ 11:32pm 
Npcs that have custom weapons default to dropping pistol ammo, could you disable this or possibly make it so that you can set what custom weapons drop which type of ammo?