diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties index 2585730..2e240da 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties @@ -227,6 +227,8 @@ beatrun.deathmatch.start=Deathmatch! Kill players to get points! # Infection beatrun.infection.name=Infection +beatrun.infection.infectedtext=(Infected) +beatrun.infection.humantext=(Human) beatrun.infection.start=Infection! Touch other players to infect them\n%s player(s) will become infected in %ss beatrun.infection.nosurvivors=None... beatrun.infection.infected=was infected! diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties index 547fbee..26f08dc 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties @@ -227,6 +227,8 @@ beatrun.deathmatch.start=Deathmatch! Убивайте игроков чтобы # Infection beatrun.infection.name=Infection +beatrun.infection.infectedtext=(Заражённый) +beatrun.infection.humantext=(Человек) beatrun.infection.start=Infection! Дотрагивайтесь до других игроков чтобы заразить их\n%s игрок(а/ов) будет выбрано через %s сек beatrun.infection.nosurvivors=Никто... beatrun.infection.infected=был заражён! diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua index e9129e2..466db84 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/0_Misc.lua @@ -1,6 +1,6 @@ -if SERVER then - local allowPropSpawn = CreateConVar("Beatrun_AllowPropSpawn", "0", {FCVAR_ARCHIVE}) +local allowPropSpawn = CreateConVar("Beatrun_AllowPropSpawn", "0", {FCVAR_ARCHIVE}) +if SERVER then util.AddNetworkString("SPParkourEvent") local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"} diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Infection.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Infection.lua index b116838..ed65e5c 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Infection.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Infection.lua @@ -309,7 +309,7 @@ if CLIENT then local function InfectionHUDName() if GetGlobalBool("GM_INFECTION") then - local team = LocalPlayer():GetNW2Bool("Infected") and "(Infected)" or "(Human)" + local team = LocalPlayer():GetNW2Bool("Infected") and language.GetPhrase("beatrun.infection.infectedtext") or language.GetPhrase("beatrun.infection.humantext") return "Infection " .. team else