Garry's Mod

Garry's Mod

Dynamic Resupply Entity
44 kommentarer
Nasty Ned  [ophavsmand] 7. juli 2021 kl. 22:18 
No harm done! And thank you.
miltank 7. juli 2021 kl. 21:31 
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  [ophavsmand] 7. juli 2021 kl. 21:03 
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. juli 2021 kl. 20:19 
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  [ophavsmand] 24. mar. 2021 kl. 11:10 
All right. Lemme know if you run into any other issues.
Splyntas 24. mar. 2021 kl. 10:51 
Thanks for the quick response, it works just fine now.
Nasty Ned  [ophavsmand] 24. mar. 2021 kl. 10:21 
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 kl. 6:28 
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  [ophavsmand] 23. mar. 2021 kl. 20:20 
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 kl. 20:46 
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  [ophavsmand] 14. jan. 2021 kl. 20:43 
I did. With extensive help, but ye, it's mine.
Niko 14. jan. 2021 kl. 4:32 
hang on a small minute I had no idea you made this lmao
Nasty Ned  [ophavsmand] 1. feb. 2020 kl. 18:06 
Probably.
The Darkened Soul 1. feb. 2020 kl. 17:37 
Damn bro. Sounds like that'd be more trouble than it's worth, honestly.
Nasty Ned  [ophavsmand] 1. feb. 2020 kl. 13:16 
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 kl. 7:35 
Damn.
Nasty Ned  [ophavsmand] 30. jan. 2020 kl. 19:18 
Not with my lua knowledge, unfortunately.
The Darkened Soul 30. jan. 2020 kl. 7:29 
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  [ophavsmand] 25. aug. 2019 kl. 15:08 
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 kl. 9:26 
So this is kind of like Universal Ammo?
Tyson Latchford 🎃 13. feb. 2018 kl. 5:43 
really helped thx m8
Tyson Latchford 🎃 13. feb. 2018 kl. 5:42 
sup finally someone made an addon for :gmod:mod where you can resupply that fast
SpecyJ 31. jan. 2018 kl. 0:12 
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 kl. 5:54 
Thank you so much!
Lil Boat 28. aug. 2016 kl. 11:37 
You don't know how many times this has saved my life
Mr Mage 25. juni 2016 kl. 21:17 
12/10 that's all I can say
Kaiser_Of_Aldi 22. mar. 2016 kl. 13:10 
yees yees indeed >:)
Dain5000 9. mar. 2016 kl. 3:25 
yes i can make a camping spot in sandbox
Kaiser_Of_Aldi 2. jan. 2016 kl. 6:14 
exeedingly useful for CW2.0 weps that come with piddley ammounts of ammo
Riskavich99 5. dec. 2015 kl. 8:56 
This is really cool. Now I finally have a way to resupply my custom weapons. :)
Nasty Ned  [ophavsmand] 8. sep. 2015 kl. 7:36 
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.
GavinTheHero 8. sep. 2015 kl. 2:08 
This reminds me of the little ammo drops from Payday 2
Nasty Ned  [ophavsmand] 3. sep. 2015 kl. 10:12 
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 kl. 21:46 
It's sort of an ammo crate finally. :-P
Sam S. Shadowfall 2. sep. 2015 kl. 21:34 
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 kl. 21:33 
lol ohh you broke my dream of being desperate for ammo and getting only one bullet D;
Nasty Ned  [ophavsmand] 2. sep. 2015 kl. 21:18 
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 kl. 20:58 
ammo wut I meant bullet XD
Sam S. Shadowfall 2. sep. 2015 kl. 20:55 
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 kl. 16:47 
lol me to if I had an addon I would update it once a month XD
Nasty Ned  [ophavsmand] 2. sep. 2015 kl. 16:45 
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 kl. 16:36 
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 kl. 12:06 
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  [ophavsmand] 31. aug. 2015 kl. 15:49 
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.