Garry's Mod

Garry's Mod

[ArcCW] Arctic's Customizable Weapons (Base)
npcs shooting creates an error
it says this in the console: [[ArcCW] Arctic's Customizable Weapons (Base)] lua/weapons/arccw_base/sh_attach.lua:684: attempt to call method 'GetViewModel' (a nil value)
1. unknown - lua/weapons/arccw_base/sh_attach.lua:684 (x8)
< >
正在显示第 1 - 15 条,共 25 条留言
SCAREDCROWS 2023 年 10 月 1 日 上午 6:48 
same
Spider_Phoenix045 2023 年 10 月 1 日 下午 2:04 
Same here. Gonna stop using the base until it gets updated
Spider_Phoenix045 2023 年 10 月 1 日 下午 2:04 
AND having NPC attachments will cause errors too
Lt. Nazrin 2023 年 10 月 12 日 上午 6:44 
has this ever been fixed lol
Spider_Phoenix045 2023 年 10 月 16 日 上午 8:27 
Sorry for the late reply.. and no. The update in July still didn't fix the NPC crap.
Lt. Nazrin 2023 年 10 月 31 日 上午 4:52 
why does this happen in the first place? im guessing its trying to give a viewmodel to an npc which doesnt work?
Lt. Nazrin 2023 年 10 月 31 日 上午 5:05 
function SWEP:GetTracerOrigin()
local ow = self:GetOwner()
local wm = !ow:GetViewModel():IsValid() or ow:ShouldDrawLocalPlayer()
local muzz = self:GetMuzzleDevice(wm)

if muzz and muzz:IsValid() then
local posang = muzz:GetAttachment(self:GetBuff_Override("Override_MuzzleEffectAttachment", self.MuzzleEffectAttachment) or 1)
if !posang then return muzz:GetPos() end
local pos = posang.Pos

now im thinking its possibly the base trying to get the position of the guns tracer from the npc thats causing this?
Lt. Nazrin 2023 年 10 月 31 日 上午 5:06 
dude i swear to god if its because "!ow:GetViewModel():IsValid()" should be changed to "!ow:GetWorldModel():IsValid()"
Lt. Nazrin 2023 年 10 月 31 日 上午 5:15 
ah i see so apparently getviewmodel is a nil value which means getviewmodel is undefined/doesnt exist, weird
Lt. Nazrin 2023 年 10 月 31 日 上午 5:24 
dude literally all the devs need to do is define what getviewmodel is
Lt. Nazrin 2023 年 10 月 31 日 上午 5:29 
OH ♥♥♥♥ I ♥♥♥♥♥♥♥ FIXED IT HAHAHAHAHHA I FIXED ITTTTTTTTTTTTTTT
Spider_Phoenix045 2023 年 10 月 31 日 上午 6:21 
Nice!
Lt. Nazrin 2023 年 10 月 31 日 上午 6:39 
ehhh sorta, it no longer makes errors but at the cost of the muzzleflash and tracers not being aligned with the first person view of the gun, but im mainly using this addon for npc wars so its not too bad of a thing
Lt. Nazrin 2023 年 10 月 31 日 上午 6:39 
until the devs can fix this bug (probably never) ill have to get used to it :P
OfficerRunner19140 2023 年 11 月 1 日 下午 5:46 
Wait To Make NPC Use Those Weapons
< >
正在显示第 1 - 15 条,共 25 条留言
每页显示数: 1530 50