Public feed #379902

Stuff

public text v1 · immutable
Raw Edit
·published 2007-03-03 16:26 UTC
rendered paste body
WAMHud = {}
/*
-----------------------------------------
This script was created by Wesnc/Raven-Rave/Mark Birge
Also, Please let me know if you want to use this code in something.

WAM is Wesnc's Adminstration Mod
-----------------------------------------
*/

include("WAMTopBar.lua")

function WAMTopBar()
	
	local client = LocalPlayer()
	if !client:Alive() then return end 
	
	local mag_left = client:GetActiveWeapon():Clip1()
	local mag_extra = client:GetAmmoCount(client:GetActiveWeapon():GetPrimaryAmmoType()) 
	local secondary_ammo = client:GetAmmoCount(client:GetActiveWeapon():GetSecondaryAmmoType())
	
	draw.RoundedBox(0, 0, ScrW(), 0, 24, Color(255, 225, 225, 255)) 

end

hook.Add("HUDPaint", "WAMTopBar", WAMTopBar	)  	
w
function hudhide(name)
	if name == "CHudHealth" then return false end
    if name == "CHudBattery" then return false end
    if name == "CHudAmmo" then return false end
    if name == "CHudSecondaryAmmo" then return false end
    return true
end
hook.Add("HUDShouldDraw", "hidehud", hidehud)