Garry's Mod

Garry's Mod

NPC Item Drops
63 Comments
Nerfentity 27 Oct @ 3:31am 
Why do they still drop grenades? Come on dude.
CollChuuk 20 Oct @ 9:13pm 
Not, just you. Me too.
Koi 2 Jul @ 2:06pm 
is it just me or does it seem like the mod doesnt work anymore?
Sergeant Pan  [author] 12 May @ 11:45pm 
@Badger Monkey

MMod Voice Replacement
Badger Monkey 12 May @ 4:15pm 
Could you show me the mod that is changing the combine`s voice that is in the recording?
Th3TopMuglet 10 Aug, 2024 @ 5:21am 
i kinda like the simple old version but this update is ok but i have to manually make every NPC drop armor batteries
Sergeant Pan  [author] 17 Jul, 2024 @ 1:39pm 
@Th3TopMuglet

My other addon is specifically for ammo drops.
Th3TopMuglet 17 Jul, 2024 @ 1:13pm 
is there one that also includes ammo?
⍜. ⊑⏃⌰⌰⍜⍙⏃⊬ 7 Jul, 2023 @ 7:53am 
Honestly, im surprised that base gmod did not carry over an option that made it so that enemies had their vanilla drops (such as Combine dropping either small health vials or medkits and the like) and probably even more surprised that not a whole lot of people decided to do an addon like this. Although, i might take a look at that customizable loot table version.
Sergeant Pan  [author] 24 Mar, 2023 @ 2:53am 
@₡ꜻçꜻⅅꝊℜ

See the pinned discussion.
Caçador 24 Mar, 2023 @ 2:26am 
Bro please resp me! 😵‍💫
DImeBag Darrell 20 Mar, 2023 @ 6:27am 
this helps a litte bit but body looting dis combined mortherload
Caçador 11 Dec, 2022 @ 4:22pm 
???????????????????
Caçador 11 Dec, 2022 @ 4:22pm 
how do i choose a specific entity or weapon to be dropped
Sergeant Pan  [author] 13 Nov, 2022 @ 11:32pm 
@The Keeper

It should already behave this way. The items should spawn around stomach/chest height of the NPC's.

Granted I could always add in an additional command for manually adjusting the height at which the item spawns.
Roach 13 Nov, 2022 @ 9:53pm 
I do have a small request and that is to make the drops spawn around their chest so it actually falls to the ground, and also lessens the chance of the drops getting stuck underground.
TASbot 4 Nov, 2022 @ 5:21pm 
Got ya Ill test it soon and let you know if I see something
Sergeant Pan  [author] 4 Nov, 2022 @ 1:52am 
@TASbot

I'm still not seeing any errors on my end. It's entirely plausible that another addon is conflicting with this one, but that's about the best I can come up with right now.
TASbot 3 Nov, 2022 @ 9:21pm 
Nothing in particular sometimes when I kill npcs that drop weapons from the ARCCW base this happens. I only really use ARCCW Base - Urban Decay and its requirement. I play the HL2 Campaign.
Sergeant Pan  [author] 3 Nov, 2022 @ 1:23am 
@TASbot

What are you doing that causes the error? If I can replicate it myself I can figure out what the problem is and fix it.
TASbot 2 Nov, 2022 @ 6:44pm 
[NPCs drop items on death] lua/autorun/npcitemdrops.lua:97: Tried to use a NULL entity!
1. SetPos - [C]:-1
2. v - lua/autorun/npcitemdrops.lua:97
3. unknown - lua/autorun/hook_inspector.lua:229
4. FireBullets - [C]:-1
5. DoPrimaryFire - addons/[arccw] arctic's customizable weapons (base)/lua/weapons/arccw_base/sh_firing.lua:509
6. unknown - addons/[arccw] arctic's customizable weapons (base)/lua/weapons/arccw_base/sh_firing.lua:310
wheels1390 13 Jul, 2022 @ 3:17am 
K got it 👍
Sergeant Pan  [author] 13 Jul, 2022 @ 1:08am 
@wheels1390

Yes.
wheels1390 12 Jul, 2022 @ 11:54pm 
in order for npcs to drop armor plates do I need to have the armor plates replace battery command enabled?
TASbot 12 May, 2022 @ 4:45pm 
Haven't tried it out yet but I just want you to know you really are that nigga for at least looking into problems and fixing it.
Sergeant Pan  [author] 12 May, 2022 @ 2:53pm 
@ゼツボ | TASbot

Updates out, should work properly now.
Sergeant Pan  [author] 12 May, 2022 @ 1:58pm 
@ゼツボ | TASbot

Yeah there's definitely something wrong here, no idea what though.

I'll have to do some troubleshooting and see if I can figure it out.
TASbot 12 May, 2022 @ 1:57pm 
lol wait no nvm now it only works for zombies still not combine
TASbot 12 May, 2022 @ 1:55pm 
Nvm I think I am fucking retarded. I am using this other version now and it seems to work.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2552030588
TASbot 12 May, 2022 @ 1:47pm 
Sometimes when NPCs drop the stimshot as the stimshots replace the health vials, even when I pick them up off of combine they do not come to my stim option select menu. Though if they replace naturally like a healthshot being in a supply crate or something then they do work. This is the specific one I am using.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2768779947
Sergeant Pan  [author] 12 May, 2022 @ 1:42pm 
@ゼツボ | TASbot

What exactly is the issue? Because on my end it works perfectly fine.
TASbot 12 May, 2022 @ 1:26pm 
Can you fix the ARCCW stim shots, the npcs will drop them however if I pick them up they wont be there for me to select.
Arsonaut 30 Apr, 2022 @ 11:41pm 
YEEESSS
Andrew Turner 15 Apr, 2022 @ 9:17pm 
k
Sergeant Pan  [author] 14 Apr, 2022 @ 7:51am 
Update is out. It shouldn't cause problems anymore, and includes two additional commands.
Sergeant Pan  [author] 14 Apr, 2022 @ 7:27am 
@Cursed Hawkins

Citizens not dropping anything is intentional because of how I coded the addon, but I can add support for more than just Combine.
Cursed Hawkins 14 Apr, 2022 @ 7:26am 
@Sergeant
Also, could you see if there's anything to make all NPCs drop items? I noticed that allies like Citizens don't drop anything, same with Stalkers, it made my tests be excluded to Citizens because your mod works perfectly fine with the Combine soldiers even with those linked mods which is why I thought there was a bug at first.
Sergeant Pan  [author] 14 Apr, 2022 @ 7:20am 
@Cursed Hawkins

I figured as much. Those addons replace the armor and health vial entities, which results in the game freaking out. It's easy enough to patch though, I can just make a quick workaround.
Cursed Hawkins 14 Apr, 2022 @ 7:18am 
Same story with the syringes for the same base, their spawning out in the grass.
Cursed Hawkins 14 Apr, 2022 @ 7:15am 
Ok I think I found what it was, and I'm on the fence because you mentioned model swaps are fine, but I just re-enabled the mod that turns the armor batteries into armor pieces for the VManip base and their spawning out in the grass.
Sergeant Pan  [author] 14 Apr, 2022 @ 7:01am 
@Cursed Hawkins

The best you can do right now is start disabling and re-enabling addons until the issue no longer occurs.
Cursed Hawkins 14 Apr, 2022 @ 6:57am 
Then I don't know what could be causing it, because I even tested to see if the "keep corpses" was causing it and it wasn't, plus the loot bodies mod requires that feature to be on in order to function, unless the "better keep corpses" mod could be causing it because it's affecting the bodies so NPCs don't get caught on them and die on them stupidly because the ragdoll freaked the fuck out.
Sergeant Pan  [author] 14 Apr, 2022 @ 6:52am 
@Cursed Hawkins

If you have any addons that have to do with replacing/altering the entities themselves (model reskins are fine) or changing NPC death behavior they might have some odd conflicts. Otherwise I can't really do much.
Cursed Hawkins 14 Apr, 2022 @ 6:34am 
@Sergeant
Yeah it may have to be this version because I disabled the other loot mod I have (which just allows you to loot bodies for ammo) but aside from the items dropping at the body their also still spawning in the same place.
Cursed Hawkins 14 Apr, 2022 @ 6:27am 
Workshop version.
Sergeant Pan  [author] 13 Apr, 2022 @ 10:47pm 
@Cursed Hawkins

I tested the addon on my end and had no issues. I've seen this kind of problem before, but it shouldn't be happening with this one. Conflicting addons are one possibility I can think of.

Also, are you using the workshop version or the alternative in the discussion tab.
Cursed Hawkins 13 Apr, 2022 @ 4:04pm 
So there seems to be a weird bug with this mod, as its straight up spawning items in a specific spot of the map. Like right now I just killed a Combine Soldier and it dropped a medkit, I turn around and find a battery and health vial in the grass in front of the spawn.
Taberone 12 Apr, 2022 @ 3:32pm 
Can you make a mod to disable Metropolice dropping health vials by default?
Andrew Turner 11 Apr, 2022 @ 11:47pm 
you are a nice man and i love ya