zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_hammer/cl_init.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

19 lines
580 B
Lua

INC_CLIENT()
SWEP.ViewModelFOV = 75
function SWEP:DrawHUD()
if GetGlobalBool("classicmode") then return end
local screenscale = BetterScreenScale()
surface.SetFont("ZSHUDFont")
local nails = self:GetPrimaryAmmoCount()
local text = translate.Format("nails_x", nails)
local nTEXW, nTEXH = surface.GetTextSize(text)
draw.SimpleTextBlurry(text, "ZSHUDFont", ScrW() - nTEXW * 0.75 - 32 * screenscale, ScrH() - nTEXH * 1.5, nails > 0 and COLOR_LIMEGREEN or COLOR_RED, TEXT_ALIGN_CENTER)
if GetConVar("crosshair"):GetInt() ~= 1 then return end
self:DrawCrosshairDot()
end