Skip to content

Commit

Permalink
cl_drawhud fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Mar 21, 2024
1 parent f7caa9b commit 65beea5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lua/autorun/!!!random-patches.yue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CLIENT = CLIENT
SERVER = SERVER
pairs = pairs

addonName = "Random Patches v5.17.4"
addonName = "Random Patches v5.17.5"

getHookName = ( patchName, hookName ) ->
return addonName .. "::" .. patchName .. ( hookName or "" )
Expand Down Expand Up @@ -816,6 +816,21 @@ if SERVER

if CLIENT and not MENU_DLL

-- cl_drawhud chat fix
do

cl_drawhud = GetConVar( "cl_drawhud" )
:Close = chat

hook_Add "StartChat", getHookName( "cl_drawhud fix" ), ->
if cl_drawhud\GetBool!
return

Close!
return true

cvars.AddChangeCallback( "cl_drawhud", Close, getHookName( "cl_drawhud fix" ) )

do

gameevent.Listen( "server_cvar" )
Expand Down

0 comments on commit 65beea5

Please sign in to comment.