mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-01-31 12:07:27 +05:00
fixed the fucking shapedrawer, sorry =)
This commit is contained in:
parent
f0617bd0ac
commit
8446ec37b5
1 changed files with 2 additions and 2 deletions
|
@ -85,9 +85,9 @@ end
|
||||||
hook.Add("PostDrawTranslucentRenderables", "ShapeGun", function()
|
hook.Add("PostDrawTranslucentRenderables", "ShapeGun", function()
|
||||||
local ply = Entity(1)
|
local ply = Entity(1)
|
||||||
local wep = ply:GetActiveWeapon()
|
local wep = ply:GetActiveWeapon()
|
||||||
local isShapeDrawer = wep:GetClass() == "shapedrawer"
|
local isShapeDrawer = IsValid(wep) and wep:GetClass() == "shapedrawer"
|
||||||
|
|
||||||
if IsValid(ply) and IsValid(wep) and isShapeDrawer then
|
if IsValid(ply) and isShapeDrawer then
|
||||||
for _, v in ipairs(wep.points) do
|
for _, v in ipairs(wep.points) do
|
||||||
render.DrawWireframeBox(v, angle_zero, Vector(-1, -1, -1), Vector(1, 1, 1))
|
render.DrawWireframeBox(v, angle_zero, Vector(-1, -1, -1), Vector(1, 1, 1))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue