From 427dcc2337e610e8d6b2913e101cc29257be7d7d Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Fri, 17 Jan 2020 20:46:04 +0100 Subject: [PATCH] Added developer tools --- entities/weapons/quantum_hands/shared.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/entities/weapons/quantum_hands/shared.lua b/entities/weapons/quantum_hands/shared.lua index c55993a..4e841ff 100644 --- a/entities/weapons/quantum_hands/shared.lua +++ b/entities/weapons/quantum_hands/shared.lua @@ -12,6 +12,23 @@ if CLIENT then SWEP.SlotPos = 0 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false + + function SWEP:DrawHUD() + --if( self:GetOwner():IsSuperAdmin() ) then + + local hitpos = self:GetOwner():GetEyeTrace().HitPos + print("dRQAW") + local x, y, v = hitpos:ToScreen() + local w, h = 51 * Quantum.Client.ResolutionScale, 51 * Quantum.Client.ResolutionScale + surface.SetDrawColor( Color( 90, 90, 255, 255 ) ) + --surface.DrawRect( x, y, w, h ) + --surface.DrawRect( 10, 10, w, h ) + surface.SetTextPos( 10, 10 ) + surface.SetTextColor( Color( 200, 200, 200, 200 ) ) + surface.SetFont( "Default" ) + surface.DrawText( "Developer Mode" ) + --end + end end SWEP.WorldModel = ""