Fix hl2 weapon selector reappearance

This commit is contained in:
Fesiug 2023-12-21 03:50:35 -05:00
parent 05fd1908bf
commit bbfe086c0b
1 changed files with 22 additions and 1 deletions

View File

@ -975,3 +975,24 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function()
end end
end end
end ) 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