Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local color = color_white
- local mat = Material("cable/redlaser")
- local self = zbeg
- hook.Add("RenderScreenspaceEffects", 1, function()
- if self:GetPos():Distance(LocalPlayer():EyePos()) > 1000 then return end
- cam.Start3D()
- render.SetMaterial(mat)
- local origin = self:EyePos()
- for x = -4, 4 do
- for y = -4, 4 do
- for z = -4, 4 do
- local a = Vector(x, y, z) * 16
- local b = Vector(x, y, z) * -16
- render.DrawBeam(origin + a, origin + b, 0.25, 0, 1, color)
- end
- end
- end
- cam.End3D()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement