Benny/gamemodes/benny/gamemode/modules/player/cl_hud.lua

23 lines
460 B
Lua
Raw Normal View History

2023-09-13 22:15:43 -04:00
-- HUD
local hide = {
["CHudHealth"] = true,
["CHudBattery"] = true,
["CHudAmmo"] = true,
["CHudSecondaryAmmo"] = true,
["CHudPoisonDamageIndicator"] = true,
}
hook.Add( "HUDShouldDraw", "HideHUD", function( name )
if ( hide[ name ] ) then return false end
end )
function ss( scale )
return scale * ( ScrH() / 480 )
end
hook.Add( "HUDPaint", "Benny_HUDPaint", function()
surface.SetDrawColor( 0, 0, 0, 0 )
surface.DrawRect( 0, 0, 256, 256 )
end )