Garry's Mod

Garry's Mod

Dynamic Resupply Entity
44 Comments
Nasty Ned  [author] 7 Jul, 2021 @ 10:18pm 
No harm done! And thank you.
miltank 7 Jul, 2021 @ 9:31pm 
yeah I used it and found that out :P
I wasn't paying attention and miss read the description

keep up the good work
Nasty Ned  [author] 7 Jul, 2021 @ 9:03pm 
It will only supply the held weapon. I can't justifiably make an addon that reads every possible ammotype a player could use in any case. I'm just not that good at Lua.
miltank 7 Jul, 2021 @ 8:19pm 
could you make a setting so you can choose between resupplying held weapon and all weapons
if not that's fine as well
for me filling a health swep's ammo isn't vary challenging :P (just seeing how long I can survive)
Nasty Ned  [author] 24 Mar, 2021 @ 11:10am 
All right. Lemme know if you run into any other issues.
Splyntas 24 Mar, 2021 @ 10:51am 
Thanks for the quick response, it works just fine now.
Nasty Ned  [author] 24 Mar, 2021 @ 10:21am 
Okay, I've done a little research. Looks like I was originally doing testing with Zombie Extinguisher's Equipped Weapon Addon, which means this mod apparently requires that!

I've added it to required items. It should work just fine as long as that's installed.
Splyntas 24 Mar, 2021 @ 6:28am 
There's some kind of error when I use it:

[Dynamic Resupply Entity] lua/entities/loot_ammo/shared.lua:110: attempt to index global 'weapon' (a nil value)
1. unknown - lua/entities/loot_ammo/shared.lua:110

It doesn't give me any ammo, just an error message. Disabled all other addons, tried with HL2 Pistol. Pretty neat it's an actual physical prop now, though.
Nasty Ned  [author] 23 Mar, 2021 @ 8:20pm 
All that bluster about not being the person to ask about updating this addon, and there I go, just... doing all of that stuff I said I wouldn't.

Does this mean that I was lazy, or that I was just a hypocrite?
Why not both?

In all seriousness, hope you all enjoy the update.
Niko 14 Jan, 2021 @ 8:46pm 
I hope theres a rare chance for a cat to come out of the ammo box and kill a citizen and then a message in the chat says 'Cat has been banned for RDM'
Nasty Ned  [author] 14 Jan, 2021 @ 8:43pm 
I did. With extensive help, but ye, it's mine.
Niko 14 Jan, 2021 @ 4:32am 
hang on a small minute I had no idea you made this lmao
Nasty Ned  [author] 1 Feb, 2020 @ 6:06pm 
Probably.
The Darkened Soul 1 Feb, 2020 @ 5:37pm 
Damn bro. Sounds like that'd be more trouble than it's worth, honestly.
Nasty Ned  [author] 1 Feb, 2020 @ 1:16pm 
I made this addon back in 2015. I barely understood Lua at the time, and had to get help from Zombie Extinguisher for it. I've forgotten everything he showed me since then, and I don't have the files anymore. So, I'm probably the least equipped person to ask about this.

If you want a fully physics-based entity you can weld and stuff, I think the thing to do is get someone to remake the addon from the ground up.
The Darkened Soul 1 Feb, 2020 @ 7:35am 
Damn.
Nasty Ned  [author] 30 Jan, 2020 @ 7:18pm 
Not with my lua knowledge, unfortunately.
The Darkened Soul 30 Jan, 2020 @ 7:29am 
Any way to make an ammo box version of this that can be welded onto vehicles and props?

