Use BennyCheck here
This commit is contained in:
parent
221462ae02
commit
f2f3ed7da8
|
@ -286,11 +286,7 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
do -- Weapon
|
if p:BennyCheck() then -- Weapon
|
||||||
if !(IsValid(wep) and wep:GetClass() == "benny") then
|
|
||||||
print( "Failed to retrieve 'benny' weapon!" )
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local inv = p:INV_Get()
|
local inv = p:INV_Get()
|
||||||
local wep1 = wep:BTable( false )
|
local wep1 = wep:BTable( false )
|
||||||
local wep1c = wep:BClass( false )
|
local wep1c = wep:BClass( false )
|
||||||
|
@ -728,8 +724,7 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local arena = false
|
if false then -- MP / Arena UI
|
||||||
if arena then
|
|
||||||
surface.SetDrawColor( scheme["bg"] )
|
surface.SetDrawColor( scheme["bg"] )
|
||||||
|
|
||||||
local r_x, r_y, r_w, r_h = sw/2 - ss(180/2), b, ss(180), ss(30)
|
local r_x, r_y, r_w, r_h = sw/2 - ss(180/2), b, ss(180), ss(30)
|
||||||
|
@ -737,7 +732,7 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function()
|
||||||
surface.DrawRect( r_x, r_y, r_w, r_h )
|
surface.DrawRect( r_x, r_y, r_w, r_h )
|
||||||
|
|
||||||
do -- Time
|
do -- Time
|
||||||
local tt = string.FormattedTime( (60*15)-(CurTime() % 60) )
|
local tt = string.FormattedTime( (60*1)-(CurTime() % 60) )
|
||||||
local d1, d2
|
local d1, d2
|
||||||
if tt.m > 0 then
|
if tt.m > 0 then
|
||||||
d1 = tt.m -- .. ":"
|
d1 = tt.m -- .. ":"
|
||||||
|
@ -804,14 +799,14 @@ hook.Add( "HUDPaint", "Benny_HUDPaint", function()
|
||||||
surface.SetTextPos( s_x + ss(2), s_y + ss(1) )
|
surface.SetTextPos( s_x + ss(2), s_y + ss(1) )
|
||||||
surface.DrawText( i==1 and "HALO" or "CIA" )
|
surface.DrawText( i==1 and "HALO" or "CIA" )
|
||||||
|
|
||||||
local score = i==1 and "100" or "12000"
|
local score = i==1 and "100" or "1200"
|
||||||
surface.SetTextPos( s_x + s_w - surface.GetTextSize( score ) - ss(2), s_y + ss(1) )
|
surface.SetTextPos( s_x + s_w - surface.GetTextSize( score ) - ss(2), s_y + ss(1) )
|
||||||
surface.DrawText( score )
|
surface.DrawText( score )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if true then
|
if false and p:BennyCheck() then
|
||||||
local bx, by = sw/2, sh*(0.75)
|
local bx, by = sw/2, sh*(0.75)
|
||||||
local mx = 50
|
local mx = 50
|
||||||
draw.SimpleText( "Clip1: " .. wep:Clip1(), "Trebuchet24", bx-mx, by+24*0, color_white, TEXT_ALIGN_RIGHT, TEXT_ALIGN_TOP )
|
draw.SimpleText( "Clip1: " .. wep:Clip1(), "Trebuchet24", bx-mx, by+24*0, color_white, TEXT_ALIGN_RIGHT, TEXT_ALIGN_TOP )
|
||||||
|
|
Loading…
Reference in New Issue