Skip to content

DebugOverlay

Fields

This class has no fields.


Functions

AddEntityTextOverlay

Name Type Description
ent_index int -
line_offset int -
duration float -
r int -
g int -
b int -
a int -
text string -
DebugOverlay.AddEntityTextOverlay(EngineClient.GetLocalPlayer(), 1, 2.0, 255, 255, 255, 255, "test")

AddBoxOverlay

Name Type Description
origin Vector -
mins Vector -
maxs Vector -
orientation QAngle -
r int -
g int -
b int -
a int -
duration float -
DebugOverlay.AddBoxOverlay(Vector.new(1, 2, 3), Vector.new(4, 5, 6), Vector.new(6, 7, 8), QAngle.new(9, 10, 11), 255, 255, 255, 255, 1.0)

AddSphereOverlay

Name Type Description
origin Vector -
radius float -
theta int -
phi int -
r int -
g int -
b int -
a int -
duration float -
DebugOverlay.AddSphereOverlay(Vector.new(1, 2, 3), 1.0, 10, 10, 255, 255, 255, 255, 1.0)

AddTriangleOverlay

Name Type Description
p1 Vector -
p2 Vector -
p3 Vector -
r int -
g int -
b int -
a int -
no_depth_test bool -
duration float -
DebugOverlay.AddTriangleOverlay(Vector.new(1, 2, 3), Vector.new(4, 5, 6), Vector.new(7, 8, 9), 255, 255, 255, 255, 1.0)

AddLineOverlay

Name Type Description
origin Vector -
dest Vector -
r int -
g int -
b int -
no_depth_test bool -
duration float -
DebugOverlay.AddLineOverlay(Vector.new(1, 2, 3), Vector.new(4, 5, 6), 255, 255, 255, 1.0)

AddScreenTextOverlay

Name Type Description
x float -
y float -
duration float -
r int -
g int -
b int -
a int -
text string -
DebugOverlay.AddScreenTextOverlay(100.0, 100.0, 4.0, 255, 255, 255, 255, "test")

AddSweptBoxOverlay

Name Type Description
start Vector -
end Vector -
mins Vector -
maxs Vector -
angles QAngle -
r int -
g int -
b int -
a int -
duration float -
DebugOverlay.AddSweptBoxOverlay(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), Vector.new(5.0, 5.0, 5.0), Vector.new(10.0, 10.0, 1.0), 255, 255, 255, 255, 4.0)

AddGridOverlay

Name Type Description
origin Vector -
DebugOverlay.AddGridOverlay(Vector.new(1.0, 2.0, 3.0))

ScreenPosition

Name Type Description
point Vector World position

Return value

Name Type Description
value Vector Screen position
local localplayer = EntityList.GetLocalPlayer()
local screenpos = DebugOverlay.ScreenPosition(localplayer:GetRenderOrigin())

AddLineOverlayAlpha

Name Type Description
origin Vector -
dest Vector -
r int -
g int -
b int -
a int -
no_depth_test bool -
duration float -
DebugOverlay.AddLineOverlayAlpha(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), 255, 255, 255, 255, true, 4.0)

AddCapsuleOverlay

Name Type Description
start Vector -
end Vector -
radius float -
r int -
g int -
b int -
a int -
duration float -
DebugOverlay.AddCapsuleOverlay(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), 4.0, 255, 255, 255, 127, 4.0)