diff --git a/gamemodes/benny/gamemode/modules/player/cl_hud.lua b/gamemodes/benny/gamemode/modules/player/cl_hud.lua index b479092..e815826 100644 --- a/gamemodes/benny/gamemode/modules/player/cl_hud.lua +++ b/gamemodes/benny/gamemode/modules/player/cl_hud.lua @@ -503,7 +503,7 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function() if wep:D_GetMagID( hand ) != "" then table.insert( newmaglist, wep:D_GetMagID( hand ) ) end - if wep:D_GetMagID( !hand ) != "" then + if false and (wep_table.Class == wep:BTable( !hand ).Class) and wep:D_GetMagID( !hand ) != "" then table.insert( newmaglist, wep:D_GetMagID( !hand ) ) end for i, v in ipairs( maglist ) do @@ -518,8 +518,6 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function() surface.SetDrawColor( scheme["fg"] ) surface.DrawOutlinedRect( m_x + bb - chunk, m_y + bb, m_w - b2, m_h - b2, ss( 0.5 ) ) - local perc = math.abs( math.cos( CurTime() ) ) - local s1 = (m_h - b2 - b2) local s2 = (m_h - b2 - b2) * (inv[tag] and ( inv[tag].Ammo / WEAPONS[inv[tag].Class].Ammo ) or 8) local s3 = math.floor( s2 - s1 ) @@ -719,6 +717,12 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function() end end + if wep then -- Fatinv + local inv = p:INV_Get() + + local b_x, b_y = Wb, Hb + end + do -- Captions local space = Hb for aaa, caption in pairs(captions) do