Garry's Mod

Garry's Mod

Universal Ammo 2.0!
109 条留言
amhir 1 月 4 日 上午 1:00 
wtf why did it break my spawn menu
HypFox 2023 年 7 月 19 日 下午 2:00 
do they work on arccw weapons ?
mastergaming1236 2022 年 12 月 25 日 上午 12:11 
does it support arc
Zak  [作者] 2022 年 8 月 30 日 下午 12:41 
@TheCatGuy Awesome! sorry that it must have been awkward to add support for it as I hadn't ever expected it to be adapted like this. Nice work though!

I noticed that my code is copyright protected since I never added a license. I've added MIT now.
ThatCatGuy 2022 年 8 月 30 日 上午 8:42 
Added support for this Universal Ammo addon to my Instant Ammo addon https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2530699015
Chef 2022 年 8 月 2 日 下午 7:18 
Does this work for ttt would love to use it for when me and my friends play.
wispee 2022 年 4 月 6 日 上午 7:47 
@Zak thank you
Zak  [作者] 2022 年 4 月 6 日 上午 4:43 
@wispee Here you go. Didn't realise it wasn't already linked - https://github.com/zakarybk/Universal-Ammo
wispee 2022 年 4 月 5 日 上午 3:18 
Can you provide a github link?
Or just anywhere else to download the lua files
Zak  [作者] 2022 年 2 月 2 日 下午 3:30 
@DarkIcy The normal universal ammo worked for me with the linked Modern warfare weapons - but the infinite ammo didn't.
DarkIcy 2022 年 2 月 1 日 下午 2:17 
Hey @Zak can You support This https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2459720887 .Universal Ammo Won't work on Modern warfare weapons Can you Fix That?
Zak  [作者] 2021 年 12 月 7 日 上午 5:20 
@Sergei Sorry but that's not very helpful. Are you able to be a bit more specific with any of the weapons where it doesn't work? What's an example of a weapon and which weapon pack is it part of? Also which gamemode are you playing on? Thanks
Sergei 2021 年 12 月 7 日 上午 5:02 
works with only one weapon, and that's on TFA base
Zak  [作者] 2021 年 12 月 7 日 上午 4:51 
@Sergei Which weapon are you using/weapon pack?

Please note that it doesn't give you an infinite clip. All it does is to give you back all the ammo you've shot after you reload.
Sergei 2021 年 12 月 7 日 上午 4:20 
infinite ammo does not work. just flashes and explodes when used
Zak  [作者] 2021 年 8 月 19 日 上午 11:08 
@RakZ Awesome, thanks for letting me know :D
RakZ 2021 年 8 月 19 日 上午 11:02 
Thank you so much it works now!
Zak  [作者] 2021 年 8 月 19 日 上午 10:58 
@RakZ I've just pushed an update which should fix the issue. For whatever reason the addon is failing to find ammo on the version of M9k you're using, so I've added a fallback to search through registered ammo types with the game instead of relying on reading SWEP data.

You will probably need to restart GMod for the update. Hope this fixes your problem, if not feel free to message me again :)
RakZ 2021 年 8 月 19 日 上午 10:03 
ohh and smg ammo is missing too in the chat it says
Sorry, this weapon cannot use universal ammo!
all m9k weapos
RakZ 2021 年 8 月 19 日 上午 10:01 
and also shotgun ammo is missing from the list
already tried to reset to default
RakZ 2021 年 8 月 19 日 上午 9:59 
Okay so the m9k weapons take pulse ammo and i cant seem to find it anywhere on the universal ammo list
Zak  [作者] 2021 年 8 月 19 日 上午 4:45 
@RakZ Can you please link which pack you're using. Every pack for me works.

