Garry's Mod

Garry's Mod

[CW2] Advanced UI Upgrade
33 Comments
S.E.T.H 21 Feb, 2023 @ 2:50pm 
But I hope in the near future it will be returned at least in an improved form? And then I myself recently played the original AW and I really liked some of the guns, that I would like to see them at least on some base in Gmod, at least CW2, at least TFA, Arccw or ARC9, it doesn’t matter
Moka  [author] 21 Feb, 2023 @ 12:49pm 
@S.E.T.H
The addon was work-in-progress. As it stands, I have not made any progress in any of my GMod addons, including the AW CW2 addon, in many months. My addons recently grew to have a problem related to a recent CW2-related update, and since I don't want to introduce non-working content into an addon, I decided to instead take it down.
S.E.T.H 21 Feb, 2023 @ 11:56am 
Why did you hide the guns from Advanced Warfare, did you really decide to finish them all the same? Still, not everyone normally portes them to some non-poor base, I would be grateful to know the reason and that this is not critical
AlexGuy 12 Nov, 2022 @ 6:20pm 
I'm saying this because i still keep getting the same error as before.
AlexGuy 12 Nov, 2022 @ 6:19pm 
Did you manage to fix a year old problem though?
Slav 9 Nov, 2022 @ 11:32am 
@Moka_Akashiya85
Thank you, may i ask?
what about make an, Metro redux weapon pack? Like its kinda good idea to make it to people who enjoy an Russian Atmoshphere.
Moka  [author] 9 Nov, 2022 @ 11:21am 
@бабушка снуп дога
This one.
Slav 9 Nov, 2022 @ 10:58am 
what's weapon pack from third screenshot?
Freedomlander_101 6 Jun, 2021 @ 5:24am 
Nice job, your mods are top notch quality!
k3p6c4 24 May, 2021 @ 12:10pm 
whats you next mod
Jarno DUUDSONI 2 Mar, 2021 @ 11:35am 
you gotta do bo1 or waw the og's
Moka  [author] 28 Feb, 2021 @ 2:45am 
@The_Admiral
Well, I checked it out and found no errors. I'll still look through the code and see if anything can be changed.
AlexGuy 27 Feb, 2021 @ 6:33pm 
[[CW2] Advanced UI Upgrade] lua/cw/shared/menutabs/z_customization.lua:234: attempt to get length of field 'description' (a nil value)
1. drawFunc - lua/cw/shared/menutabs/z_customization.lua:234
2. draw - lua/cw/shared/cw_interactionmenuhandler.lua:59
3. drawInteractionMenu - lua/weapons/cw_base/cl_model.lua:991
4. _drawViewModel - lua/weapons/cw_base/cl_model.lua:754
5. drawViewModel - lua/weapons/cw_base/cl_model.lua:608
6. v - lua/weapons/cw_base/cl_hooks.lua:34
7. unknown - lua/includes/modules/hook.lua:84 (x385)
I tried to customize the stock on the AR-15 and this happened.
AlexGuy 22 Feb, 2021 @ 10:33am 
Wait, so that means Base CW 2.0 isn't supported?
Moka  [author] 22 Feb, 2021 @ 3:23am 
The UI is technically always activated, but it's made to, by default, make it look identical to the regular menu.

The modified customization menu can be added and tweaked via a bunch of values listed in the "Info for CW2 Weapon Creators" topic. The advanced stats menu (as seen in the screenshot above) can be enabled via the LUA line "SWEP.UseAltStats", either on a "per-weapon" basis or in a modified CW2 base.

Note that if you get spammed with errors because you're doing this, do not expect me to fix them.
AlexGuy 21 Feb, 2021 @ 12:22pm 
How do i activate it manually?
Moka  [author] 21 Feb, 2021 @ 11:22am 
@The_Admiral
This addon rewrites a bunch of regular CW2 code but it needs to be activated manually either per-weapon or per-modified CW2 base. Without it, you'll notice no difference.

My two packs that currently support this addon is my MWR and Homefront weapon packs.
AlexGuy 21 Feb, 2021 @ 8:40am 
Honestly, this seems sketchy to me.
AlexGuy 20 Feb, 2021 @ 6:31pm 
Is there gonna be a fix soon?
AlexGuy 19 Feb, 2021 @ 9:24am 
How do i customize the UI?
AlexGuy 19 Feb, 2021 @ 7:13am 
The new UI doesn't show for me.
Moka  [author] 19 Feb, 2021 @ 3:53am 
@The_Admiral
Right, I'll see if I can rewrite a few things in the code. I'll update later today.
And yea, it's a relatively new addon I made for fun.
AlexGuy 18 Feb, 2021 @ 4:43pm 
Also, i just noticed. This is a relatively new addon.
AlexGuy 18 Feb, 2021 @ 3:07pm 
[[CW2] Advanced UI Upgrade] lua/cw/shared/menutabs/z_customization.lua:364: attempt to index field 'CusMenuAttNameCol' (a nil value)
1. drawFunc - lua/cw/shared/menutabs/z_customization.lua:364
2. draw - lua/cw/shared/cw_interactionmenuhandler.lua:59
3. drawInteractionMenu - lua/weapons/cw_base/cl_model.lua:991
4. _drawViewModel - lua/weapons/cw_base/cl_model.lua:754
5. drawViewModel - lua/weapons/cw_base/cl_model.lua:608
6. v - lua/weapons/cw_base/cl_hooks.lua:34
7. unknown - lua/includes/modules/hook.lua:84 (x68)
Moka  [author] 18 Feb, 2021 @ 12:39pm 
@The_Admiral
A known problem. Will fix shortly
AlexGuy 18 Feb, 2021 @ 7:42am 
[[CW2] Advanced UI Upgrade] lua/cw/shared/menutabs/z_customization.lua:407: attempt to perform arithmetic on global 'triviatextx' (a nil value)
1. drawFunc - lua/cw/shared/menutabs/z_customization.lua:407
2. draw - lua/cw/shared/cw_interactionmenuhandler.lua:59
3. drawInteractionMenu - lua/weapons/cw_base/cl_model.lua:991
4. _drawViewModel - lua/weapons/cw_base/cl_model.lua:754
5. drawViewModel - lua/weapons/cw_base/cl_model.lua:608
6. v - lua/weapons/cw_base/cl_hooks.lua:34
7. unknown - lua/includes/modules/hook.lua:84 (x1009)
AlexGuy 17 Feb, 2021 @ 10:06am 
Thank you for this.
MESSER 18 Dec, 2020 @ 9:32am 
*ВСЕ В ОЖИДАНИЕ ТОП АДДОНОВ*
Moka  [author] 14 Dec, 2020 @ 9:59am 
@Slate2k
Even without any input from weapon makers, this UI mod does technically replace the customization menu, but it's done in such a way that it's identical to the original.
Anonymous 14 Dec, 2020 @ 4:48am 
I wonder if this could potentially replace the cw2 ui in general
ŸouŋgPũrpleĎragōnŚtarlŏk 9 Dec, 2020 @ 4:20pm 
I'm not sure, but looks kind of good, but at the same time so-so.
Master Chief 7 Dec, 2020 @ 7:30pm 
Wow! Sweet. Thank you for create for your workshop. It's great upgrading for CW2.
Moka  [author] 7 Dec, 2020 @ 4:12pm 
Note: This pack will support my Homefront pack, but that is still work-in-progress, but is soon ready for release. After that, I'll get the MW2CR and MW3 packs to work as well with this.