This commit is contained in:
Darsu 2023-01-18 15:32:19 +07:00
parent a07b218812
commit 92801fed26

View File

@ -23,11 +23,6 @@ function SWEP:DrawLaser(pos, dir, atttbl, behav)
local width = math.Rand(0.1, 0.2) * strength
if behavior then
cam.Start3D(nil, nil, nil, 0, 0, ScrW(), ScrH(), 4, 32000)
pos = pos - (dir * 256)
end
local hit = tr.Hit
local hitpos = tr.HitPos
@ -60,10 +55,6 @@ function SWEP:DrawLaser(pos, dir, atttbl, behav)
render.DrawSprite(hitpos, rad, rad, dotcolor)
render.DrawSprite(hitpos, rad * 0.3, rad * 0.3, whitedotcolor)
end
if behavior then
cam.End3D()
end
end
function SWEP:DrawLasers(wm, behav)