Garry's Mod

Garry's Mod

NPC Item Drops
64 kommenttia
grrrrr 9.11. klo 5.35 
Hello I really love this addon. I made NPCs drop food with the edible food mod and I can recover health from it, it's like a survival game :) thank you for your great work :)
Nerfentity 27.10. klo 3.31 
Why do they still drop grenades? Come on dude.
CollChuuk 20.10. klo 21.13 
Not, just you. Me too.
Koi 2.7. klo 14.06 
is it just me or does it seem like the mod doesnt work anymore?
Sergeant Pan  [tekijä] 12.5. klo 23.45 
@Badger Monkey

MMod Voice Replacement
Badger Monkey 12.5. klo 16.15 
Could you show me the mod that is changing the combine`s voice that is in the recording?
Th3TopMuglet 10.8.2024 klo 5.21 
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  [tekijä] 17.7.2024 klo 13.39 
@Th3TopMuglet

My other addon is specifically for ammo drops.
Th3TopMuglet 17.7.2024 klo 13.13 
is there one that also includes ammo?
⍜. ⊑⏃⌰⌰⍜⍙⏃⊬ 7.7.2023 klo 7.53 
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  [tekijä] 24.3.2023 klo 2.53 
@₡ꜻçꜻⅅꝊℜ

See the pinned discussion.
Caçador SKINS 24.3.2023 klo 2.26 
Bro please resp me! 😵‍💫
DImeBag Darrell 20.3.2023 klo 6.27 
this helps a litte bit but body looting dis combined mortherload
Caçador SKINS 11.12.2022 klo 16.22 
???????????????????
Caçador SKINS 11.12.2022 klo 16.22 
how do i choose a specific entity or weapon to be dropped
Sergeant Pan  [tekijä] 13.11.2022 klo 23.32 
@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.11.2022 klo 21.53 
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.11.2022 klo 17.21 
Got ya Ill test it soon and let you know if I see something
Sergeant Pan  [tekijä] 4.11.2022 klo 1.52 
@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.11.2022 klo 21.21 
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  [tekijä] 3.11.2022 klo 1.23 
@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.11.2022 klo 18.44 
[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.7.2022 klo 3.17 
K got it 👍
Sergeant Pan  [tekijä] 13.7.2022 klo 1.08 
@wheels1390

Yes.
wheels1390 12.7.2022 klo 23.54 
in order for npcs to drop armor plates do I need to have the armor plates replace battery command enabled?
TASbot 12.5.2022 klo 16.45 
Haven't tried it out yet but I just want you to know you really are that ♥♥♥♥♥ for at least looking into problems and fixing it.
Sergeant Pan  [tekijä] 12.5.2022 klo 14.53 
@ゼツボ | TASbot

Updates out, should work properly now.
Sergeant Pan  [tekijä] 12.5.2022 klo 13.58 
@ゼツボ | 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.5.2022 klo 13.57 
lol wait no nvm now it only works for zombies still not combine
TASbot 12.5.2022 klo 13.55 
Nvm I think I am ♥♥♥♥♥♥♥ retarded. I am using this other version now and it seems to work.

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2552030588
TASbot 12.5.2022 klo 13.47 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2768779947
Sergeant Pan  [tekijä] 12.5.2022 klo 13.42 
@ゼツボ | TASbot

What exactly is the issue? Because on my end it works perfectly fine.
TASbot 12.5.2022 klo 13.26 
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.
Long "Long John" Johnson 30.4.2022 klo 23.41 
YEEESSS
Andrew Turner 15.4.2022 klo 21.17 
k
Sergeant Pan  [tekijä] 14.4.2022 klo 7.51 
Update is out. It shouldn't cause problems anymore, and includes two additional commands.
Sergeant Pan  [tekijä] 14.4.2022 klo 7.27 
@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.4.2022 klo 7.26 
@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  [tekijä] 14.4.2022 klo 7.20 
@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.4.2022 klo 7.18 
Same story with the syringes for the same base, their spawning out in the grass.
Cursed Hawkins 14.4.2022 klo 7.15 
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  [tekijä] 14.4.2022 klo 7.01 
@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.4.2022 klo 6.57 
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 ♥♥♥♥ out.
Sergeant Pan  [tekijä] 14.4.2022 klo 6.52 
@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.4.2022 klo 6.34 
@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.4.2022 klo 6.27 
Workshop version.
Sergeant Pan  [tekijä] 13.4.2022 klo 22.47 
@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.4.2022 klo 16.04 
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.4.2022 klo 15.32 
Can you make a mod to disable Metropolice dropping health vials by default?