From 04edf77b1484b59c29cc4f43b021bd610cc086ee Mon Sep 17 00:00:00 2001 From: Fesiug Date: Mon, 9 Oct 2023 03:03:26 -0400 Subject: [PATCH] Round the crosshair pos --- gamemodes/benny/gamemode/modules/player/cl_hud.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamemodes/benny/gamemode/modules/player/cl_hud.lua b/gamemodes/benny/gamemode/modules/player/cl_hud.lua index bd3bb6b..6c7479d 100644 --- a/gamemodes/benny/gamemode/modules/player/cl_hud.lua +++ b/gamemodes/benny/gamemode/modules/player/cl_hud.lua @@ -445,6 +445,11 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function() pl_y = tr1f:ToScreen().y end + pl_x = math.Round( pl_x ) + pl_y = math.Round( pl_y ) + ps_x = math.Round( ps_x ) + ps_y = math.Round( ps_y ) + for i=1, 2 do local cooler = i == 1 and touse2 or touse1 local poosx, poosy = i == 1 and ps_x or pl_x, i == 1 and ps_y or pl_y