Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
SWEP.ViewModelOffsets = {
Aim = {
Angles = Angle(0, 0, 0),
Pos = Vector(0.07, 0, 0.33)
}
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
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
1. GetAttachmentModels - lua/weapons/mg_base/modules/shared/sh_customization.lua:757
2. unknown - lua/weapons/mg_hl2spas12/shared.lua:175 (x2564)
the modern warfare guns i have worked just fine, this HL2 MW Pack? nope
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)