Garry's Mod

Garry's Mod

37 ratings
Disable NPC Weapon Drops (Even on HL:S NPCs)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
4.739 KB
2 Jul, 2024 @ 2:04am
24 Jul @ 6:53am
16 Change Notes ( view )

Subscribe to download
Disable NPC Weapon Drops (Even on HL:S NPCs)

Description
Just another one of those addons that disable NPCs dropping their weapon on death, but this one extends to those Half-Life: Source NPCs by crudely removing the entity for their weapons as they die.

Regular NPCs should also not experience any changes in behavior (e.g. Rebel Medics not healing) due to their spawn flags being changed to just 8192 (overwriting any existing ones they may have) like most other similar addons do.

Extras:
- NPCs (primarily Metro-Police and Rebel Medics) can be prevented from dropping their health vials
- Combine Elites can be prevented from dropping AR2 ball when killed by a player
- Non HL:S NPCs can be made to drop their weapon's ammo pickup instead of their weapon. Currently should work with any weapon that uses default ammo types that have their respective ammo pickup entities available
- CVars (npc_nodropweapon, npc_nodropweapon_hls, npc_nodropweapon_hp, npc_nodropweapon_ball) along with tool-menu (under Options > Cure Pikachu)

Only tested in single-player so far so I can't guarantee it's effectiveness (or performance impact) in multiplayer servers. Also can not guarantee compatibility with other addons that also use the same hooks this addon uses.
5 Comments
gay-seeking rabbit 9 Jul, 2024 @ 10:23am 
nvm i just saw the screenshot, nice addon :p2cube: :steamthumbsup:
gay-seeking rabbit 9 Jul, 2024 @ 10:23am 
does this also remove combine energy balls from dropping after killing combine soldiers?
LunarKattt 6 Jul, 2024 @ 5:54am 
finally, now i can dance on a dead barney without getting a glock
Cure Pikachu  [author] 4 Jul, 2024 @ 9:21pm 
that's a good idea i can split them up
Jomok 4 Jul, 2024 @ 8:31pm 
Make a option only hl1 NPC didn't drop weapons