Garry's Mod

Garry's Mod

[CW 2.0] Ammo Weight HUD
91 Comments
<[MIA]>.GEN.P!KE.ARMY  [author] 17 Feb, 2021 @ 1:46pm 
It's the battlefield 4 hud.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=222403838

I made some changes to it tho.
AlexGuy 17 Feb, 2021 @ 9:53am 
What is the HUD you're using?
PANDEMONIUM 13 Jun, 2019 @ 6:27pm 
thanc.
<[MIA]>.GEN.P!KE.ARMY  [author] 12 Jun, 2019 @ 7:31pm 
Bring up the normal game menu (where you spawn stuff) and on the right side under "Options>P!KE>Ammo Weight Options" You can see all the options there. There are screen shots up to at the end.
PANDEMONIUM 12 Jun, 2019 @ 5:32pm 
@<[MIA]>.GEN.P!KE.ARMY wait what is the command to pull up the menu?
PANDEMONIUM 12 Jun, 2019 @ 5:30pm 
aight thanks i'll try that
<[MIA]>.GEN.P!KE.ARMY  [author] 10 Jun, 2019 @ 11:16pm 
If you are subscribed and enabled and the HUD is enabled in the menu, then it should be in the bottom center of the screen. Make sure you have CW 2.0 installed and you have a weapon and ammo equipped. You can try messing with the position offsets in the menu to see if it somehow positioned itself off-screen.

But unfortunately I can only really help more if there are LUA errors in the console for this addon. Or else I can't really help or identify the problem, there are just too many variables to consider.
PANDEMONIUM 9 Jun, 2019 @ 4:13pm 
why is it not showing up? I enabled the HUD. am i just stupid or did i miss somethin ??????
Blazbo Babbins 12 Sep, 2018 @ 10:16pm 
not working op
come on big guy
<[MIA]>.GEN.P!KE.ARMY  [author] 30 Aug, 2018 @ 1:03pm 
Again, the only way I can help is if you provide me with any errors that this addon threw in the console. If there are none then you have conflicts with your other addons.

I would disable addons that have HUD elements and see if that resolves the problem.

I'm not responding to anything else unless you give me LUA errors.
AliBabaHajjHasan 29 Aug, 2018 @ 12:52pm 
What addons do you have on
<[MIA]>.GEN.P!KE.ARMY  [author] 29 Aug, 2018 @ 12:05pm 
Just making sure but this addon is only the ammo weight bar (see arrors in screenshots) and not the ammo and map readout. The only way I can help is if you can provide me with any errors that this addon threw in the console. If you can't find them or if there are none then it's something on your end.
AliBabaHajjHasan 29 Aug, 2018 @ 12:43am 
The thing is the HUD wont even show up
<[MIA]>.GEN.P!KE.ARMY  [author] 28 Aug, 2018 @ 8:20pm 
Babylon: Glad you like the idea. There are 5000+ people actively using this addon, so I don't think it is B R O K E lol. Try adjusting the offsets in the option panel or try re-subscribing. You can also look at the console for any errors related to this addon and post them here. But unless you give me more info, I'm certain it's on your end, sorry.

