diff --git a/lua/weapons/arc9_base/cl_laser.lua b/lua/weapons/arc9_base/cl_laser.lua index 40cff056..4673bdce 100644 --- a/lua/weapons/arc9_base/cl_laser.lua +++ b/lua/weapons/arc9_base/cl_laser.lua @@ -102,7 +102,7 @@ function SWEP:DrawLasers(wm, behav) if !wm and owner:IsNPC() then return end local lp = LocalPlayer() if wm and owner == lp and self.LastWMDrawn != UnPredictedCurTime() then return end - if wm and !lp:ShouldDrawLocalPlayer() then return end + if wm and owner == lp and !lp:ShouldDrawLocalPlayer() then return end local mdl = self.VModel diff --git a/lua/weapons/arc9_base/cl_light.lua b/lua/weapons/arc9_base/cl_light.lua index 9ff80400..82339a4d 100644 --- a/lua/weapons/arc9_base/cl_light.lua +++ b/lua/weapons/arc9_base/cl_light.lua @@ -219,8 +219,8 @@ function SWEP:DrawLightFlare(pos, ang, col, size, vm, nodotter, dir) -- mostly t col = col or badcolor size = size or 1 - local lp = LocalPlayer() - if !vm and !lp:ShouldDrawLocalPlayer() then return end + local lp, owner = LocalPlayer(), self:GetOwner() + if !vm and owner == lp and !lp:ShouldDrawLocalPlayer() then return end dir = dir or ang:Forward() @@ -235,7 +235,7 @@ function SWEP:DrawLightFlare(pos, ang, col, size, vm, nodotter, dir) -- mostly t local diff = EyePos() - pos dot = dot ^ 4 - local tr = util.QuickTrace(pos, diff, {self:GetOwner(), lp, lp:GetViewEntity()}) + local tr = util.QuickTrace(pos, diff, {owner, lp, lp:GetViewEntity()}) local s = math.Clamp(1 - diff:Length() / 700, 0, 1) ^ 1 * dot * 500 * math.Rand(0.95, 1.05) * size local rtt = render.GetRenderTarget()