Garry's Mod

Garry's Mod

224 oy
Dynamic Resupply Entity
2
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
İçerik Türü: Eklenti
Eklenti Türü: Alet
Eklenti Etiketleri: Eğlence
Dosya Boyutu
Gönderilme
Güncellenme
4.682 KB
31 Ağu 2015 @ 14:45
23 Mar 2021 @ 16:58
2 Değişiklik Notu ( görüntüle )

İndirmek için abone ol
Dynamic Resupply Entity

Nasty Ned tarafından 1 koleksiyonda
Buckash105's Gameplay Tweaks
2 öğe
Açıklama
I stopped working on Gmod addons a few years ago, so don't expect me to update any of my addons. Thankfully, this addon still works on modern versions of Gmod, so hopefully that won't be necessary.

This addon adds an entity that supplies the player with ammunition for their equipped weapon whenever they press their USE key on it. The entity can be used an infinite nmber of times, and will give some primary (and secondary if applicable) ammo for whatever weapon is equipped by the player.

This should work with weapons that use custom ammo types (CW2.0 and FA:S2, for example). However, certain weapons (especially melee weapons or other weapons that have infinite ammo) may create errors when you attempt to resupply them. There isn't much I can do about every edge case, unfortunately.

The entity can be found in Entities > Dynamic Resupply.

The addon now requires Zombie Extinguisher's Equipped Weapon Addon.
It is what makes this addon able to read certain data pertaining to your weapons. Plus, it's just nice to have on its own because it lets admins turn on unlimited ammo, give ammo to everyone, and even remove reloading entirely.
44 Yorum
Nasty Ned  [yaratıcı] 7 Tem 2021 @ 22:18 
No harm done! And thank you.
miltank 7 Tem 2021 @ 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  [yaratıcı] 7 Tem 2021 @ 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 Tem 2021 @ 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  [yaratıcı] 24 Mar 2021 @ 11:10 
All right. Lemme know if you run into any other issues.
Splyntas 24 Mar 2021 @ 10:51 
Thanks for the quick response, it works just fine now.
Nasty Ned  [yaratıcı] 24 Mar 2021 @ 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 @ 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  [yaratıcı] 23 Mar 2021 @ 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 Oca 2021 @ 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'