fl0am: Thanks for the interest. I work on the guns almost every week and have put over 500 hours into them. There are about 100 that I wish to eventually release with the highest possible quality. Once I'm happy with them I will release them. Ive finished about 20-30 of them as well as numerous CW 2.0 improvements like bullet physics/tracers, shell ejection, and shell models. I may start releasing them in packs when I get around to packaging them up. The best thing I can recommend is you follow me so you'll know when I release them. Trust me I'm working on it :)
AliBabaHajjHasan 28 Aug, 2018 @ 8:58am 
Please fix this, this is such a great idea
AliBabaHajjHasan 27 Aug, 2018 @ 7:43am 
HUD doesnt even show up this B R O K E
aquarial 26 Aug, 2018 @ 9:21am 
YOYOYO CAN YOU REALEASE THE WEAPON PACK THOSE GUNS LOOK SICK!
<[MIA]>.GEN.P!KE.ARMY  [author] 8 Jul, 2018 @ 7:34pm 
Sorry for the late response. I like this idea, I'll add it to the list of things to add when I revisit this mod.
24kWarLord 21 Jun, 2018 @ 10:26pm 
Just if you have an attachment that has another ammo type for that gun and that gun only
<[MIA]>.GEN.P!KE.ARMY  [author] 21 Jun, 2018 @ 5:16pm 
That's a good idea. But is harder to make than it sounds. Do you mean have seperate HUDs for each ammo type, or for each weapon?
24kWarLord 21 Jun, 2018 @ 11:09am 
mutible?
24kWarLord 21 Jun, 2018 @ 11:08am 
wait, is ther by any chance you can add an optone to make miltible ammo HUDs for like if you have a grenade launcher and you want tyo see it's ammo as well?
<[MIA]>.GEN.P!KE.ARMY  [author] 20 Jun, 2018 @ 7:23pm 
Glad to hear it.
24kWarLord 20 Jun, 2018 @ 3:42pm 
oh i forgot to tell you its working agien
<[MIA]>.GEN.P!KE.ARMY  [author] 20 Jun, 2018 @ 3:40pm 
Hmm. So it was working before but now it isn't? If so, I haven't changed anything so it's not me. I can only throw some general ideas at you for fixes. If you have other HUD addons they may conflict with this, shouldn't, but could I guess. You can try unsubing and resubing to re-download it. Make sure the offsets didn't get changed somehow. Resolution changes can mess with the offsets. Is the option menu still there? If so, try filling up with ammo and see if you hear the full sound. If so then its something with the hud being displayed. Not sure why. Also you can check the console for any errors relating to this mod. If you find any let me know. Besides that, I'm not really sure what to tell you. Sorry.
24kWarLord 19 Jun, 2018 @ 3:05pm 
ok... i can no longer see my ammo HUD. i have lots of CW2.0 but nothimg is showing up
KevinYEAAA 4 May, 2018 @ 7:59pm 
Okay, I got it. Thanks!
<[MIA]>.GEN.P!KE.ARMY  [author] 4 May, 2018 @ 7:04pm 
Thats not this addon. The arrows in the screenshots point to what this addon is. Search Battlefield 4 HUD for that hud.
KevinYEAAA 4 May, 2018 @ 4:11pm 
Yes
<[MIA]>.GEN.P!KE.ARMY  [author] 3 May, 2018 @ 9:06pm 
Are you talking about the map and health readouts?
KevinYEAAA 3 May, 2018 @ 9:02pm 
The Gmod GUI is there.
<[MIA]>.GEN.P!KE.ARMY  [author] 3 May, 2018 @ 9:00pm 
Is nothing there or is it just not filling when you have ammo? If its not there, did you try messing with the offsets?
KevinYEAAA 3 May, 2018 @ 8:46pm 
The ammo weight works, but the GUI doesn't work.
<[MIA]>.GEN.P!KE.ARMY  [author] 3 May, 2018 @ 8:15pm 
studboy1114: I'm not really sure how to help. Did you make sure that it's enabled in the menu and that you have CW 2.0 installed?
<[MIA]>.GEN.P!KE.ARMY  [author] 3 May, 2018 @ 8:14pm 
My grenades have been bugged out on my version of CW for a while, so once I fix that on my end I can test the grenade weights. I remember adding support to make them 400g but they must not be recognized.

Thanks on letting me know about the other weights, I'll keep those in mind. I did notice the VSS wasn't working correctly.

Yeah magazines are on the list too, Ill probably add an option to include the weights of them. This one is important to me. I like that idea a lot. Not sure how I'll do it yet.

You're more then welcome to mess around with my code if you want to try to add your own ammo types and weights. I am not currently working on this but I am working on another multiplayer mod since I'm trying to figure out client server stuff. Once I get that mod out, I will try to redo my older addons like this and the LifeLine mod to work online. Given I have time with my job/school and all.

Here is the code:
https://drive.google.com/open?id=16RSWIAC0OigirUYL2Ao4jjOBhdm_rWEL
GenStone 2 May, 2018 @ 6:06pm 
Bugs/incompatabilities
- Grenades of all varieties are unaffected by weight
- The RPG-7 Mod for CW2 is also unaffected
- 40mm Grenades are completely unaffected
- The VSS Vintorez is unaffected
(Obvious)-Magazines with the magazine system are completely unaffected, allowing you to carry double the ammo with the same weight.
KevinYEAAA 2 May, 2018 @ 3:33pm 
I can't enable it for some reason...
<[MIA]>.GEN.P!KE.ARMY  [author] 17 Feb, 2018 @ 10:33pm 
I'm glad you are interested in it. I'll be sure to look into that in the future at some point, unfortunately I can't really give you a time frame. This mod isn't actively being worked on but its not abandoned either.
<[MIA]>.GEN.P!KE.ARMY  [author] 17 Feb, 2018 @ 2:27pm 
Ehh no plans to at the moment. I'm currently working on a few other gmod things at the moment and I only really use CW 2.0. But if/when I work on this again I'll be sure to try to add that feature either to this, or create another version if I can figure it out. Thanks for the idea.
<[MIA]>.GEN.P!KE.ARMY  [author] 12 Feb, 2018 @ 9:05am 
You too! Good luck.
GenStone 11 Feb, 2018 @ 3:23pm 
Its alright! I understand school issues and like you, when it comes to my work I'm extremely picky as well.
Making a 250k battleship with an accuaracy under 50% until the target gets within 500 meters is dissapointing, especially when a 166k ship has 80% accuracy at 2 kilometers.
The result of that is that I'm now building a new ship based off of that ship to surpase my battleship in both cost and combat effectiveness.
Only time will tell, and good luck with your work!
<[MIA]>.GEN.P!KE.ARMY  [author] 11 Feb, 2018 @ 3:17pm 
Hey GenStone, really sorry about the late response. I read it back then but got pretty busy with school starting. And I kinda forgot.

