From 48422f02629222501d8d01977c221892d294dd05 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 10 Nov 2024 19:31:07 +0500 Subject: [PATCH] add checkbox for arc9 loadouts --- .../content/resource/localization/en/beatrun.properties | 2 ++ .../content/resource/localization/ru/beatrun.properties | 2 ++ beatrun/gamemodes/beatrun/gamemode/cl/ToolMenuSettings.lua | 3 +++ 3 files changed, 7 insertions(+) diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties index 6f11804..dfcb415 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/en/beatrun.properties @@ -269,3 +269,5 @@ beatrun.infection.end=The game has ended!\nSurvivors: %s\nRestarting in 15s # Server ConVars beatrun.randommwloadouts=Random MW Base Loadouts beatrun.randommwloadoutsdesc=Toggles random MW Base loadouts in Deathmatch and DataTheft +beatrun.randoarc9loadouts=Random ARC9 MW Loadouts +beatrun.randoarc9loadoutsdesc=Toggles random ARC9 MW 2019 loadouts in Deathmatch and DataTheft diff --git a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties index 6ffac5f..934424d 100644 --- a/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties +++ b/beatrun/gamemodes/beatrun/content/resource/localization/ru/beatrun.properties @@ -266,3 +266,5 @@ beatrun.infection.end=Игра окончена!\nВыжившие: %s\nПере # Server ConVars beatrun.randommwloadouts=Случайные наборы оружия MW Base beatrun.randommwloadoutsdesc=Переключает случайные наборы оружия MW Base в Deathmatch и DataTheft +beatrun.randoarc9loadouts=Случайные наборы оружия ARC9 MW +beatrun.randoarc9loadoutsdesc=Переключает случайные наборы оружия ARC9 MW 2019 в Deathmatch и DataTheft diff --git a/beatrun/gamemodes/beatrun/gamemode/cl/ToolMenuSettings.lua b/beatrun/gamemodes/beatrun/gamemode/cl/ToolMenuSettings.lua index 3a77c7a..16ae891 100644 --- a/beatrun/gamemodes/beatrun/gamemode/cl/ToolMenuSettings.lua +++ b/beatrun/gamemodes/beatrun/gamemode/cl/ToolMenuSettings.lua @@ -350,6 +350,9 @@ hook.Add("PopulateToolMenu", "Beatrun_ToolMenu", function() panel:CheckBox("#beatrun.randommwloadouts", "Beatrun_RandomMWLoadouts") panel:ControlHelp("#beatrun.randommwloadoutsdesc") + panel:CheckBox("#beatrun.randoarc9loadouts", "Beatrun_RandomARC9Loadouts") + panel:ControlHelp("#beatrun.randoarc9loadoutsdesc") + local DatatheftButton = vgui.Create("DButton", panel) DatatheftButton:SetText("#beatrun.toolsmenu.gamemodes.datatheft") DatatheftButton:SetSize(0, 20)