Garry's Mod

Garry's Mod

[ArcCW] Arctic's Customizable Weapons (Base)
Макарон 29. sep. 2023 kl. 13:51
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)
< >
Viser 1-15 af 25 kommentarer
SCAREDCROWS 1. okt. 2023 kl. 6:48 
same
Spider_Phoenix045 1. okt. 2023 kl. 14:04 
Same here. Gonna stop using the base until it gets updated
Spider_Phoenix045 1. okt. 2023 kl. 14:04 
AND having NPC attachments will cause errors too
Lt. Nazrin 12. okt. 2023 kl. 6:44 
has this ever been fixed lol
Spider_Phoenix045 16. okt. 2023 kl. 8:27 
Sorry for the late reply.. and no. The update in July still didn't fix the NPC crap.
Lt. Nazrin 31. okt. 2023 kl. 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 31. okt. 2023 kl. 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 31. okt. 2023 kl. 5:06 
dude i swear to god if its because "!ow:GetViewModel():IsValid()" should be changed to "!ow:GetWorldModel():IsValid()"
Lt. Nazrin 31. okt. 2023 kl. 5:15 
ah i see so apparently getviewmodel is a nil value which means getviewmodel is undefined/doesnt exist, weird
Lt. Nazrin 31. okt. 2023 kl. 5:24 
dude literally all the devs need to do is define what getviewmodel is
Lt. Nazrin 31. okt. 2023 kl. 5:29 
OH ♥♥♥♥ I ♥♥♥♥♥♥♥ FIXED IT HAHAHAHAHHA I FIXED ITTTTTTTTTTTTTTT
Spider_Phoenix045 31. okt. 2023 kl. 6:21 
Nice!
Lt. Nazrin 31. okt. 2023 kl. 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 31. okt. 2023 kl. 6:39 
until the devs can fix this bug (probably never) ill have to get used to it :P
OfficerRunner19140 1. nov. 2023 kl. 17:46 
Wait To Make NPC Use Those Weapons
< >
Viser 1-15 af 25 kommentarer
Per side: 1530 50