I'd love to make a resupply vehicle.
Nasty Ned  [author] 25 Aug, 2019 @ 3:08pm 
Yes, it is. Basically it's just a box that you can spam E on for free ammo for the gun you have in your hand.
jcb_ 2 Aug, 2019 @ 9:26am 
So this is kind of like Universal Ammo?
Tyson Latchford 🎃 13 Feb, 2018 @ 5:43am 
really helped thx m8
Tyson Latchford 🎃 13 Feb, 2018 @ 5:42am 
sup finally someone made an addon for :gmod:mod where you can resupply that fast
SpecyJ 31 Jan, 2018 @ 12:12am 
This looks promising. I have to wonder how this compares to other the other ammo supply addons I've tried. Ones like the V92 Joker Ammo vending machine give 15 rounds each use and offer supplies for secondary ammo such as AR2 combine orbs when holding shift. Any features other than adaptable ammo I should know about?
Ryuko 4 Mar, 2017 @ 5:54am 
Thank you so much!
Lil Boat 28 Aug, 2016 @ 11:37am 
You don't know how many times this has saved my life
Mr Mage 25 Jun, 2016 @ 9:17pm 
12/10 that's all I can say
Kaiser_Of_Aldi 22 Mar, 2016 @ 1:10pm 
yees yees indeed >:)
Dain5000 9 Mar, 2016 @ 3:25am 
yes i can make a camping spot in sandbox
Kaiser_Of_Aldi 2 Jan, 2016 @ 6:14am 
exeedingly useful for CW2.0 weps that come with piddley ammounts of ammo
Riskavich99 5 Dec, 2015 @ 8:56am 
This is really cool. Now I finally have a way to resupply my custom weapons. :)
Nasty Ned  [author] 8 Sep, 2015 @ 7:36am 
I know what you mean. Though functionally, it's less like ammo drops and more like the ammo bag deployables, just with an unlimited number of uses.
Samuel Sand-ass Rash-hole 8 Sep, 2015 @ 2:08am 
This reminds me of the little ammo drops from Payday 2
Nasty Ned  [author] 3 Sep, 2015 @ 10:12am 
Yeah. I liked the concept of the ammo crates from CW2.0 and FA:S2, in that they would resupply whatever gun you had, but I wasn't fond of the fact that they would disappear after a given number of resupplies. Which is why I made this.
Cédric GÉRILLE [GiletJaune] 2 Sep, 2015 @ 9:46pm 
It's sort of an ammo crate finally. :-P
Sam S. Shadowfall 2 Sep, 2015 @ 9:34pm 
and that you said that you are gonna be spammed with "make a command so I can change the min and max" XD
Sam S. Shadowfall 2 Sep, 2015 @ 9:33pm 
lol ohh you broke my dream of being desperate for ammo and getting only one bullet D;
Nasty Ned  [author] 2 Sep, 2015 @ 9:18pm 
It gives a minimum of 10 bullets, and a maximum of 35. This way, you at least get enough ammo to pull off a desperate kill with most weapons.
Sam S. Shadowfall 2 Sep, 2015 @ 8:58pm 
ammo wut I meant bullet XD
Sam S. Shadowfall 2 Sep, 2015 @ 8:55pm 
lol just though of something if it is random and you need ammo BAD like 0/0 and it gives you 1 ammo how unlucky do you have to be XD
Sam S. Shadowfall 2 Sep, 2015 @ 4:47pm 
lol me to if I had an addon I would update it once a month XD
Nasty Ned  [author] 2 Sep, 2015 @ 4:45pm 
For now I'm content with just giving a random amount of ammo. Honestly, there will always be people that want the mod to be different. Even if I do add +1mag functions to it, then people are going to want console commands for how many mags you get, and so on and so forth. Just having a simple random amount given is good enough for me. And I don't often have much time to update my stuff anyway, since I'm a lazy little SOB.
Sam S. Shadowfall 2 Sep, 2015 @ 4:36pm 
hmm I was looking for something like this (except it was a tool) but I guess this will work

also (PPI) how do you expect that to work with the CW 2.0's mag system?
169PD 1 Sep, 2015 @ 12:06pm 
I think it would be best if this thing gave an amount of ammo that is relative to the clip size of the weapon in the player's hands. (I.E. a weapon with a 30 round clip would receive enough ammo for one clip) Just a suggestion.
Nasty Ned  [author] 31 Aug, 2015 @ 3:49pm 
FA:S2 has some entities that work just like this, but they have a limited supply. It even has a SWEP that lets you throw small ammo boxes.