From bbfe086c0b349361ad4229481cafc5092e3e0677 Mon Sep 17 00:00:00 2001 From: Fesiug Date: Thu, 21 Dec 2023 03:50:35 -0500 Subject: [PATCH] Fix hl2 weapon selector reappearance --- .../benny/gamemode/modules/player/cl_hud.lua | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/gamemodes/benny/gamemode/modules/player/cl_hud.lua b/gamemodes/benny/gamemode/modules/player/cl_hud.lua index c5c4350..b177402 100644 --- a/gamemodes/benny/gamemode/modules/player/cl_hud.lua +++ b/gamemodes/benny/gamemode/modules/player/cl_hud.lua @@ -974,4 +974,25 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function() end end end -end ) \ No newline at end of file +end ) + +do + local qt = { + ["slot1"] = true, + ["slot2"] = true, + ["slot3"] = true, + ["slot4"] = true, + ["slot5"] = true, + ["slot6"] = true, + ["slot7"] = true, + ["slot8"] = true, + ["slot9"] = true, + ["slot0"] = true, + } + + hook.Add( "PlayerBindPress", "Benny_PlayerBindPress_Original", function( ply, bind, pressed, code ) + if qt[bind] and pressed then + return true + end + end) +end \ No newline at end of file