zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/cl_zombieescape.lua

12 lines
528 B
Lua
Raw Normal View History

2014-10-02 08:49:54 +08:00
include("sh_zombieescape.lua")
if not GM.ZombieEscape then return end
hook.Add("HUDPaint", "zombieescape", function()
if not MySelf:IsValid() then return end
if GAMEMODE:GetWave() == 0 and not GAMEMODE:GetWaveActive() and (MySelf:Team() == TEAM_UNDEAD or CurTime() < GAMEMODE:GetWaveStart() - GAMEMODE.ZE_FreezeTime) then
draw.SimpleTextBlur(translate.Format("ze_humans_are_frozen_until_x", GAMEMODE.ZE_FreezeTime), "ZSHUDFontSmall", ScrW() / 2, ScrH() / 2, COLOR_DARKRED, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
end
end)