Garry's Mod

Garry's Mod

[MWB] (Unofficial) Half-Life II Guns (FIXED & REUPLOAD)
43 Comments
drbutterfingers 21 Mar @ 3:02pm 
anime sucks
r00t b33r 20 Nov, 2024 @ 2:31pm 
whoever sees this, do NOT download, it IS broken
Disuu 16 Nov, 2024 @ 3:08pm 
Can you make HL2 port? :cozybethesda:
Ready 14 Oct, 2024 @ 12:20pm 
the ar2 reload sounds don't work
Jaykmeit 3 Sep, 2024 @ 9:31am 
Additionally, I'm adding the proper ViewModelOffsets (line 143 in mg_hl2spas12.lua)

SWEP.ViewModelOffsets = {
Aim = {
Angles = Angle(0, 0, 0),
Pos = Vector(0.07, 0, 0.33)
}
Jaykmeit 3 Sep, 2024 @ 9:22am 
I've come to suggest the solution to the error that gave the SPAS-12 gun.

Line 740 to Line 742 in \lua\weapons\mg_base\modules\shared\sh_customization.lua

function SWEP:GetAttachmentModels(slot)
return self.m_CustomizationInUse[slot].m_Model, self.m_CustomizationInUse[slot].m_TpModel
end

Error is being caused due to Customization not being used. But is neither getting a 'nil' value.

Replace with:

function SWEP:GetAttachmentModels(slot)
if not self.m_CustomizationInUse then
return nil, nil
end

if not self.m_CustomizationInUse[slot] then
return nil, nil
end

return self.m_CustomizationInUse[slot].m_Model, self.m_CustomizationInUse[slot].m_TpModel
end
Vincent 16 Jun, 2024 @ 2:32pm 
can i get the source of the art in the icon?
волосятый апарыш 5 May, 2024 @ 8:10am 
скажи зачем делать такие хорошие моды и такие ужасные тупые картинки?
WesleyPlaysGames 4 May, 2024 @ 11:23am 
Please fix the SPAS-12.
gren258 15 Apr, 2024 @ 8:56pm 
Spas-12 causes errors.
Quandale-Dingle 28 Mar, 2024 @ 8:00am 
nice but the AR2 is broken and the sights arent aligned
That goose you can't understand 7 Mar, 2024 @ 10:14am 
Seems to work fine for me (except for the missing texture crosshair on the AR2
migon 6 Mar, 2024 @ 11:30pm 
3/7/24

revolver and smg works (though i wished the SMG had a grip attachment slot)

Spas is the only one spitting out errors again, the spas works fine however
gigi 1 Mar, 2024 @ 1:08am 
Nice, although it would be nice if there was more customization (Like being able to add the MP7's folding grip) but still a great addon eitherway.
r00t b33r 28 Feb, 2024 @ 3:45pm 
i sub to everything required too >:( also smg has errors too
r00t b33r 28 Feb, 2024 @ 3:44pm 
[Modern Warfare Base] lua/weapons/mg_base/modules/shared/sh_customization.lua:757: attempt to index a nil value
1. GetAttachmentModels - lua/weapons/mg_base/modules/shared/sh_customization.lua:757
2. unknown - lua/weapons/mg_hl2spas12/shared.lua:175 (x2564)
migon 27 Feb, 2024 @ 10:35pm 
to add some more info to my previous comment, my bug was the fact that the console kept printing errors, and the fact you cannot open the customization menu

the modern warfare guns i have worked just fine, this HL2 MW Pack? nope
Tubbizito >:) 27 Feb, 2024 @ 2:34pm 
FIX
🎩 Ventor  [author] 27 Feb, 2024 @ 10:09am 
u sub on all dlc?
VAEΞ ASTRA 25 Feb, 2024 @ 8:49pm 
It's getting errors like crazy on the SPAS and MP7.
Feliepuks 25 Feb, 2024 @ 8:09am 
no sirve el addon me traba en gmod
migon 25 Feb, 2024 @ 3:40am 
i have an mwb compressed pack, running this from the 64bit branch
as copied from the console :

[Modern Warfare Unofficial Base Pack] lua/weapons/mg_base/modules/shared/sh_customization.lua:757: attempt to index a nil value
1. GetAttachmentModels - lua/weapons/mg_base/modules/shared/sh_customization.lua:757
2. unknown - lua/weapons/mg_hl2spas12/shared.lua:175 (x1229)

Giving migon a mg_hl2mp7

[Modern Warfare Unofficial Base Pack] lua/entities/mg_viewmodel/client/cl_render.lua:149: attempt to get length of local 'atts' (a nil value)
1. unknown - lua/entities/mg_viewmodel/client/cl_render.lua:149 (x219)

Giving migon a mg_hl2spas12

[Modern Warfare Unofficial Base Pack] lua/entities/mg_viewmodel/client/cl_render.lua:149: attempt to get length of local 'atts' (a nil value)
1. unknown - lua/entities/mg_viewmodel/client/cl_render.lua:149 (x15)
Valerii-Albertovich 25 Feb, 2024 @ 3:09am 
please fix smg it dont shows when i take it
D.Garry 25 Feb, 2024 @ 1:42am 
SMG and SPAS12 - have errors
AtrociousBean 24 Feb, 2024 @ 4:33pm 
The beans have arrived.
Noob 24 Feb, 2024 @ 1:17pm 
pan has arrived
encrypt!on 24 Feb, 2024 @ 11:16am 
im currently masturbaiting
Bluewave 24 Feb, 2024 @ 10:44am 
Spas-12 and smg still showing errors. Tried reinstalling MWB and weapons associated with it and nothing is working. Is anybody still getting errors? It could be just me.
Generic Teamfortress ******* 24 Feb, 2024 @ 8:56am 
pls fix spas and smg errors
Valerii-Albertovich 24 Feb, 2024 @ 5:01am 
смг сломана и не показываеться
D.Garry 23 Feb, 2024 @ 11:49pm 
Thank YOU!
That goose you can't understand 23 Feb, 2024 @ 11:18pm 
Finally 😭😭🙏
Niga Gigga 23 Feb, 2024 @ 3:12pm 
thank you i always wanted a mwb spas 12
sadvedunt 22 Feb, 2024 @ 10:48pm 
good job
mingebag 22 Feb, 2024 @ 8:39pm 
favorite mods, favorite modder. God bless your soul!!!
Gream 22 Feb, 2024 @ 8:13pm 
wow finally spas-12 :steamthumbsup:
birdanimates2 22 Feb, 2024 @ 3:11pm 
can you fix the revolvers sights?
Judgement Kazzy 22 Feb, 2024 @ 3:04am 
could you please fix the poop swep?
Kebabit 21 Feb, 2024 @ 7:24am 
im more interested in the mod's thumbnail
jangwmpt7 20 Feb, 2024 @ 6:26pm 
Like, for example, the SPAS-12 has a sling attached to it while the MP7's grip can be folded during the inspect animation from the MMOD HL2 weapons replacement mod.
jangwmpt7 20 Feb, 2024 @ 6:22pm 
The reload sounds for the AR2 is broken, and this mod should be compatible with MMOD HL2 weapons replacement mod.
WesleyPlaysGames 20 Feb, 2024 @ 2:40pm 
Good addon but the SPAS-12 and SMG is causing errors.