1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Дебаг сигнализации.

Почистил мусор
Перенес всю отрисовку дебаг информации в ENT:Draw()
This commit is contained in:
kosmik641
2025-12-06 02:51:30 +03:00
parent e393387043
commit aca7d7aa0a
7 changed files with 245 additions and 243 deletions

View File

@@ -7,6 +7,7 @@ function ENT:DrawTranslucent(flags)
self:SetNoDraw(true)
return
end
if LocalPlayer():GetPos():DistToSqr(self:GetPos()) > 200000 then return end
self:DrawModel(flags)
@@ -19,7 +20,7 @@ function ENT:DrawTranslucent(flags)
cam.End3D()
end
cvars.AddChangeCallback("metrostroi_drawsignaldebug", function (name, oldValue, newValue)
cvars.AddChangeCallback("metrostroi_drawsignaldebug", function()
local noDraw = not C_SignalDebug:GetBool()
for _,ent in pairs(ents.FindByClass("gmod_track_pa_marker")) do
ent:SetNoDraw(noDraw)