Skip to content

Commit

Permalink
Use new debug library
Browse files Browse the repository at this point in the history
New debug library which is just a wrapped version of debugoverlay, with a new required convar
  • Loading branch information
LiddulBOFH committed Jun 10, 2024
1 parent aa8e199 commit 4a7d38f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/entities/acf_missile/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local Classes = ACF.Classes
local Clock = ACF.Utilities.Clock
local Sounds = ACF.Utilities.Sounds
local Damage = ACF.Damage
local Debug = ACF.Debug
local Missiles = Classes.Missiles
local InputActions = ACF.GetInputActions("acf_missile")
local HookRun = hook.Run
Expand Down Expand Up @@ -284,7 +285,7 @@ local function CalcFlight(Missile)
Missile.CurDir = Dir

--Missile trajectory debugging
debugoverlay.Line(Pos, EndPos, 10, Color(0, 255, 0))
Debug.Line(Pos, EndPos, 10, Color(0, 255, 0))

Missile:DoFlight()
end
Expand Down Expand Up @@ -613,7 +614,7 @@ function ENT:Detonate(Destroyed)
return Fuze:HandleDetonation(self, BulletData)
end

debugoverlay.Line(BulletData.Pos, BulletData.Pos + BulletData.Flight, 10, Color(255, 128, 0))
Debug.Line(BulletData.Pos, BulletData.Pos + BulletData.Flight, 10, Color(255, 128, 0))

BulletData.DetonatorAngle = 91

Expand Down

0 comments on commit 4a7d38f

Please sign in to comment.