From d52b9f8b1f37f9426fe11c09360d1784f818cb50 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 4 Feb 2015 03:07:46 +0000 Subject: [PATCH] Added case for telling the user that they will be boss --- gamemodes/zombiesurvival/gamemode/cl_init.lua | 6 +++++- gamemodes/zombiesurvival/gamemode/languages/english.lua | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/gamemode/cl_init.lua b/gamemodes/zombiesurvival/gamemode/cl_init.lua index a0c303e..5c66632 100644 --- a/gamemodes/zombiesurvival/gamemode/cl_init.lua +++ b/gamemodes/zombiesurvival/gamemode/cl_init.lua @@ -782,7 +782,11 @@ function GM:ZombieHUD() draw_SimpleTextBlur(translate.Get("waiting_for_next_wave"), "ZSHUDFont", x, y, COLOR_DARKRED, TEXT_ALIGN_CENTER) local pl = GAMEMODE.NextBossZombie if pl and pl:IsValid() then - draw_SimpleTextBlur(translate.Format("x_will_be_next_boss_zombie", pl:Name()), "ZSHUDFont", x, y+th, pl == MySelf and COLOR_RED or COLOR_GREY, TEXT_ALIGN_CENTER) + if pl == MySelf then + draw_SimpleTextBlur(translate.Get("you_will_be_next_boss_zombie"), "ZSHUDFont", x, y+th, COLOR_RED, TEXT_ALIGN_CENTER) + else + draw_SimpleTextBlur(translate.Format("x_will_be_next_boss_zombie", pl:Name()), "ZSHUDFont", x, y+th, COLOR_GRAY, TEXT_ALIGN_CENTER) + end end if MySelf:GetZombieClassTable().NeverAlive then for _, ent in pairs(ents.FindByClass("prop_thrownbaby")) do diff --git a/gamemodes/zombiesurvival/gamemode/languages/english.lua b/gamemodes/zombiesurvival/gamemode/languages/english.lua index f8be656..b36a4a0 100644 --- a/gamemodes/zombiesurvival/gamemode/languages/english.lua +++ b/gamemodes/zombiesurvival/gamemode/languages/english.lua @@ -104,6 +104,7 @@ LANGUAGE.press_f2_for_the_points_shop = "Press F2 for the Points Shop!" LANGUAGE.breath = "Breath" LANGUAGE.zombie_volunteers = "Zombie Volunteers" LANGUAGE.x_will_be_next_boss_zombie = "%s will become a boss zombie soon!" +LANGUAGE.you_will_be_next_boss_zombie = "You will become a boss zombie soon!" LANGUAGE.x_discount_for_buying_between_waves = "%d%% discount for buying between waves!" LANGUAGE.number_of_initial_zombies_this_game = "Number of initial zombies this game (%d%%): %d" LANGUAGE.humans_closest_to_spawns_are_zombies = "The humans closest to the zombie spawns will start as zombies."