Might be worth checking in the Spawn Menu -> Utilities -> Universal Ammo -> Ammo and make sure the ammo the weapon takes isn't set to 0. If you still have problems it's probably worth trying the reset to defaults button to see if that helps.
RakZ 2021 年 8 月 19 日 上午 4:04 
not working with m9k? with m9k pistols it does but not with any shotguns or snipers or assault rifles
Zak  [作者] 2021 年 8 月 11 日 上午 10:29 
@Aqua should work with M9K
Aqua 2021 年 8 月 10 日 下午 6:55 
doesnt work on M9K??
Zak  [作者] 2021 年 8 月 3 日 上午 11:04 
@Supremaciiiii Which weapon/pack are you having problems with?
[SFC] Supremaciiiii 2021 年 8 月 3 日 上午 12:32 
Infinite ammo does not work on any weapon
Zak  [作者] 2021 年 7 月 1 日 上午 12:55 
@tarik Thanks, I'll take a look
odium 2021 年 6 月 30 日 下午 3:53 
not working on some TFA weapons insurgency pack example : shotguns and smgs
Luca 2021 年 6 月 12 日 下午 4:31 
@Zak I added you as a friend to discuss some things
Zak  [作者] 2021 年 6 月 5 日 上午 9:35 
@Kirbo It should work with any weapon pack
KIRBO 2021 年 6 月 5 日 上午 8:05 
it works for TFA?
Zak  [作者] 2021 年 5 月 27 日 下午 2:41 
np :)
Memeologyy 2021 年 5 月 26 日 下午 7:39 
Thank you for the response.
Memeologyy 2021 年 5 月 26 日 下午 7:39 
I changed the number, it didn't matter if it 0-80, no effect. I used different weapons, it just refused to give AR2, it gave pistol, etc. I tried on my server, disconnected, tried singleplayer, to no avail.
Zak  [作者] 2021 年 5 月 26 日 下午 1:31 
@Memeologyy What's the number for AR2 under Spawn Menu->Utilities->Universal Ammo->Ammo?
Zak  [作者] 2021 年 5 月 26 日 下午 1:22 
@Memeologyy Sorry about this, can you give me a few more details?

Are you one singleplayer or multiplayer?
Have you tried different SWEPs? Which one isn't working?
Memeologyy 2021 年 5 月 26 日 下午 1:04 
It doesn't give you AR2 ammo.
Memeologyy 2021 年 5 月 26 日 下午 12:48 
Hey, this just stopped working today.
Zak  [作者] 2021 年 5 月 25 日 下午 3:09 
@Wedge There's now an in-game config instead
Zak  [作者] 2021 年 4 月 18 日 上午 2:45 
@ZOLILE Nope, this needs to be installed on the server to work. The functions which pick which ammo to give you are all server-side.
ANOMALY 2021 年 4 月 17 日 下午 5:44 
Would this work if I pot this in my client side in my server?
Zak  [作者] 2020 年 9 月 18 日 上午 9:31 
@SneakyKiller584 The only way to do that would be to extract the addon and put the extracted version onto your server in the addons folder then edit addons/extracted-folder/lua/autorun/server/universal_ammo_config.lua
SneakyKiller584 2020 年 9 月 16 日 上午 9:23 
Hey man where can i find the file to change the amount given if im usuing a hosting network rather than my PC?
I cannot seem to change it
Koba 2020 年 5 月 2 日 上午 6:50 
Yo so my DOI grenades can get 20/10 ammo from boxes even though i changed the max ammo limit way down and whatever I change it to it always gives 20/10 ammo.
https://cdn.discordapp.com/attachments/286538019668754442/706137809500635186/unknown.png
This is the coding, im using "grenade" which is the same ammo type used in the grenade ammo files. I would happy call and share screens on discord (Wedge#3232) if needed and would really appricate the help: https://cdn.discordapp.com/attachments/286538019668754442/706137809500635186/unknown.png
Zak  [作者] 2020 年 3 月 31 日 上午 1:47 
Might be under other in entities.
TNT.TROLLER 2020 年 3 月 30 日 下午 10:00 
I cant find it in my menu where is it?
Zak  [作者] 2020 年 3 月 29 日 下午 2:19 
@WavvesMalone
In the bit that gives the player ammo you might be able to do something like this.
for key, name in pairs(game.GetAmmoTypes()) do
ply:GiveAmmo(10, name)
end
Little Jacob 2020 年 3 月 29 日 下午 2:11 
I've been looking for something like this, but instead of supplying ammo for your held weapon, it supplies ammo for all weapons in your inventory. Any thoughts?
thomas the thermonuclear bomb 2020 年 3 月 4 日 上午 10:52 
i send you friend request so u can help me faster