I definitely understand the annoyance of those situations and I'm not sure how to solve the damage indicators, but I'm sure there must be way to disable them. I know nothing of online stuff though.

As much as I enjoyed working on this, I'm current working on finishing my weapon pack, which I spent ALOT of time on. I am very picky with sounds, shell size/type/position, animations, stats, and attachments. So maybe that will be a good compromise for putting this mod on the backburner.
GenStone 17 Jan, 2018 @ 9:45pm 
It is safe to say the MOST ANNOYING feature about being the host is damage indicators.
Specifically, how ONLY the host is affected by red-screening on damage
The result?
- Host drops someone to 2 health, they can see fine and return fire
- Host is dropped to 2 health, their screen is now bright red and their vision is completely impaired. They are unable to see their target.
- The Host is now dead because they couldn't keep aiming at their target because they were blinded by crimson.
- Host cannot find a mod that disables the damn red screen effect
- Host is sad
Fortunately red-screen is accompanied by the host's ability to tank bullets like a literal tank.
- Host shoots someone, 10-90 damage
- Anyone shoots host, 1-5 90% of the time, any other damage is rare. (That or people just can't hit anything valuable....)
Both of these are equally annoying but at least the host gets an advantage out of it.
GenStone 17 Jan, 2018 @ 9:44pm 
Well as a private server hoster who gets annoyed by addons that ONLY adversely affect me, I'd be perfectly happy to make sure this works in multiplayer properly. Because seriously having little to no ammo at all times while everyone else is sporting 2k bullets for a single pistol is kind of hard to deal with.
I actually got the magazine mod to alleviate this by forcing people to go through the same arbitrary process of getting ammo for most of the weapons that we use. That would mostly be a result of the fact we only really use UECW and CW2, along with active reload (Manually loading each bullet) rifles. If you're ambushed without a gun you have to:
- Get a gun out
- Use the single magazine in the gun to kill your assailant
- If the above fails, you have to get into cover, get a magazine/take the magazine out, get ammo for the gun, reload the magazine, and then get back in the fight
Usually this time between initial defense is enough to kill the defender.
<[MIA]>.GEN.P!KE.ARMY  [author] 17 Jan, 2018 @ 7:59pm 
Yeah I really love the idea of the magazine system and having them be included in the weight. I used it personally for a while but abandoned it becuase not a lot of people put support for it into their weapons. Back then I wasn't into making weapons or addons yet either. Its most likely something my weapon pack will have when I release it, and then by extension I will patch this to support it as well. Its just hard to me to add support for something I don't use.

I will at some point for sure work on this and my LifeLine mod to work in multiplayer, but im also programming 40 hours per week for work this month, so its really hard for me to get around to this as I'm sure you understand. Ill be sure to let you know when I start working on it, and I would appreciate any help with testing if possible because I don't do custom server or gamemodes. Thanks again for your interest!
GenStone 17 Jan, 2018 @ 6:02pm 
While I wait on that magical multiplayer fix provided or assisted by some magical mod maker or by yourself (No really though having this in multiplayer would really make wars of attrition/supply wars possible)
I suggest the compatibility with the magazine system addon
The magazines should have a set empty weight that should be constant through each mag (just to have standards) and have ammo apply when in the mags as well. You should only need it to read the ammo in the magazines and then apply the ammo to the weight. Just giving suggestions the technical's all on you
<[MIA]>.GEN.P!KE.ARMY  [author] 4 Jan, 2018 @ 11:42am 
>KEKSQUAD: Yeah you are totally right about the color wheel, that would be more user friendly. I didnt even look into that becuase like I said to GenStone I did whatever was straighforward to me at the time. For the other stuff, the problem with sliders if that I think I have to specify a range of acceptable values, which help with preventing invlalid data but also restrict the user to that range. For example, most people game at a 16:9 aspect ratio such as a 1080p. My aspect ratio is 5.33:1 at 5760x1080. So I would not want to limit the position to a certain space. I might be able to set the range to the clients ScrW and ScrH values at launch. But I am not sure yet if that would work for if/when I fix this to work online. Thanks for the suggestion, I appreciate it. I will for sure look into the color wheel at some point. I have seen it done before.
<[MIA]>.GEN.P!KE.ARMY  [author] 4 Jan, 2018 @ 11:42am 
GenStone: Oh man that might be more than I can chew right now. I would have to look into how to do a lot of that stuff. I wrote this in like 4 days after class for fun with minimal research so I just did things the first way that worked not worrying a ton about efficiency. But yeah I really like that idea it would just take me a while to figure out since I'm still pretty new to LUA and game dev. I do mostly Windows Applications in my free time. Thanks for the suggestion!
>KB> >KEKSQUAD 4 Jan, 2018 @ 12:19am 
Okay so another suggestion would be to have color wheels instead of sliders for colour changes, and sliders in place of the text boxes for changing the bar positions. Not sure why you decided to go with the former, but the latter would be more user friendly.