From c238703e770b71397d6c001d6a7586ba2df691e3 Mon Sep 17 00:00:00 2001 From: LiddulBOFH <13317534+LiddulBOFH@users.noreply.github.com> Date: Mon, 30 Sep 2024 22:22:57 -0500 Subject: [PATCH] Adjust error check for ballistic computers Was using the wrong position to check dot normal against incase the simulation went past the target --- lua/entities/acf_turret_computer/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/entities/acf_turret_computer/init.lua b/lua/entities/acf_turret_computer/init.lua index f54f0c58..918e9d70 100644 --- a/lua/entities/acf_turret_computer/init.lua +++ b/lua/entities/acf_turret_computer/init.lua @@ -512,7 +512,7 @@ do -- Metamethods and other important stuff Debug.Cross(Sim.StartPos + Sim.NextPos, 15, 8, Color(0, 255, 0), true) return self:AdjustSimulation() - elseif Dir:Dot((Point - Sim.NextPos):GetNormalized()) < 0 then + elseif Dir:Dot((Point - Sim.Pos):GetNormalized()) < 0 then Debug.Cross(Sim.StartPos + Sim.Pos, 30, 8, Color(255, 0, 0), true) return self:AdjustSimulation()