Centralize Hunter interface strings and verify mobile HUD

This commit is contained in:
Leshyi committed 2026-11-30 01:35:03 +05:00
1 parent 16a359d4af
commit c88c3501b3
21 files changed
+752 -336

No files matched your search

+9 -7
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.ArenaObjectiveSites
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Modes = require(ReplicatedStorage:WaitForChild("ArenaModes") :: ModuleScript)
@@ -32,13 +34,13 @@ function Sites.resolve(id: string): Map
local gallery = {Vector3.new(0, level, 44), Vector3.new(0, level, -44)}
local roof = {Vector3.yAxis * level * 2, Vector3.new(0, level * 2, 12)}
return {
blue = find("База синих", {-base}).position,
orange = find("База оранжевых", {base}).position,
ground = find("Нижний проход", {Vector3.zero, Vector3.new(0, 0, 6)}),
gallery = find("Средняя галерея", gallery),
roof = find("Крыша цитадели", roof),
west = find("Западный фланг", {Vector3.new(-162.6, 0, 0), Vector3.new(-145, 0, 0), Vector3.new(-120, 0, 0)}),
east = find("Восточный фланг", {Vector3.new(162.6, 0, 0), Vector3.new(145, 0, 0), Vector3.new(120, 0, 0)}),
blue = find(Text.bazaSinikh, {-base}).position,
orange = find(Text.bazaOranzhevykh, {base}).position,
ground = find(Text.nizhniyProkhod, {Vector3.zero, Vector3.new(0, 0, 6)}),
gallery = find(Text.srednyayaGalereya, gallery),
roof = find(Text.kryshaTsitadeli, roof),
west = find(Text.zapadnyyFlang, {Vector3.new(-162.6, 0, 0), Vector3.new(-145, 0, 0), Vector3.new(-120, 0, 0)}),
east = find(Text.vostochnyyFlang, {Vector3.new(162.6, 0, 0), Vector3.new(145, 0, 0), Vector3.new(120, 0, 0)}),
}
end
+34 -33
View File
@@ -22,6 +22,7 @@ local objectiveCueConnection = objectiveCue.OnClientEvent:Connect(function(captu
end)
local Hunter = ReplicatedStorage:WaitForChild("Hunter")
local HunterStrings = require(Hunter:WaitForChild("Strings") :: ModuleScript)
local Text = HunterStrings.interface.ArenaRoundHud
local RoundStrings = HunterStrings.round
local SiegeResults = require(Hunter:WaitForChild("SiegeResults") :: ModuleScript)
local SiegeConfig = require(ReplicatedStorage:WaitForChild("CitadelAssaultConfig") :: ModuleScript)
@@ -429,10 +430,10 @@ local function refreshCapture()
captureCueTeam, captureCuePhase = if phase == "Captured" then nil else side, phase
local accent = if not side then UI.Gold elseif allied then allyCapture else enemyCapture
captureHud.Visible = true
captureLabel.Text = if phase == "Captured" then "ТОЧКА ЗАХВАЧЕНА · +1"
captureLabel.Text = if phase == "Captured" then Text.tochkaZakhvachena
elseif phase == "Contested" then HunterStrings.hotHints.contest
elseif phase == "UnderFire" then HunterStrings.hotHints.underFire
elseif allied then HunterStrings.hotHints.taking else "СОПЕРНИКИ ЗАХВАТЫВАЮТ"
elseif allied then HunterStrings.hotHints.taking else Text.sopernikiZakhvatyvayut
local percent = math.clamp((match:GetAttribute("HotPointProgress") :: number?) or 0, 0, 100)
captureValue.Text, captureValue.TextColor3 = string.format("%d%%", percent), accent
captureArc:SetAttribute("Accent", accent)
@@ -479,7 +480,7 @@ local function refreshObjective()
local role = if attacking then "▲ " .. RoundStrings.attack else "◆ " .. RoundStrings.defend
local point = (siege:GetAttribute("PointName") :: string?) or ""
local roleColor = if attacking then accent else UI.Gold
objectiveTitle.Text = if phase == "RoleSwap" then RoundStrings.swap else string.format("АТАКА %d/2 · %d:%02d",
objectiveTitle.Text = if phase == "RoleSwap" then RoundStrings.swap else string.format(Text.atakaDDD,
if phase == "Attack2" then 2 else 1, math.floor(seconds / 60), seconds % 60)
objectiveText.Text = role .. (if point ~= "" then " · " .. point else "")
objectiveTitle.TextColor3 = roleColor
@@ -540,15 +541,15 @@ local function refreshObjective()
tick.BackgroundTransparency = if progress + 1e-7 >= i / 10 then 0 else .8
end
end
rateLabel.Text = string.format("СИНИЕ +%d/с ОРАНЖЕВЫЕ +%d/с",
rateLabel.Text = string.format(Text.sinieDSOranzhevye,
(match:GetAttribute("ScoreRate_Blue") :: number?) or 0, (match:GetAttribute("ScoreRate_Orange") :: number?) or 0)
end
local modeHint = playerGui:GetAttribute("ModeHint")
if rule.id ~= "Siege" and typeof(modeHint) == "string" then text = modeHint end
local tokens = (player:GetAttribute("ArenaTokens") :: number?) or 0
if player:GetAttribute("ArenaFlag") and typeof(modeHint) ~= "string" then text = "У вас флаг · Несите его на свою базу"
elseif tokens > 0 and typeof(modeHint) ~= "string" then text = "Жетонов у вас: " .. tokens .. " · Вернитесь на базу"
elseif player:GetAttribute("ArenaLeader") and typeof(modeHint) ~= "string" then text = "Вы лидер · За вас дают 3 очка"
if player:GetAttribute("ArenaFlag") and typeof(modeHint) ~= "string" then text = Text.uVasFlagNesite
elseif tokens > 0 and typeof(modeHint) ~= "string" then text = Text.zhetonovUVas .. tokens .. Text.vernitesNaBazu
elseif player:GetAttribute("ArenaLeader") and typeof(modeHint) ~= "string" then text = Text.vyLiderZaVas
elseif rule.id == "TrophyHunt" and typeof(modeHint) ~= "string" then text = "" end
objectiveStatus.Visible = text ~= ""
objectiveStatus.Text = text
@@ -591,7 +592,7 @@ end
resultsShade:GetPropertyChangedSignal("AbsoluteSize"):Connect(fitResults)
fitResults()
local resultArc = UI.contour(resultsPanel, blue)
local resultTitle = UI.label(resultsPanel, "Title", "ИТОГИ РАУНДА", UDim2.fromOffset(26, 17), UDim2.fromOffset(510, 42), 31, ink)
local resultTitle = UI.label(resultsPanel, "Title", Text.itogiRaunda, UDim2.fromOffset(26, 17), UDim2.fromOffset(510, 42), 31, ink)
resultTitle.FontFace = UI.Display
resultTitle.TextXAlignment = Enum.TextXAlignment.Left
local resultWinner = UI.label(resultsPanel, "Winner", "", UDim2.fromOffset(27, 60), UDim2.fromOffset(510, 25), 17, UI.Gold)
@@ -610,7 +611,7 @@ lobbyButton.BorderSizePixel = 0
lobbyButton.FontFace = UI.Display
lobbyButton.TextSize = 14
lobbyButton.TextColor3 = ink
lobbyButton.Text = "ВЫЙТИ В ЛОББИ"
lobbyButton.Text = Text.vyytiVLobbi
lobbyButton.Visible = false
corners(lobbyButton, 5)
lobbyButton.Parent = resultsPanel
@@ -682,10 +683,10 @@ local function resultTeam(id: string, x: number, name: string, color: Color3, da
score.FontFace = UI.Display
local head = frame("Columns", card, UDim2.fromOffset(12, 73), UDim2.fromOffset(422, 25), panelColor)
head.BackgroundTransparency = 1
local playerHeader = UI.label(head, "Player", "ИГРОК", UDim2.fromOffset(8, 0), UDim2.fromOffset(200, 25), 12, muted)
local playerHeader = UI.label(head, "Player", Text.igrok, UDim2.fromOffset(8, 0), UDim2.fromOffset(200, 25), 12, muted)
playerHeader.TextXAlignment = Enum.TextXAlignment.Left
UI.label(head, "Kills", "УБИЙСТВА", UDim2.fromOffset(241, 0), UDim2.fromOffset(93, 25), 12, muted)
UI.label(head, "Deaths", "СМЕРТИ", UDim2.fromOffset(334, 0), UDim2.fromOffset(86, 25), 12, muted)
UI.label(head, "Kills", Text.ubiystva, UDim2.fromOffset(241, 0), UDim2.fromOffset(93, 25), 12, muted)
UI.label(head, "Deaths", Text.smerti, UDim2.fromOffset(334, 0), UDim2.fromOffset(86, 25), 12, muted)
local rows: {ResultRow} = {}
for i = 1, limit do
local row = UI.element("PlayerRow", card, UDim2.fromOffset(12, 102 + (i - 1) * 35), UDim2.fromOffset(422, 32))
@@ -700,12 +701,12 @@ local function resultTeam(id: string, x: number, name: string, color: Color3, da
kills.FontFace = UI.Display
rows[i] = {body = row, avatar = avatar, name = nameLabel, kills = kills, deaths = deaths}
end
local empty = UI.label(card, "Empty", "В команде не было игроков", UDim2.fromOffset(12, 105), UDim2.fromOffset(422, 54), 15, muted)
local empty = UI.label(card, "Empty", Text.vKomandeNeBylo, UDim2.fromOffset(12, 105), UDim2.fromOffset(422, 54), 15, muted)
return {card = card, score = score, empty = empty, accent = color, rows = rows}
end
local blueResult = resultTeam("Blue", 23, "СИНИЕ", blue, blueDark)
local orangeResult = resultTeam("Orange", 491, "ОРАНЖЕВЫЕ", orange, orangeDark)
local blueResult = resultTeam("Blue", 23, Text.sinie, blue, blueDark)
local orangeResult = resultTeam("Orange", 491, Text.oranzhevye, orange, orangeDark)
local siegeRecap = UI.label(resultsPanel, "SiegeTimes", "", UDim2.fromOffset(30, 0), UDim2.fromOffset(900, 84), 16, ink)
siegeRecap.TextWrapped = true
siegeRecap.TextXAlignment = Enum.TextXAlignment.Left
@@ -726,7 +727,7 @@ local resultFill = resultTrack:WaitForChild("Fill") :: Frame
UI.sheen(resultFill)
local resultEndsAt = 0
local lastResultSecond = -1
local resultsCountdown = "ГОЛОСОВАНИЕ ЧЕРЕЗ %d С"
local resultsCountdown = Text.golosovanieCherezDS
local summaryView: SummaryView? = nil
local resultSlide: Tween? = nil
local resultFade: Tween? = nil
@@ -735,7 +736,7 @@ local resultDrain: Tween? = nil
local function populateResults(team: ResultTeam, score: number, players: {ResultPlayer})
team.score.Text = tostring(score)
team.empty.Visible = #players == 0
team.empty.Text = if summaryView == "Live" then "В команде пока нет игроков" else "В команде не было игроков"
team.empty.Text = if summaryView == "Live" then Text.vKomandePokaNet else Text.vKomandeNeBylo
for i, row in team.rows do
local member = players[i]
row.body.Visible = member ~= nil
@@ -743,7 +744,7 @@ local function populateResults(team: ResultTeam, score: number, players: {Result
setPortrait(row.avatar, member and member.userId, member and member.displayName)
if member then
local self = member.userId == player.UserId
row.name.Text = (if self then "Вы · " else "") .. member.displayName
row.name.Text = (if self then Text.vy else "") .. member.displayName
row.kills.Text = tostring(member.kills)
row.deaths.Text = tostring(member.deaths)
row.body.BackgroundColor3 = panelColor:Lerp(team.accent, if self then .34 elseif i % 2 == 0 then .08 else .15)
@@ -777,11 +778,11 @@ local function startSummary(view: SummaryView, ruleId: unknown)
resultsExtra.Visible = view == "Final"
lobbyButton.Visible = view == "Live" and player:GetAttribute("InArena") == true
resultsGui:SetAttribute("LiveScoreboardOpen", view == "Live")
resultTitle.Text = if view == "Live" then "СТАТИСТИКА МАТЧА" else "ИТОГИ РАУНДА"
resultTitle.Text = if view == "Live" then Text.statistikaMatcha else Text.itogiRaunda
local rule = Rules.get(ruleId)
resultMode.Text = rule.title .. " · Динамическая арена"
resultMode.Text = rule.title .. Text.dinamicheskayaArena
if view == "Live" then
resultWinner.Text = "СЧЁТ · " .. rule.score
resultWinner.Text = Text.schyot .. rule.score
resultWinner.TextColor3 = muted
end
resultsPanel.Position = UDim2.fromScale(.5, .53)
@@ -868,8 +869,8 @@ local function remaining(): number
end
local function updateLiveClock(seconds: number, phase: string, duration: number)
local remainingText = if phase == "Round" then "ДО КОНЦА РАУНДА" else "ДО СЛЕДУЮЩЕГО РАУНДА"
nextRound.Text = string.format("%s %02d:%02d · ОТПУСТИТЕ TAB, ЧТОБЫ ЗАКРЫТЬ", remainingText, seconds // 60, seconds % 60)
local remainingText = if phase == "Round" then Text.doKontsaRaunda else Text.doSleduyuschegoRaunda
nextRound.Text = string.format(Text.sDDOtpustite, remainingText, seconds // 60, seconds % 60)
if resultDrain then resultDrain:Cancel() end
resultDrain = TweenService:Create(resultFill, TweenInfo.new(.22, Enum.EasingStyle.Linear), {
Size = UDim2.fromScale(math.clamp(seconds / math.max(duration, 1), 0, 1), 1),
@@ -961,8 +962,8 @@ results.OnClientEvent:Connect(function(result: RoundResult, participantSide: str
end
setSummaryTeams(result.blue, result.orange, result.blueScore, result.orangeScore)
local winnerColor = if result.winner == "Blue" then blue elseif result.winner == "Orange" then orange else UI.Gold
resultWinner.Text = if result.winner == "Blue" then "СИНИЕ ПОБЕДИЛИ"
elseif result.winner == "Orange" then "ОРАНЖЕВЫЕ ПОБЕДИЛИ" else "НИЧЬЯ"
resultWinner.Text = if result.winner == "Blue" then Text.siniePobedili
elseif result.winner == "Orange" then Text.oranzhevyePobedili else Text.nichYa
resultReason.Text = result.reason or result.siegeReason or ""
local personal = result.contributions and result.contributions[tostring(player.UserId)] or {}
local entries: {string} = {}
@@ -981,11 +982,11 @@ results.OnClientEvent:Connect(function(result: RoundResult, participantSide: str
highlights.Text = table.concat(entries, " / ")
if result.ruleset == "Siege" and (participantSide == "Blue" or participantSide == "Orange") then
if result.winner == "Draw" then
showOutcome("НИЧЬЯ", ink)
showOutcome(Text.nichYa, ink)
elseif result.winner == participantSide then
showOutcome("ПОБЕДА", UI.Gold)
showOutcome(Text.pobeda, UI.Gold)
else
showOutcome("ПОРАЖЕНИЕ", Color3.fromRGB(255, 105, 111))
showOutcome(Text.porazhenie, Color3.fromRGB(255, 105, 111))
end
end
resultWinner.TextColor3 = winnerColor
@@ -994,7 +995,7 @@ results.OnClientEvent:Connect(function(result: RoundResult, participantSide: str
resultFill.Size = UDim2.fromScale(math.clamp(left / result.duration, 0, 1), 1)
resultEndsAt = result.endsAt
lastResultSecond = math.ceil(left)
resultsCountdown = if result.allowModeChange == false then "СЛЕДУЮЩИЙ РАУНД ЧЕРЕЗ %d С" else "ГОЛОСОВАНИЕ ЧЕРЕЗ %d С"
resultsCountdown = if result.allowModeChange == false then Text.sleduyuschiyRaundCherezD else Text.golosovanieCherezDS
nextRound.Text = string.format(resultsCountdown, lastResultSecond)
resultDrain = TweenService:Create(resultFill, TweenInfo.new(left, Enum.EasingStyle.Linear), {Size = UDim2.fromScale(0, 1)})
resultDrain:Play()
@@ -1113,10 +1114,10 @@ local function updateClock()
local rule = Rules.get(activeState():GetAttribute("Ruleset"))
if inArena and (rule.id == "Siege" or rule.id == "Domination" or rule.id == "OneLife") then refreshObjective() end
mode.Visible = true
mode.Text = if intro then RoundStrings.untilStart elseif stage == "RoleSwap" then RoundStrings.swap elseif phase == "Vote" then "ГОЛОСОВАНИЕ" elseif phase == "Reveal" then "ДО НАЧАЛА РАУНДА"
elseif phase == "Break" then (if activeState():GetAttribute("AllowModeChange") == false then "ДО НАЧАЛА РАУНДА" else "ДО ГОЛОСОВАНИЯ")
elseif phase == "Round" then (if inArena then "ДО КОНЦА РАУНДА" else rule.title)
else "ПОДГОТОВКА АРЕНЫ"
mode.Text = if intro then RoundStrings.untilStart elseif stage == "RoleSwap" then RoundStrings.swap elseif phase == "Vote" then Text.golosovanie elseif phase == "Reveal" then Text.doNachalaRaunda
elseif phase == "Break" then (if activeState():GetAttribute("AllowModeChange") == false then Text.doNachalaRaunda else Text.doGolosovaniya)
elseif phase == "Round" then (if inArena then Text.doKontsaRaunda else rule.title)
else Text.podgotovkaAreny
clock.Position = UDim2.fromOffset(0, 14)
clock.TextSize = 32
clock.Text = string.format("%02d:%02d", seconds // 60, seconds % 60)
+4 -3
View File
@@ -13,6 +13,7 @@ local Timeline = require(Hunter:WaitForChild("Timeline") :: ModuleScript)
local Stage = require(Hunter:WaitForChild("Stage") :: ModuleScript)
local RoundConfig = require(Hunter:WaitForChild("RoundConfig") :: ModuleScript)
local Strings = require(Hunter:WaitForChild("Strings") :: ModuleScript)
local Text = Strings.interface.ArenaRounds
local Runtime = script.Parent:WaitForChild("ModeRuntime")
local RoundPlayer = require(Runtime:WaitForChild("PlayerRoundState") :: ModuleScript)
local Stats = require(Runtime:WaitForChild("Stats") :: ModuleScript)
@@ -70,8 +71,8 @@ local pendingJoins: {[Player]: PendingJoin} = {}
local matches: {[string]: Match} = {
[Modes.Procedural] = {
id = Modes.Procedural, state = randomState,
blue = makeTeam("Синие", BrickColor.new("Cyan")),
orange = makeTeam("Оранжевые", BrickColor.new("Deep orange")),
blue = makeTeam(Text.sinie, BrickColor.new("Cyan")),
orange = makeTeam(Text.oranzhevye, BrickColor.new("Deep orange")),
phase = "Setup", endsAt = 0, order = 0, rule = Rules.Default, allowModeChange = true, eligible = {}, ballots = {},
},
}
@@ -305,7 +306,7 @@ local function spawnCharacter(player: Player, previous: Model?)
if player.Parent ~= Players or player.Character ~= previous then return end
local ok, issue = pcall(player.LoadCharacterAsync, player)
if ok then return end
warn("Не удалось возродить игрока:", issue)
warn(Text.neUdalosVozroditIgroka, issue)
if attempt == 1 then task.wait(1) end
end
end
+6 -4
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.CitadelScoreService
local Score = {}
export type Side = "Blue" | "Orange"
export type Ledger = {[Side]: {number}}
@@ -13,16 +15,16 @@ function Score.winner(ledger: Ledger, epsilon: number): (string, string)
local b, o = #ledger.Blue, #ledger.Orange
if b ~= o then
local side = if b > o then "Blue" else "Orange"
return side, side .. " взяли больше рубежей"
return side, side .. Text.vzyaliBolSheRubezhey
end
if b == 0 then return "Draw", "Ничья: обе команды без захватов" end
if b == 0 then return "Draw", Text.nichYaObeKomandy end
local blue, orange = ledger.Blue[b], ledger.Orange[o]
if math.abs(blue - orange) <= epsilon then return "Draw", "Ничья: время захвата совпало" end
if math.abs(blue - orange) <= epsilon then return "Draw", Text.nichYaVremyaZakhvata end
local side = if blue < orange then "Blue" else "Orange"
local function clock(t: number): string
return string.format("%d:%05.2f", math.floor(t / 60), t % 60)
end
return side, string.format("Победа по скорости: %s, рубеж %d (Blue %s, Orange %s)", side, b, clock(blue), clock(orange))
return side, string.format(Text.pobedaPoSkorostiS, side, b, clock(blue), clock(orange))
end
return Score
+4 -2
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.DamageNumbers
-- LocalScript in StarterPlayerScripts.
-- Floating damage numbers for the shooter: the server confirms each hit
-- (ReplicatedStorage.SniperHit: position, damage, zone, killed) and the number pops out where the
@@ -132,11 +134,11 @@ local function popup(position: Vector3, damage: number, zone: string, killed: bo
else
skullIcon(group).LayoutOrder = 0
end
local caption = textLabel(group, if zone == "Head" then "Хедшот!" else "Убит!", 22, Color3.new(1, 1, 1), Color3.fromRGB(20, 20, 28), 2.5)
local caption = textLabel(group, if zone == "Head" then Text.khedshot else Text.ubit, 22, Color3.new(1, 1, 1), Color3.fromRGB(20, 20, 28), 2.5)
caption.Font = Enum.Font.GothamBlack
caption.LayoutOrder = 1
elseif zone == "Head" then
local crit = textLabel(group, "КРИТ", 24, CRIT_COLOR, Color3.new(1, 1, 1), 2.5)
local crit = textLabel(group, Text.krit, 24, CRIT_COLOR, Color3.new(1, 1, 1), 2.5)
crit.Rotation = -8
crit.LayoutOrder = 1
end
+60 -58
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.HostedArenaHud
local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
@@ -87,18 +89,18 @@ local function makeList(parent: Instance, name: string, position: UDim2, size: U
return scroll
end
local launch = button(gui, "OpenArenaCreator", if hosted then "‹ В ОБЩЕЕ ЛОББИ" else "+ СОЗДАТЬ АРЕНУ",
local launch = button(gui, "OpenArenaCreator", if hosted then Text.vObscheeLobbi else Text.sozdatArenu,
UDim2.new(1, -24, 1, -42), UDim2.fromOffset(264, 52), violet, true)
launch.AnchorPoint = Vector2.new(1, 1)
launch.Modal = true
local browser = UI.plate(gui, "PublicArenas", UDim2.new(1, -24, 1, -104), UDim2.fromOffset(264, 432), UI.Blue, dark)
browser.AnchorPoint = Vector2.new(1, 1)
local browserTitle = leftLabel(browser, "Heading", if hosted then "АРЕНА СЕССИИ" else "ПУБЛИЧНЫЕ АРЕНЫ", 13, 7, 173, 34, 16, UI.Ink)
local browserTitle = leftLabel(browser, "Heading", if hosted then Text.arenaSessii else Text.publichnyeAreny, 13, 7, 173, 34, 16, UI.Ink)
browserTitle.FontFace = UI.Display
local ownerLabel = leftLabel(browser, "Owner", "", 13, 38, 237, 21, 12, UI.Muted)
ownerLabel.Visible = hosted
local refreshDirectory = button(browser, "Refresh", "ОБНОВИТЬ", UDim2.fromOffset(191, 9), UDim2.fromOffset(61, 31), UI.Blue)
local refreshDirectory = button(browser, "Refresh", Text.obnovit, UDim2.fromOffset(191, 9), UDim2.fromOffset(61, 31), UI.Blue)
refreshDirectory.TextSize = 10
refreshDirectory.Visible = not hosted and not localPreview
local listTop = if hosted then 64 else 47
@@ -106,7 +108,7 @@ local cardHeight, moreHeight = 184, 37
local browserChrome = listTop + 10
local contentHeight = cardHeight
local arenaList = makeList(browser, "List", UDim2.fromOffset(10, listTop), UDim2.new(0, 244, 1, -browserChrome), UI.Blue)
local moreArenas = button(arenaList, "More", "ПОКАЗАТЬ ЕЩЁ", UDim2.new(), UDim2.new(1, -13, 0, moreHeight), UI.Blue)
local moreArenas = button(arenaList, "More", Text.pokazatEschyo, UDim2.new(), UDim2.new(1, -13, 0, moreHeight), UI.Blue)
moreArenas.Visible = false
local shade = UI.frame("CreatorShade", gui, UDim2.fromScale(0, 0), UDim2.fromScale(1, 1), Color3.fromRGB(5, 10, 20))
@@ -131,14 +133,14 @@ end
shade:GetPropertyChangedSignal("AbsoluteSize"):Connect(fit)
fit()
local header = leftLabel(panel, "Title", "СОЗДАНИЕ АРЕНЫ", 26, 15, 520, 45, 31, UI.Ink)
local header = leftLabel(panel, "Title", Text.sozdanieAreny, 26, 15, 520, 45, 31, UI.Ink)
header.FontFace = UI.Display
local close = button(panel, "Close", "×", UDim2.fromOffset(568, 19), UDim2.fromOffset(48, 37), UI.Orange)
close.TextSize, close.Modal = 23, true
local public = button(panel, "Public", "ПУБЛИЧНАЯ", UDim2.fromOffset(26, 74), UDim2.fromOffset(284, 44), UI.Blue)
local private = button(panel, "Private", "ПРИВАТНАЯ", UDim2.fromOffset(322, 74), UDim2.fromOffset(294, 44), violet)
local public = button(panel, "Public", Text.publichnaya, UDim2.fromOffset(26, 74), UDim2.fromOffset(284, 44), UI.Blue)
local private = button(panel, "Private", Text.privatnaya, UDim2.fromOffset(322, 74), UDim2.fromOffset(294, 44), violet)
local explanation = leftLabel(panel, "Description", "", 26, 129, 590, 28, 14, UI.Muted)
local modesHeading = leftLabel(panel, "ModesHeading", "СТАРТОВЫЙ РЕЖИМ", 26, 154, 590, 25, 15, UI.Ink)
local modesHeading = leftLabel(panel, "ModesHeading", Text.startovyyRezhim, 26, 154, 590, 25, 15, UI.Ink)
modesHeading.FontFace = UI.Display
local modeChoices = UI.frame("InitialModeChoices", panel, UDim2.fromOffset(26, 184), UDim2.fromOffset(590, 174), dark)
modeChoices.BackgroundTransparency = 1
@@ -153,7 +155,7 @@ for index, rule in Rules.All do
modeCards[rule.id] = card
end
local modeDescription = leftLabel(panel, "ModeDescription", "", 26, 361, 590, 24, 13, UI.Muted)
local changeLabel = leftLabel(panel, "ModeChangeHeading", "Разрешить смену режимов", 26, 391, 375, 22, 16, UI.Ink)
local changeLabel = leftLabel(panel, "ModeChangeHeading", Text.razreshitSmenuRezhimov, 26, 391, 375, 22, 16, UI.Ink)
changeLabel.FontFace = UI.Display
local changeHint = leftLabel(panel, "ModeChangeHint", "", 26, 413, 375, 20, 12, UI.Muted)
local changeToggle = button(panel, "AllowModeChange", "", UDim2.fromOffset(430, 391), UDim2.fromOffset(186, 41), UI.Mint, true)
@@ -171,7 +173,7 @@ detailsTitle.FontFace = UI.Display
local detailsClose = button(detailsPanel, "Close", "×", UDim2.fromOffset(568, 19), UDim2.fromOffset(48, 37), UI.Orange)
detailsClose.TextSize, detailsClose.Modal = 23, true
local detailsStatus = leftLabel(detailsPanel, "Status", "", 26, 357, 590, 32, 14, UI.Muted)
local connect = button(detailsPanel, "Connect", "ПОДКЛЮЧИТЬСЯ ›", UDim2.fromOffset(26, 397), UDim2.fromOffset(590, 43), UI.Blue, true)
local connect = button(detailsPanel, "Connect", Text.podklyuchitSya, UDim2.fromOffset(26, 397), UDim2.fromOffset(590, 43), UI.Blue, true)
local function teamColumn(name: string, text: string, x: number, accent: Color3)
local body = UI.plate(detailsPanel, name, UDim2.fromOffset(x + 144.5, 212), UDim2.fromOffset(289, 274), accent, dark:Lerp(accent, .08))
@@ -191,7 +193,7 @@ local function teamColumn(name: string, text: string, x: number, accent: Color3)
heading.FontFace = UI.Display
local count = UI.label(body, "Count", "", UDim2.fromOffset(188, 8), UDim2.fromOffset(86, 31), 14, UI.Ink)
local scroll = makeList(body, "Players", UDim2.fromOffset(9, 47), UDim2.fromOffset(271, 177), accent)
local marker = UI.label(body, "ChoiceLabel", "ВЫБРАТЬ", UDim2.fromOffset(9, 232), UDim2.fromOffset(271, 32), 13, accent)
local marker = UI.label(body, "ChoiceLabel", Text.vybrat, UDim2.fromOffset(9, 232), UDim2.fromOffset(271, 32), 13, accent)
marker.FontFace = UI.Display
local dimmer = UI.frame("SelectionDimmer", body, UDim2.fromScale(0, 0), UDim2.fromScale(1, 1), dark)
dimmer.BackgroundTransparency, dimmer.ZIndex = 1, 3
@@ -204,8 +206,8 @@ local function teamColumn(name: string, text: string, x: number, accent: Color3)
zoom = zoom, glow = glow, shine = shine, border = border, dimmer = dimmer, hit = hit, marker = marker,
hovered = false, focused = false, pressed = false, feedbackTween = nil :: Tween?}
end
local blueTeam = teamColumn("Blue", "СИНИЕ", 26, UI.Blue)
local orangeTeam = teamColumn("Orange", "ОРАНЖЕВЫЕ", 327, UI.Orange)
local blueTeam = teamColumn("Blue", Text.sinie, 26, UI.Blue)
local orangeTeam = teamColumn("Orange", Text.oranzhevye, 327, UI.Orange)
type TeamColumn = typeof(blueTeam)
local teamColumns: {[Side]: TeamColumn} = {Blue = blueTeam, Orange = orangeTeam}
shade:GetPropertyChangedSignal("AbsoluteSize"):Connect(function()
@@ -220,15 +222,15 @@ noticeText.TextWrapped = true
local invitation = UI.plate(gui, "ArenaInvitation", UDim2.fromOffset(24, 163), UDim2.fromOffset(354, 166), violet, dark)
invitation.Visible = false
UI.contour(invitation, violet)
local inviteTitle = leftLabel(invitation, "Title", "ПРИГЛАШЕНИЕ НА АРЕНУ", 14, 7, 282, 27, 17, UI.Ink)
local inviteTitle = leftLabel(invitation, "Title", Text.priglashenieNaArenu, 14, 7, 282, 27, 17, UI.Ink)
inviteTitle.FontFace = UI.Display
local inviteTimer = UI.label(invitation, "Timer", "", UDim2.fromOffset(297, 7), UDim2.fromOffset(44, 27), 14, violet)
local portrait = UI.portrait(invitation, UDim2.fromOffset(15, 43), 51, violet)
portrait.Name = "CreatorPortrait"
local hostLabel = leftLabel(invitation, "CreatorName", "", 78, 42, 261, 24, 17, UI.Ink)
local hostAccount = leftLabel(invitation, "CreatorAccount", "", 78, 67, 261, 22, 13, UI.Muted)
local accept = button(invitation, "Accept", "ПРИНЯТЬ [Y]", UDim2.fromOffset(14, 109), UDim2.fromOffset(156, 41), UI.Mint, true)
local decline = button(invitation, "Decline", "ОТКЛОНИТЬ [U]", UDim2.fromOffset(181, 109), UDim2.fromOffset(159, 41), violet)
local accept = button(invitation, "Accept", Text.prinyatY, UDim2.fromOffset(14, 109), UDim2.fromOffset(156, 41), UI.Mint, true)
local decline = button(invitation, "Decline", Text.otklonitU, UDim2.fromOffset(181, 109), UDim2.fromOffset(159, 41), violet)
local isPrivate = false
local roundOptions: Hosting.RoundOptions = {initialMode = Rules.Default, allowModeChange = true}
@@ -339,7 +341,7 @@ local function refreshSelection()
changeToggle.Interactable = not busy
local count = 0
for _ in selected do count += 1 end
selectionCount.Text = string.format("ВЫБРАНО %d / %d", count, Hosting.MaxPlayers - 1)
selectionCount.Text = string.format(Text.vybranoDD, count, Hosting.MaxPlayers - 1)
for id, row in rows do
local active = selected[id] == true
row.button.BackgroundColor3 = dark:Lerp(violet, if active then .45 else .15)
@@ -374,9 +376,9 @@ local function request(actionName: string, data: any?, extra: (Side | Hosting.Ro
detailsClose.Interactable = true
resetTeamReveal()
if shade.Visible then
local message = "Ответ задержался. Попробуйте снова."
local message = Text.otvetZaderzhalsyaPoprobuyteSnova
if arena then joinNote, detailsStatus.Text = message, message else status.Text = message end
else showNotice("Ответ задержался. Попробуйте снова.") end
else showNotice(Text.otvetZaderzhalsyaPoprobuyteSnova) end
end)
end
@@ -424,16 +426,16 @@ local function updatePanel()
private.BackgroundColor3 = dark:Lerp(violet, if isPrivate then .58 else .17)
selectionCount.Visible, list.Visible = showPlayers, showPlayers
modeDescription.Text = Rules.get(roundOptions.initialMode).detail
changeToggle.Text = if roundOptions.allowModeChange then "ВКЛЮЧЕНО" else "ВЫКЛЮЧЕНО"
changeToggle.Text = if roundOptions.allowModeChange then Text.vklyucheno else Text.vyklyucheno
changeToggle.BackgroundColor3 = if roundOptions.allowModeChange then UI.Mint else dark:Lerp(UI.Muted, .23)
changeToggle.TextColor3 = if roundOptions.allowModeChange then dark else UI.Ink
changeHint.Text = if roundOptions.allowModeChange then "Голосование после раунда" else "Один режим на все раунды"
explanation.Text = if showPlayers then "Выберите игроков с этого сервера и отправьте приглашения."
elseif isPrivate then "На сервере пока нет других игроков."
elseif localPreview then "В локальном тесте публичная арена доступна игрокам этого сеанса Studio."
else "Любой игрок сможет подключиться через список публичных арен."
action.Text = if party then "ОТМЕНИТЬ ПРИГЛАШЕНИЯ"
elseif isPrivate then "ОТПРАВИТЬ ПРИГЛАШЕНИЯ" else "СОЗДАТЬ АРЕНУ"
changeHint.Text = if roundOptions.allowModeChange then Text.golosovaniePosleRaunda else Text.odinRezhimNaVse
explanation.Text = if showPlayers then Text.vyberiteIgrokovSEtogo
elseif isPrivate then Text.naServerePokaNet
elseif localPreview then Text.vLokalNomTeste
else Text.lyuboyIgrokSmozhetPodklyuchit
action.Text = if party then Text.otmenitPriglasheniya
elseif isPrivate then Text.otpravitPriglasheniya else Text.sozdatArenu2
refreshSelection()
end
@@ -522,7 +524,7 @@ local function renderTeam(column: TeamColumn, members: {Hosting.Member})
column.count.Text = string.format("%d / %d", #members, Hosting.MaxPlayers // 2)
clearList(column.scroll)
if #members == 0 then
leftLabel(column.scroll, "Empty", "Пока никого", 8, 0, 249, 34, 14, UI.Muted)
leftLabel(column.scroll, "Empty", Text.pokaNikogo, 8, 0, 249, 34, 14, UI.Muted)
return
end
for index, member in members do
@@ -553,28 +555,28 @@ local function redrawDetails(now: number)
local teamIssue = if side == "Blue" then blueIssue else orangeIssue
team.hit.Interactable = ready and teamIssue == nil
if not team.hit.Interactable then team.pressed = false end
team.marker.Text = if confirmedSide == side then "ВАША КОМАНДА"
elseif teamIssue == "Full" then "НЕТ МЕСТ" elseif teamIssue == "Balance" then "БАЛАНС КОМАНД"
elseif preferredSide == side then "ВЫБРАНО" else "ВЫБРАТЬ"
team.marker.Text = if confirmedSide == side then Text.vashaKomanda
elseif teamIssue == "Full" then Text.netMest elseif teamIssue == "Balance" then Text.balansKomand
elseif preferredSide == side then Text.vybrano else Text.vybrat
team.marker.TextColor3 = if teamIssue then UI.Muted else team.accent
showTeamFeedback(team, side)
end
connect.Interactable = ready and preferredSide ~= nil and issue == nil
detailsClose.Interactable = not sending
connect.Text = if confirmedSide then "ВХОД НА АРЕНУ…"
elseif sending and localMode then "ПРОВЕРЯЕМ КОМАНДУ…"
elseif preferredSide == "Blue" then "ПОДКЛЮЧИТЬСЯ ЗА СИНИХ ›"
elseif preferredSide == "Orange" then "ПОДКЛЮЧИТЬСЯ ЗА ОРАНЖЕВЫХ ›" else "ПОДКЛЮЧИТЬСЯ ›"
connect.Text = if confirmedSide then Text.vkhodNaArenu
elseif sending and localMode then Text.proveryaemKomandu
elseif preferredSide == "Blue" then Text.podklyuchitSyaZaSinikh
elseif preferredSide == "Orange" then Text.podklyuchitSyaZaOranzhevykh else Text.podklyuchitSya
local accent = if preferredSide == "Orange" then UI.Orange else UI.Blue
connect.BackgroundColor3 = if connect.Interactable then accent else dark:Lerp(UI.Muted, .18)
connect.TextColor3 = if connect.Interactable then dark else UI.Muted
detailsStatus.Text = joinNote or (if confirmedSide == "Blue" then "ВЫ В КОМАНДЕ СИНИХ"
elseif confirmedSide == "Orange" then "ВЫ В КОМАНДЕ ОРАНЖЕВЫХ"
elseif sending then "Подключаемся…"
elseif not data then "Загружаем составы…" elseif full then "Арена заполнена."
elseif not isOpen then "Подключение откроется с началом раунда."
elseif preferredSide and issue then "Выбранная команда пока недоступна."
elseif not preferredSide then "Выберите команду." else "")
detailsStatus.Text = joinNote or (if confirmedSide == "Blue" then Text.vyVKomandeSinikh
elseif confirmedSide == "Orange" then Text.vyVKomandeOranzhevykh
elseif sending then Text.podklyuchaemsya
elseif not data then Text.zagruzhaemSostavy elseif full then Text.arenaZapolnena
elseif not isOpen then Text.podklyuchenieOtkroetsyaSNachalom
elseif preferredSide and issue then Text.vybrannayaKomandaPokaNedostupna
elseif not preferredSide then Text.vyberiteKomandu else "")
end
for side, team in teamColumns do
@@ -648,7 +650,7 @@ local function localChoice(ownerOverride: Player?): Choice
local mode = Modes.Procedural
local ownerId = remote:GetAttribute("LocalPublicOwnerUserId")
local owner = ownerOverride or (if typeof(ownerId) == "number" then Players:GetPlayerByUserId(ownerId) else nil)
return {id = mode, name = if owner then owner.DisplayName else "Динамическая арена",
return {id = mode, name = if owner then owner.DisplayName else Text.dinamicheskayaArena,
mode = mode, hostId = if owner then owner.UserId else nil, players = localTeams(mode).players,
ruleset = Rules.get(Modes.state(roundState, mode):GetAttribute("Ruleset")).id}
end
@@ -729,9 +731,9 @@ local function showInvite()
local invite = currentInvite
invitation.Visible = invite ~= nil and not transferring
if not invite then return end
inviteTitle.Text = if accepted then "ПРИГЛАШЕНИЕ ПРИНЯТО" else "ПРИГЛАШЕНИЕ НА АРЕНУ"
inviteTitle.Text = if accepted then Text.priglasheniePrinyato else Text.priglashenieNaArenu
accept.Visible = not accepted
decline.Text = if accepted then "ОТМЕНИТЬ [U]" else "ОТКЛОНИТЬ [U]"
decline.Text = if accepted then Text.otmenitU else Text.otklonitU
end
local function respond(agree: boolean)
@@ -751,7 +753,7 @@ local messageConnection = remote.OnClientEvent:Connect(function(event: string, d
if event == "Invite" then
local invite: Invite = data
currentInvite, accepted = invite, false
hostLabel.Text, hostAccount.Text = invite.hostName, "Создатель · @" .. invite.hostUsername
hostLabel.Text, hostAccount.Text = invite.hostName, Text.sozdatel .. invite.hostUsername
showAvatar(portrait, invite.hostId, invite.hostName)
showInvite()
elseif event == "Accepted" and currentInvite and currentInvite.id == data then
@@ -781,14 +783,14 @@ local messageConnection = remote.OnClientEvent:Connect(function(event: string, d
renderDirectory()
elseif event == "ListUnavailable" then
listingPending = false
if browser.Visible then showNotice("Список публичных арен временно недоступен.") end
if browser.Visible then showNotice(Text.spisokPublichnykhArenVremenno) end
elseif event == "PublicDetails" and arena and data.id == arena.id then
if not arenaDetails then joinNote = nil end
arenaDetails = data
redrawDetails(workspace:GetServerTimeNow())
elseif event == "DetailsUnavailable" and arena and data == arena.id then
arenaDetails = nil
joinNote = "Арена закрылась или составы временно недоступны."
joinNote = Text.arenaZakrylasIliSostavy
redrawDetails(workspace:GetServerTimeNow())
elseif event == "LocalPublicReady" then
sending = false
@@ -812,11 +814,11 @@ local messageConnection = remote.OnClientEvent:Connect(function(event: string, d
end)
local joinErrors: {[string]: string} = {
Full = "В выбранной команде нет мест.",
Balance = "Составы изменились. Подключитесь ещё раз.",
BetweenRounds = "Дождитесь начала следующего раунда.",
Spawning = "Персонаж ещё загружается. Попробуйте снова.",
AwaitingAdmission = "Проверяем доступ к арене. Попробуйте через секунду.",
Full = Text.vVybrannoyKomandeNet,
Balance = Text.sostavyIzmenilisPodklyuchitesEschyo,
BetweenRounds = Text.dozhditesNachalaSleduyuschegoRaunda,
Spawning = Text.personazhEschyoZagruzhaetsyaPoprobuyte,
AwaitingAdmission = Text.proveryaemDostupKArene,
}
local joinConnection = join.OnClientEvent:Connect(function(result: string, side: Side?)
if not sending or not arena or not arena.mode then return end
@@ -830,14 +832,14 @@ local joinConnection = join.OnClientEvent:Connect(function(result: string, side:
setOpen(false)
else
resetTeamReveal()
joinNote = joinErrors[result] or "Не удалось подключиться."
joinNote = joinErrors[result] or Text.neUdalosPodklyuchitSya
redrawDetails(workspace:GetServerTimeNow())
end
end)
local launcherConnection = roundHud:GetAttributeChangedSignal("LobbyAvailable"):Connect(refreshLaunch)
local function refreshOwner()
local name = remote:GetAttribute("OwnerName")
ownerLabel.Text = if typeof(name) == "string" then "Владелец · " .. name else ""
ownerLabel.Text = if typeof(name) == "string" then Text.vladelets .. name else ""
end
local ownerConnection = remote:GetAttributeChangedSignal("OwnerName"):Connect(refreshOwner)
local votingConnection = pg:GetAttributeChangedSignal("HunterVoting"):Connect(function()
@@ -850,13 +852,13 @@ local teamConnection = player:GetAttributeChangedSignal("ArenaTeam"):Connect(fun
end
end)
local function showFull()
if player:GetAttribute("HostedArenaFull") then showNotice("Арена заполнена. Можно вернуться в общее лобби.", true) end
if player:GetAttribute("HostedArenaFull") then showNotice(Text.arenaZapolnenaMozhnoVernut, true) end
end
local fullConnection = player:GetAttributeChangedSignal("HostedArenaFull"):Connect(showFull)
showFull()
local function showTeamNotice()
local issue = player:GetAttribute("HostedArenaTeamNotice")
if typeof(issue) == "string" then showNotice(joinErrors[issue] or "Выбранная команда недоступна.") end
if typeof(issue) == "string" then showNotice(joinErrors[issue] or Text.vybrannayaKomandaNedostupna) end
end
local arrivalTeamConnection = player:GetAttributeChangedSignal("HostedArenaTeamNotice"):Connect(showTeamNotice)
showTeamNotice()
@@ -900,7 +902,7 @@ local clock = RunService.Heartbeat:Connect(function()
local pending = party
if pending then
local left = math.max(0, math.ceil(pending.expires - now))
status.Text = string.format("Приняли %d · Ждём %d · %02d с", pending.accepted, pending.pending, left)
status.Text = string.format(Text.prinyaliDZhdyomD, pending.accepted, pending.pending, left)
if not shade.Visible then showNotice(status.Text, true) end
end
end)
+25 -23
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.HostedArenaService
local HttpService = game:GetService("HttpService")
local MemoryStoreService = game:GetService("MemoryStoreService")
local Players = game:GetService("Players")
@@ -81,18 +83,18 @@ end
local function createLocalPublic(player: Player, options: RoundOptions)
if previewOwner and previewOwner ~= player then
fail(player, "На этом тестовом сервере уже есть публичная арена. Откройте её карточку.")
fail(player, Text.naEtomTestovomServere)
return
end
if configuringPreview then
fail(player, "Тестовая арена уже готовится.")
fail(player, Text.testovayaArenaUzheGotovitsya)
return
end
configuringPreview = true
local ok, configured = pcall(configureRound, options)
configuringPreview = false
if not ok or not configured then
fail(player, "Дождитесь, пока тестовая арена освободится.")
fail(player, Text.dozhditesPokaTestovayaArena)
return
end
if not inLobby(player) then return end
@@ -103,7 +105,7 @@ end
local function transferFailed(player: Player)
if not transfers[player] then return end
transfers[player] = nil
fail(player, "Переход не удался. Попробуйте снова.")
fail(player, Text.perekhodNeUdalsyaPoprobuyte)
end
local function teleport(group: {Player}, destination: string?, side: Side?): boolean
@@ -119,7 +121,7 @@ local function transfer(group: {Player}, destination: string?, side: Side?)
for _, player in group do
local pending = {destination = destination, side = side, attempts = 1}
transfers[player] = pending
send(player, "Transfer", if destination then "Загружаем арену…" else "Возвращаем в общее лобби…")
send(player, "Transfer", if destination then Text.zagruzhaemArenu else Text.vozvraschaemVObscheeLobbi)
task.delay(25, function()
if transfers[player] == pending and present(player) then transferFailed(player) end
end)
@@ -180,7 +182,7 @@ local function launch(host: Player, guests: {Player}?, access: "Public" | "Priva
end
for _, player in members do
transfers[player] = {destination = destination, attempts = 1}
if access == "Private" then send(player, "Transfer", "Готовим арену…") end
if access == "Private" then send(player, "Transfer", Text.gotovimArenu) end
end
local record: Session = {
hostId = host.UserId, hostName = host.DisplayName, access = access,
@@ -195,9 +197,9 @@ local function launch(host: Player, guests: {Player}?, access: "Public" | "Priva
if not saved or not hostHere or (access == "Private" and #members < 2) then
for _, player in members do
transfers[player] = nil
fail(player, if not hostHere then "Создатель вышел с сервера."
elseif not saved then "Сервис арен Roblox временно недоступен. Попробуйте позже."
else "Подтвердившие игроки вышли с сервера.")
fail(player, if not hostHere then Text.sozdatelVyshelSServera
elseif not saved then Text.servisArenRobloxVremenno
else Text.podtverdivshieIgrokiVyshliS)
end
if saved and sessions then
pcall(sessions.RemoveAsync, sessions, destination)
@@ -232,7 +234,7 @@ local function updateParty(party: Party, expired: boolean?)
return
end
if #accepted == 0 or not inLobby(party.host) then
closeParty(party, if #accepted == 0 then "Никто не подтвердил приглашение." else "Создатель покинул лобби.")
closeParty(party, if #accepted == 0 then Text.niktoNePodtverdilPriglashenie else Text.sozdatelPokinulLobbi)
return
end
closeParty(party)
@@ -246,18 +248,18 @@ local function invite(host: Player, selection: unknown, options: RoundOptions)
for _, userId in selection do
checked += 1
if checked >= Hosting.MaxPlayers or typeof(userId) ~= "number" or userId % 1 ~= 0 or math.abs(userId) >= 2^53 then
fail(host, "Выберите до 19 игроков.")
fail(host, Text.vyberiteDoIgrokov)
return
end
local player = Players:GetPlayerByUserId(userId)
if player == host or not player or not present(player) or invitations[player] or parties[player] or transfers[player] then
fail(host, "Кто-то из выбранных уже недоступен. Проверьте список игроков.")
fail(host, Text.ktoToIzVybrannykh)
return
end
answers[player] = "Pending"
end
if not next(answers) then
fail(host, "Выберите хотя бы одного игрока.")
fail(host, Text.vyberiteKhotyaByOdnogo)
return
end
local party = {id = HttpService:GenerateGUID(false), host = host, answers = answers, roundOptions = options,
@@ -350,7 +352,7 @@ local function joinPublic(player: Player, id: unknown, preference: unknown)
if not inLobby(player) then transfers[player] = nil return end
if not ok or not row or row.players >= Hosting.MaxPlayers then
transfers[player] = nil
fail(player, "Арена закрылась или уже заполнена.")
fail(player, Text.arenaZakrylasIliUzhe)
return
end
if preference then
@@ -358,7 +360,7 @@ local function joinPublic(player: Player, id: unknown, preference: unknown)
local issue = if preference == "Blue" then Hosting.teamJoinError(blue, orange) else Hosting.teamJoinError(orange, blue)
if issue then
transfers[player] = nil
fail(player, if issue == "Full" then "В этой команде нет мест." else "Составы изменились. Выберите другую команду.")
fail(player, if issue == "Full" then Text.vEtoyKomandeNet else Text.sostavyIzmenilisVyberiteDruguyu)
return
end
end
@@ -382,29 +384,29 @@ remote.OnServerEvent:Connect(function(player: Player, action: unknown, value: un
if action == "Answer" then answer(player, value, extra) return end
if action == "Cancel" then
local party = parties[player]
if party then closeParty(party, "Приглашения отменены.") end
if party then closeParty(party, Text.priglasheniyaOtmeneny) end
return
end
if not inLobby(player) then return end
if parties[player] or invitations[player] then
fail(player, "Сначала завершите текущее приглашение.")
fail(player, Text.snachalaZavershiteTekuscheePriglashenie)
return
end
if action == "JoinPublic" then joinPublic(player, value, extra) return end
if action ~= "CreatePublic" and action ~= "InvitePrivate" then return end
local options = Hosting.readRoundOptions(if action == "CreatePublic" then value else extra)
if not options then
fail(player, "Проверьте выбранный режим и настройки арены.")
fail(player, Text.proverTeVybrannyyRezhim)
return
end
if now - (lastCreate[player] or -math.huge) < 3 then
fail(player, "Подождите несколько секунд перед повторной попыткой.")
fail(player, Text.podozhditeNeskolKoSekund)
return
end
lastCreate[player] = now
if localPreview then
if action == "CreatePublic" then createLocalPublic(player, options)
else fail(player, "Для приватной арены нужен плейс, сохранённый в Roblox.") end
else fail(player, Text.dlyaPrivatnoyArenyNuzhen) end
return
end
if action == "CreatePublic" then launch(player, nil, "Public", options) else invite(player, value, options) end
@@ -442,7 +444,7 @@ Players.PlayerRemoving:Connect(function(player)
lastAction[player], lastCreate[player], lastList[player], transfers[player] = nil, nil, nil, nil
lastDetails[player], moreFrom[player] = nil, nil
local sent = parties[player]
if sent then closeParty(sent, "Создатель вышел с сервера.") end
if sent then closeParty(sent, Text.sozdatelVyshelSServera) end
local received = invitations[player]
if received then
invitations[player], received.answers[player] = nil, nil
@@ -563,11 +565,11 @@ if hosted then
if not present(player) or admitted[player] then return end
local record = session
if not record or closing then
player:Kick("Эта арена больше недоступна.")
player:Kick(Text.etaArenaBolShe)
return
end
if not allowed(record, player) then
player:Kick("Эта арена доступна только участникам с подтверждённым приглашением.")
player:Kick(Text.etaArenaDostupnaTol)
return
end
local count = 0
+5 -3
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.HotPoint
local Diagnostics = require(script.Parent.ModeRuntime.ZoneDiagnostics)
local Credit = require(script.Parent.ModeRuntime.HotPointCredit)
local Sites = require(script.Parent:WaitForChild("ArenaObjectiveSites") :: ModuleScript)
@@ -155,10 +157,10 @@ function HotPoint.start(config: Config): Capture
local since = now - capturedAt
if since >= COLLAPSE_SECONDS + CAPTURE_NOTICE_SECONDS then
publish(nil, 0, nil)
config.status("Скоро появится новая точка")
config.status(Text.skoroPoyavitsyaNovayaTochka)
elseif since >= COLLAPSE_SECONDS then
publish(capturedSide, 100, "Captured")
config.status("Точка захвачена")
config.status(Text.tochkaZakhvachena)
end
return
end
@@ -173,7 +175,7 @@ function HotPoint.start(config: Config): Capture
if fighter.side == "Blue" then blue += 1 else orange += 1 end
end
local remaining = math.ceil(movesAt - now)
config.status(site.name .. " · Смена точки через " .. remaining .. " с")
config.status(site.name .. Text.smenaTochkiCherez .. remaining .. Text.s)
local soleSide: Side? = if blue > 0 and orange == 0 then "Blue" elseif orange > 0 and blue == 0 then "Orange" else nil
local isContested = blue > 0 and orange > 0
if soleSide then
+6 -4
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.HotPointGuide
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
@@ -26,7 +28,7 @@ sizeLimit.MaxSize = Vector2.new(326, 60)
sizeLimit.Parent = panel
local contour = UI.contour(panel, UI.Blue)
local arrow = UI.label(panel, "Arrow", "▲", UDim2.fromOffset(12, 8), UDim2.fromOffset(44, 44), 29, UI.Blue)
local title = UI.label(panel, "Title", "К ГОРЯЧЕЙ ТОЧКЕ", UDim2.fromOffset(63, 7), UDim2.new(1, -72, 0, 23), 18, UI.Ink)
local title = UI.label(panel, "Title", Text.kGoryacheyTochke, UDim2.fromOffset(63, 7), UDim2.new(1, -72, 0, 23), 18, UI.Ink)
title.TextXAlignment = Enum.TextXAlignment.Left
local detail = UI.label(panel, "Detail", "", UDim2.fromOffset(63, 31), UDim2.new(1, -72, 0, 20), 15, UI.Muted)
detail.TextXAlignment = Enum.TextXAlignment.Left
@@ -81,9 +83,9 @@ local function update()
arrow.TextColor3 = tint
local localDirection = camera.CFrame:VectorToObjectSpace(flat)
arrow.Rotation = math.deg(math.atan2(localDirection.X, -localDirection.Z))
title.Text = if moving then ("НОВАЯ ТОЧКА · %d С"):format(math.ceil(remaining)) else "К ГОРЯЧЕЙ ТОЧКЕ"
local floor = if delta.Y > 8 then " · ВЫШЕ" elseif delta.Y < -8 then " · НИЖЕ" else ""
detail.Text = ("%d СТУДОВ%s"):format(math.floor(delta.Magnitude + .5), floor)
title.Text = if moving then (Text.novayaTochkaDS):format(math.ceil(remaining)) else Text.kGoryacheyTochke
local floor = if delta.Y > 8 then Text.vyshe elseif delta.Y < -8 then Text.nizhe else ""
detail.Text = (Text.dStudovS):format(math.floor(delta.Magnitude + .5), floor)
end
local connection = RunService.RenderStepped:Connect(update)
+4 -2
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.SiegeResults
local Results = {}
function Results.clockPrecise(t: number): string
@@ -9,12 +11,12 @@ function Results.rows(times: {[string]: any}, total: number): {string}
local rows = {}
for i = 1, total do
local b, o = times["BlueTime" .. i], times["OrangeTime" .. i]
rows[i] = string.format("Рубеж %d · Синие %s · Оранжевые %s", i,
rows[i] = string.format(Text.rubezhDSinieS, i,
if typeof(b) == "number" then Results.clockPrecise(b) else "—",
if typeof(o) == "number" then Results.clockPrecise(o) else "—")
end
return rows
end
Results.tiebreak = "При равенстве рубежей побеждает команда, быстрее дошедшая до последнего взятого."
Results.tiebreak = Text.priRavenstveRubezheyPobezhdaet
return table.freeze(Results)
+382
View File
@@ -110,6 +110,388 @@ local round = table.freeze({
})
return table.freeze({
interface = table.freeze({
ArenaObjectiveSites = table.freeze({
bazaSinikh = "База синих",
bazaOranzhevykh = "База оранжевых",
nizhniyProkhod = "Нижний проход",
srednyayaGalereya = "Средняя галерея",
kryshaTsitadeli = "Крыша цитадели",
zapadnyyFlang = "Западный фланг",
vostochnyyFlang = "Восточный фланг",
}),
ArenaRoundHud = table.freeze({
tochkaZakhvachena = "ТОЧКА ЗАХВАЧЕНА · +1",
sopernikiZakhvatyvayut = "СОПЕРНИКИ ЗАХВАТЫВАЮТ",
atakaDDD = "АТАКА %d/2 · %d:%02d",
sinieDSOranzhevye = "СИНИЕ +%d/с ОРАНЖЕВЫЕ +%d/с",
uVasFlagNesite = "У вас флаг · Несите его на свою базу",
zhetonovUVas = "Жетонов у вас: ",
vernitesNaBazu = " · Вернитесь на базу",
vyLiderZaVas = "Вы лидер · За вас дают 3 очка",
itogiRaunda = "ИТОГИ РАУНДА",
vyytiVLobbi = "ВЫЙТИ В ЛОББИ",
igrok = "ИГРОК",
ubiystva = "УБИЙСТВА",
smerti = "СМЕРТИ",
vKomandeNeBylo = "В команде не было игроков",
sinie = "СИНИЕ",
oranzhevye = "ОРАНЖЕВЫЕ",
golosovanieCherezDS = "ГОЛОСОВАНИЕ ЧЕРЕЗ %d С",
vKomandePokaNet = "В команде пока нет игроков",
vy = "Вы · ",
statistikaMatcha = "СТАТИСТИКА МАТЧА",
dinamicheskayaArena = " · Динамическая арена",
schyot = "СЧЁТ · ",
doKontsaRaunda = "ДО КОНЦА РАУНДА",
doSleduyuschegoRaunda = "ДО СЛЕДУЮЩЕГО РАУНДА",
sDDOtpustite = "%s %02d:%02d · ОТПУСТИТЕ TAB, ЧТОБЫ ЗАКРЫТЬ",
siniePobedili = "СИНИЕ ПОБЕДИЛИ",
oranzhevyePobedili = "ОРАНЖЕВЫЕ ПОБЕДИЛИ",
nichYa = "НИЧЬЯ",
pobeda = "ПОБЕДА",
porazhenie = "ПОРАЖЕНИЕ",
sleduyuschiyRaundCherezD = "СЛЕДУЮЩИЙ РАУНД ЧЕРЕЗ %d С",
golosovanie = "ГОЛОСОВАНИЕ",
doNachalaRaunda = "ДО НАЧАЛА РАУНДА",
doGolosovaniya = "ДО ГОЛОСОВАНИЯ",
podgotovkaAreny = "ПОДГОТОВКА АРЕНЫ",
}),
ArenaRounds = table.freeze({
sinie = "Синие",
oranzhevye = "Оранжевые",
neUdalosVozroditIgroka = "Не удалось возродить игрока:",
}),
CitadelScoreService = table.freeze({
vzyaliBolSheRubezhey = " взяли больше рубежей",
nichYaObeKomandy = "Ничья: обе команды без захватов",
nichYaVremyaZakhvata = "Ничья: время захвата совпало",
pobedaPoSkorostiS = "Победа по скорости: %s, рубеж %d (Blue %s, Orange %s)",
}),
HotPointGuide = table.freeze({
kGoryacheyTochke = "К ГОРЯЧЕЙ ТОЧКЕ",
novayaTochkaDS = "НОВАЯ ТОЧКА · %d С",
vyshe = " · ВЫШЕ",
nizhe = " · НИЖЕ",
dStudovS = "%d СТУДОВ%s",
}),
ViewmodelTuner = table.freeze({
oruzhie = "Оружие",
vpravoVlevo = "Вправо / влево",
vverkhVniz = "Вверх / вниз",
vperyodNazad = "Вперёд / назад",
povorotYaw = "Поворот (yaw)",
naklonPitch = "Наклон (pitch)",
krenRoll = "Крен (roll)",
inertsiya = "Инерция",
pokachivanie = "Покачивание",
kistVpravoVlevo = "Кисть: вправо/влево",
kistVverkhVniz = "Кисть: вверх/вниз",
kistVperyodNazad = "Кисть: вперёд/назад",
rukaPovorot = "Рука: поворот",
rukaNaklon = "Рука: наклон",
rukaKren = "Рука: крен",
dlinaRuki = "Длина руки",
tolschinaRuki = "Толщина руки",
dlinaKisti = "Длина кисти",
tolschinaKisti = "Толщина кисти",
levayaRuka = "Левая рука",
pravayaRuka = "Правая рука",
osmotr = "Осмотр",
dreyfPriUderzhanii = "Дрейф при удержании",
vykhodVPozuS = "Выход в позу, с",
uderzhanieS = "Удержание, с",
vozvratS = "Возврат, с",
perezaryadka = "Перезарядка",
dlitelNostS = "Длительность, с",
kadr = "Кадр (0–1)",
magazinVpravoVlevo = "Магазин: вправо/влево",
magazinVverkhVniz = "Магазин: вверх/вниз",
magazinVperyodNazad = "Магазин: вперёд/назад",
magazinPovorot = "Магазин: поворот",
magazinNaklon = "Магазин: наклон",
magazinKren = "Магазин: крен",
perezaryadkaZatvor = "Перезарядка: затвор",
zatvorVpravoVlevo = "Затвор: вправо/влево",
zatvorVverkhVniz = "Затвор: вверх/вниз",
zatvorVperyodNazad = "Затвор: вперёд/назад",
zatvorPovorot = "Затвор: поворот",
zatvorNaklon = "Затвор: наклон",
zatvorKren = "Затвор: крен",
magazinVynutVniz = "Магазин: вынуть вниз",
zatvorPodYom = "Затвор: подъём",
zatvorKhodNazad = "Затвор: ход назад",
magazinTolschina = "Магазин: толщина",
magazinVysota = "Магазин: высота",
magazinShirina = "Магазин: ширина",
perezaryadkaRuki = "Перезарядка: руки",
dvizhenie = "Движение",
skorostIgrokaStudS = "Скорость игрока, студ/с",
gravitatsiyaStudS = "Гравитация, студ/с²",
obzorFov = "Обзор (FOV)",
obzorNaBegu = "Обзор: + на бегу",
skorostDlyaMaksFov = "Скорость для макс. FOV",
oruzhieVnizNaBegu = "Оружие: вниз на бегу",
oruzhieNazadNaBegu = "Оружие: назад на бегу",
oruzhieKrenNaBegu = "Оружие: крен на бегу",
zapazdyvanie = "Запаздывание",
oruzhiePryzhokPadenie = "Оружие: прыжок / падение",
vystrel = "Выстрел",
mezhduVystrelamiS = "Между выстрелами, с",
patronovVMagazine = "Патронов в магазине",
zumPriOcheredi = "Зум при очереди, %",
spreyNachalNyyUvod = "Спрей: начальный увод, °",
spreyRostZaVystrel = "Спрей: рост за выстрел, °",
spreyPredelRosta = "Спрей: предел роста, °",
spreySkorostSbrosa = "Спрей: скорость сброса",
spreyVPritsele = "Спрей в прицеле, ×",
zatvorPauzaS = "Затвор: пауза, с",
zatvorSAvtomat = "Затвор, с (0 = автомат)",
zatvorNaklon2 = "Затвор: наклон (0–1)",
kadrSPosleVystrela = "Кадр, с после выстрела",
vystrelStvol = "Выстрел: ствол",
duloVpravoVlevo = "Дуло: вправо/влево",
duloVverkhVniz = "Дуло: вверх/вниз",
duloVperyodNazad = "Дуло: вперёд/назад",
vspyshkaRazmer = "Вспышка: размер",
lDuloVpravoVlevo = "3л дуло: вправо/влево",
lDuloVverkhVniz = "3л дуло: вверх/вниз",
lDuloVperyodNazad = "3л дуло: вперёд/назад",
lVspyshkaRazmer = "3л вспышка: размер",
lOtdachaNazad = "3л отдача: назад",
lOtdachaVverkh = "3л отдача: вверх",
mushka = "Мушка",
kollimator = "Коллиматор",
optika = "Оптика",
pritsel = "Прицел",
fovZumMenShe = "FOV / зум (меньше = ближе)",
chuvstvitelNostMyshi = "Чувствительность мыши",
vremyaPritselivaniyaS = "Время прицеливания, с",
pokachivanieVPritsele = "Покачивание в прицеле",
zamedlenieVPritsele = "Замедление в прицеле (0–1)",
chuvstvitelNost = "Чувствительность",
otBedra = "От бедра",
zvukIPopadaniya = "Звук и попадания",
gromkostObschaya = "Громкость: общая",
gromkostVystrel = "Громкость: выстрел",
gromkostPerezaryadkaZatvor = "Громкость: перезарядка/затвор",
gromkostPopadanie = "Громкость: попадание",
gromkostRazrushenie = "Громкость: разрушение",
razmerVzryvaPriPopadanii = "Размер взрыва при попадании",
tsifryUronaRazlyotV = "Цифры урона: разлёт в стороны",
tsifryUronaPodYom = "Цифры урона: подъём вверх",
ubiystvoVysotaVyleta = "Убийство: высота вылета",
vpravoVlevo2 = ": вправо/влево",
vverkhVniz2 = ": вверх/вниз",
vperyodNazad2 = ": вперёд/назад",
povorot = ": поворот",
naklon = ": наклон",
kren = ": крен",
lOruzhie = "3л: оружие",
lPravayaRuka = "3л: правая рука",
lLevayaRuka = "3л: левая рука",
kist = "Кисть",
lokotVpravoVlevo = "Локоть: вправо/влево",
lokotVverkhVniz = "Локоть: вверх/вниз",
lokotVperyodNazad = "Локоть: вперёд/назад",
lPerezaryadka = "3л: перезарядка",
nastroykaPZakryt = "Настройка (P — закрыть)",
vidELitso = "Вид: 3-е лицо",
vidELitso2 = "Вид: 1-е лицо",
menSheGravitatsiyaVyshe = "Меньше гравитация — выше прыжок",
pritselitSya = "▶ Прицелиться",
proigrat = "▶ Проиграть",
derzhatPozu = "Держать позу",
derzhatPritsel = "Держать прицел",
derzhatKadr = "Держать кадр",
shag = "Шаг: ",
sbros = "Сброс",
sokhranit = "Сохранить",
sokhraneno = "Сохранено ✓",
}),
HotPoint = table.freeze({
skoroPoyavitsyaNovayaTochka = "Скоро появится новая точка",
tochkaZakhvachena = "Точка захвачена",
smenaTochkiCherez = " · Смена точки через ",
s = " с",
}),
HostedArenaService = table.freeze({
naEtomTestovomServere = "На этом тестовом сервере уже есть публичная арена. Откройте её карточку.",
testovayaArenaUzheGotovitsya = "Тестовая арена уже готовится.",
dozhditesPokaTestovayaArena = "Дождитесь, пока тестовая арена освободится.",
perekhodNeUdalsyaPoprobuyte = "Переход не удался. Попробуйте снова.",
zagruzhaemArenu = "Загружаем арену…",
vozvraschaemVObscheeLobbi = "Возвращаем в общее лобби…",
gotovimArenu = "Готовим арену…",
sozdatelVyshelSServera = "Создатель вышел с сервера.",
servisArenRobloxVremenno = "Сервис арен Roblox временно недоступен. Попробуйте позже.",
podtverdivshieIgrokiVyshliS = "Подтвердившие игроки вышли с сервера.",
niktoNePodtverdilPriglashenie = "Никто не подтвердил приглашение.",
sozdatelPokinulLobbi = "Создатель покинул лобби.",
vyberiteDoIgrokov = "Выберите до 19 игроков.",
ktoToIzVybrannykh = "Кто-то из выбранных уже недоступен. Проверьте список игроков.",
vyberiteKhotyaByOdnogo = "Выберите хотя бы одного игрока.",
arenaZakrylasIliUzhe = "Арена закрылась или уже заполнена.",
vEtoyKomandeNet = "В этой команде нет мест.",
sostavyIzmenilisVyberiteDruguyu = "Составы изменились. Выберите другую команду.",
priglasheniyaOtmeneny = "Приглашения отменены.",
snachalaZavershiteTekuscheePriglashenie = "Сначала завершите текущее приглашение.",
proverTeVybrannyyRezhim = "Проверьте выбранный режим и настройки арены.",
podozhditeNeskolKoSekund = "Подождите несколько секунд перед повторной попыткой.",
dlyaPrivatnoyArenyNuzhen = "Для приватной арены нужен плейс, сохранённый в Roblox.",
etaArenaBolShe = "Эта арена больше недоступна.",
etaArenaDostupnaTol = "Эта арена доступна только участникам с подтверждённым приглашением.",
}),
DamageNumbers = table.freeze({
khedshot = "Хедшот!",
ubit = "Убит!",
krit = "КРИТ",
}),
HostedArenaHud = table.freeze({
vObscheeLobbi = "‹ В ОБЩЕЕ ЛОББИ",
sozdatArenu = "+ СОЗДАТЬ АРЕНУ",
arenaSessii = "АРЕНА СЕССИИ",
publichnyeAreny = "ПУБЛИЧНЫЕ АРЕНЫ",
obnovit = "ОБНОВИТЬ",
pokazatEschyo = "ПОКАЗАТЬ ЕЩЁ",
sozdanieAreny = "СОЗДАНИЕ АРЕНЫ",
publichnaya = "ПУБЛИЧНАЯ",
privatnaya = "ПРИВАТНАЯ",
startovyyRezhim = "СТАРТОВЫЙ РЕЖИМ",
razreshitSmenuRezhimov = "Разрешить смену режимов",
podklyuchitSya = "ПОДКЛЮЧИТЬСЯ ›",
vybrat = "ВЫБРАТЬ",
sinie = "СИНИЕ",
oranzhevye = "ОРАНЖЕВЫЕ",
priglashenieNaArenu = "ПРИГЛАШЕНИЕ НА АРЕНУ",
prinyatY = "ПРИНЯТЬ [Y]",
otklonitU = "ОТКЛОНИТЬ [U]",
vybranoDD = "ВЫБРАНО %d / %d",
otvetZaderzhalsyaPoprobuyteSnova = "Ответ задержался. Попробуйте снова.",
vklyucheno = "ВКЛЮЧЕНО",
vyklyucheno = "ВЫКЛЮЧЕНО",
golosovaniePosleRaunda = "Голосование после раунда",
odinRezhimNaVse = "Один режим на все раунды",
vyberiteIgrokovSEtogo = "Выберите игроков с этого сервера и отправьте приглашения.",
naServerePokaNet = "На сервере пока нет других игроков.",
vLokalNomTeste = "В локальном тесте публичная арена доступна игрокам этого сеанса Studio.",
lyuboyIgrokSmozhetPodklyuchit = "Любой игрок сможет подключиться через список публичных арен.",
otmenitPriglasheniya = "ОТМЕНИТЬ ПРИГЛАШЕНИЯ",
otpravitPriglasheniya = "ОТПРАВИТЬ ПРИГЛАШЕНИЯ",
sozdatArenu2 = "СОЗДАТЬ АРЕНУ",
pokaNikogo = "Пока никого",
vashaKomanda = "ВАША КОМАНДА",
netMest = "НЕТ МЕСТ",
balansKomand = "БАЛАНС КОМАНД",
vybrano = "ВЫБРАНО",
vkhodNaArenu = "ВХОД НА АРЕНУ…",
proveryaemKomandu = "ПРОВЕРЯЕМ КОМАНДУ…",
podklyuchitSyaZaSinikh = "ПОДКЛЮЧИТЬСЯ ЗА СИНИХ ›",
podklyuchitSyaZaOranzhevykh = "ПОДКЛЮЧИТЬСЯ ЗА ОРАНЖЕВЫХ ›",
vyVKomandeSinikh = "ВЫ В КОМАНДЕ СИНИХ",
vyVKomandeOranzhevykh = "ВЫ В КОМАНДЕ ОРАНЖЕВЫХ",
podklyuchaemsya = "Подключаемся…",
zagruzhaemSostavy = "Загружаем составы…",
arenaZapolnena = "Арена заполнена.",
podklyuchenieOtkroetsyaSNachalom = "Подключение откроется с началом раунда.",
vybrannayaKomandaPokaNedostupna = "Выбранная команда пока недоступна.",
vyberiteKomandu = "Выберите команду.",
dinamicheskayaArena = "Динамическая арена",
priglasheniePrinyato = "ПРИГЛАШЕНИЕ ПРИНЯТО",
otmenitU = "ОТМЕНИТЬ [U]",
sozdatel = "Создатель · @",
spisokPublichnykhArenVremenno = "Список публичных арен временно недоступен.",
arenaZakrylasIliSostavy = "Арена закрылась или составы временно недоступны.",
vVybrannoyKomandeNet = "В выбранной команде нет мест.",
sostavyIzmenilisPodklyuchitesEschyo = "Составы изменились. Подключитесь ещё раз.",
dozhditesNachalaSleduyuschegoRaunda = "Дождитесь начала следующего раунда.",
personazhEschyoZagruzhaetsyaPoprobuyte = "Персонаж ещё загружается. Попробуйте снова.",
proveryaemDostupKArene = "Проверяем доступ к арене. Попробуйте через секунду.",
neUdalosPodklyuchitSya = "Не удалось подключиться.",
vladelets = "Владелец · ",
arenaZapolnenaMozhnoVernut = "Арена заполнена. Можно вернуться в общее лобби.",
vybrannayaKomandaNedostupna = "Выбранная команда недоступна.",
prinyaliDZhdyomD = "Приняли %d · Ждём %d · %02d с",
}),
TrophyBalance = table.freeze({
trofei = "ТРОФЕИ",
}),
MatchVoteHud = table.freeze({
sleduyuschiyRezhim = "СЛЕДУЮЩИЙ РЕЖИМ",
vashGolos = "Ваш голос · ",
navediteNaRezhimChtoby = "Наведите на режим, чтобы увидеть его правила.",
dinamicheskayaArena = "ДИНАМИЧЕСКАЯ АРЕНА",
golosovanieZakryto = "ГОЛОСОВАНИЕ ЗАКРЫТО",
rezhimVybran = "РЕЖИМ ВЫБРАН",
sleduyuschiyRaund = "СЛЕДУЮЩИЙ РАУНД",
vyVozvraschaetesVLobbi = "ВЫ ВОЗВРАЩАЕТЕСЬ В ЛОББИ",
vsego = " / Всего ",
vyberiteRezhimVsegoGolosov = "Выберите режим · Всего голосов ",
}),
PowerUpCatalog = table.freeze({
turboiskra = "Турбоискра",
kSkorostiNaSek = "+30% к скорости на 4 сек.",
lunnayaPruzhina = "Лунная пружина",
sleduyuschiyPryzhokVysheNa = "Следующий прыжок выше на 80% · 18 сек.",
vtoroyImpulS = "Второй импульс",
odinPryzhokVVozdukhe = "Один прыжок в воздухе · 8 сек.",
peroBuri = "Перо бури",
uderzhivayProbelDlyaPlavnogo = "Удерживай пробел для плавного падения · 5 сек.",
khrustalNyySchit = "Хрустальный щит",
pogloschaetUronaSek = "Поглощает 25 урона · 7 сек.",
iskraZhizni = "Искра жизни",
vosstanavlivaetHp = "Восстанавливает 25 HP",
zolotoyMagnit = "Золотой магнит",
prityagivanieMonetSStudov = "Притягивание монет с 20 студов · 8 сек.",
zolotayaZhila = "Золотая жила",
kTsennostiSleduyuschikhPyati = "+25% к ценности следующих пяти монет",
bystryeRuki = "Быстрые руки",
sleduyuschayaPerezaryadkaVdvoeBystree = "Следующая перезарядка вдвое быстрее",
zapasnoyMagazin = "Запасной магазин",
mgnovennoPopolnyaetMagazin = "Мгновенно пополняет магазин",
stalNayaKhvatka = "Стальная хватка",
menSheOtdachiI = "Меньше отдачи и разброса · 5 сек.",
shyopot = "Шёпот",
priglushaetShagiNaSek = "Приглушает шаги на 6 сек.",
fantom = "Фантом",
sozdayotDvizhuschuyusyaKopiyuNa = "Создаёт движущуюся копию на 2 сек.",
grozovayaPechat = "Грозовая печать",
sleduyuscheePrizemlenieZamedlyaetVragov = "Следующее приземление замедляет врагов",
iskraOtryada = "Искра отряда",
kSkorostiTebeI = "+20% к скорости тебе и ближайшим союзникам · 3 сек.",
}),
LobbyCamera = table.freeze({
vozrozhdenie = "Возрождение…",
}),
SiegeResults = table.freeze({
rubezhDSinieS = "Рубеж %d · Синие %s · Оранжевые %s",
priRavenstveRubezheyPobezhdaet = "При равенстве рубежей побеждает команда, быстрее дошедшая до последнего взятого.",
}),
Common = table.freeze({
netSvobodnogoMestaDlya = "Нет свободного места для рубежа:",
}),
RifleSkinCatalog = table.freeze({
goluboePlamya = "Голубое пламя",
grozovoyKlinok = "Грозовой клинок",
alayaPechat = "Алая печать",
sakura = "Сакура",
neonovyySboy = "Неоновый сбой",
lunnayaOrbita = "Лунная орбита",
}),
ProceduralArena = table.freeze({
bastiony = "Бастионы",
galerei = "Галереи",
terrasy = "Террасы",
parnyeTonneli = "Парные тоннели",
tonnelSoSmescheniem = "Тоннель со смещением",
triProkhoda = "Три прохода",
bokovyePodYomy = "Боковые подъёмы",
tortsevyePodYomy = "Торцевые подъёмы",
uglovyePodYomy = "Угловые подъёмы",
bazaSinikh = "БАЗА СИНИХ",
bazaOranzhevykh = "БАЗА ОРАНЖЕВЫХ",
}),
}),
round = round,
studs = studs,
domination = domination,
+3 -1
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.LobbyCamera
-- V toggles the lobby camera. Arena entry always selects first person.
local Players = game:GetService("Players")
@@ -32,7 +34,7 @@ message.Position = UDim2.fromScale(.5, .5)
message.Size = UDim2.new(1, -32, 0, 38)
message.BackgroundTransparency = 1
message.Font = Enum.Font.GothamBold
message.Text = "Возрождение…"
message.Text = Text.vozrozhdenie
message.TextSize = 24
message.TextColor3 = Color3.fromRGB(240, 244, 255)
message.Parent = cover
+11 -9
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.MatchVoteHud
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
@@ -38,7 +40,7 @@ local function leftLabel(parent: Instance, name: string, text: string, x: number
item.TextXAlignment = Enum.TextXAlignment.Left
return item
end
local title = leftLabel(panel, "Title", "СЛЕДУЮЩИЙ РЕЖИМ", 25, 16, 625, 43, 33, UI.Ink)
local title = leftLabel(panel, "Title", Text.sleduyuschiyRezhim, 25, 16, 625, 43, 33, UI.Ink)
title.FontFace = UI.Display
local arenaText = leftLabel(panel, "Arena", "", 26, 57, 620, 21, 14, UI.Muted)
local clock = UI.label(panel, "Countdown", "", UDim2.fromOffset(775, 19), UDim2.fromOffset(139, 44), 30, UI.Blue)
@@ -76,9 +78,9 @@ end
local function refreshDetail()
local rule = Rules.find(if locked then selectedRule else hoveredRule or selectedRule)
if locked then
detail.Text = if rule then "Ваш голос · " .. rule.title else ""
detail.Text = if rule then Text.vashGolos .. rule.title else ""
else
detail.Text = if rule then rule.detail else "Наведите на режим, чтобы увидеть его правила."
detail.Text = if rule then rule.detail else Text.navediteNaRezhimChtoby
end
end
@@ -133,8 +135,8 @@ local function startBallot(id: string, endsAt: number, timeLeft: number)
locked, revealEndsAt = false, nil
local match = Modes.state(state, id)
duration = (match:GetAttribute("PhaseDuration") :: number?) or timeLeft
title.Text = "СЛЕДУЮЩИЙ РЕЖИМ"
arenaText.Text = "ДИНАМИЧЕСКАЯ АРЕНА"
title.Text = Text.sleduyuschiyRezhim
arenaText.Text = Text.dinamicheskayaArena
clock.Visible, line.Visible = true, true
clock.TextColor3, fill.BackgroundColor3 = UI.Blue, UI.Blue
caption.TextXAlignment, detail.TextXAlignment = Enum.TextXAlignment.Left, Enum.TextXAlignment.Left
@@ -157,7 +159,7 @@ local function lockBallot()
hoveredRule = nil
clock.TextColor3 = Color3.fromRGB(212, 212, 212)
fill.BackgroundColor3 = Color3.fromRGB(145, 145, 145)
caption.Text = "ГОЛОСОВАНИЕ ЗАКРЫТО"
caption.Text = Text.golosovanieZakryto
refreshDetail()
for _, slot in cards do
assert(slot.card.button).Interactable = false
@@ -171,10 +173,10 @@ local function reveal(outcome: Outcome, now: number)
if revealEndsAt or not winner then return end
lockBallot()
revealEndsAt = math.max(outcome.endsAt, now + 1.35)
title.Text = "РЕЖИМ ВЫБРАН"
title.Text = Text.rezhimVybran
clock.Visible, line.Visible = false, false
caption.TextXAlignment, detail.TextXAlignment = Enum.TextXAlignment.Center, Enum.TextXAlignment.Center
caption.Text = if selectedRule then "СЛЕДУЮЩИЙ РАУНД" else "ВЫ ВОЗВРАЩАЕТЕСЬ В ЛОББИ"
caption.Text = if selectedRule then Text.sleduyuschiyRaund else Text.vyVozvraschaetesVLobbi
detail.Text = Rules.get(outcome.winner).detail
local center = Vector2.new(panelWidth / 2, panelHeight / 2)
for _, slot in cards do
@@ -219,7 +221,7 @@ local received = vote.OnClientEvent:Connect(function(id: string, endsAt: number,
refreshDetail()
if not locked then
local own = Rules.find(selection)
caption.Text = if own then "Ваш голос · " .. own.title .. " / Всего " .. total else "Выберите режим · Всего голосов " .. total
caption.Text = if own then Text.vashGolos .. own.title .. Text.vsego .. total else Text.vyberiteRezhimVsegoGolosov .. total
end
end)
+2 -1
View File
@@ -4,6 +4,7 @@ local Types = require(script.Parent.Types)
local HotPoint = require(script.Parent.Parent.HotPoint)
local Sites = require(script.Parent.Parent.ArenaObjectiveSites)
local Strings = require(game.ReplicatedStorage.Hunter.Strings)
local Text = Strings.interface.Common
type Side = Types.Side
type Fighter = Types.Fighter
export type Marker = HotPoint.Marker & {recolor: ((Color3) -> ())?}
@@ -94,7 +95,7 @@ end
local function makeZone(folder: Folder, geometry: RaycastParams, site: Sites.Site, name: string, radius: number?, tint: Color3?): Zone
local r = radius or HotPoint.Radius
local center, fits = Sites.clearCircle(site.position, geometry, r)
if radius and not fits then warn("Нет свободного места для рубежа:", site.name) end
if radius and not fits then warn(Text.netSvobodnogoMestaDlya, site.name) end
site = {name = site.name, position = center}
return {site = site, marker = ring(folder, name, site.name, center, tint or neutral, r), owner = nil, claiming = nil, progress = 0}
end
+17 -15
View File
@@ -1,20 +1,22 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.PowerUpCatalog
local colors = Color3.fromRGB
return table.freeze({
{ id = "Turbo", title = "Турбоискра", detail = "+30% к скорости на 4 сек.", color = colors(255, 124, 56) },
{ id = "Spring", title = "Лунная пружина", detail = "Следующий прыжок выше на 80% · 18 сек.", color = colors(181, 88, 255) },
{ id = "Double", title = "Второй импульс", detail = "Один прыжок в воздухе · 8 сек.", color = colors(66, 216, 255) },
{ id = "Feather", title = "Перо бури", detail = "Удерживай пробел для плавного падения · 5 сек.", color = colors(121, 241, 220) },
{ id = "Shield", title = "Хрустальный щит", detail = "Поглощает 25 урона · 7 сек.", color = colors(79, 143, 255) },
{ id = "Heal", title = "Искра жизни", detail = "Восстанавливает 25 HP", color = colors(112, 255, 112) },
{ id = "Magnet", title = "Золотой магнит", detail = "Притягивание монет с 20 студов · 8 сек.", color = colors(255, 180, 66) },
{ id = "Lucky", title = "Золотая жила", detail = "+25% к ценности следующих пяти монет", color = colors(250, 241, 95) },
{ id = "Reload", title = "Быстрые руки", detail = "Следующая перезарядка вдвое быстрее", color = colors(255, 103, 158) },
{ id = "Ammo", title = "Запасной магазин", detail = "Мгновенно пополняет магазин", color = colors(255, 82, 100) },
{ id = "Steady", title = "Стальная хватка", detail = "Меньше отдачи и разброса · 5 сек.", color = colors(168, 181, 204) },
{ id = "Quiet", title = "Шёпот", detail = "Приглушает шаги на 6 сек.", color = colors(106, 98, 249) },
{ id = "Phantom", title = "Фантом", detail = "Создаёт движущуюся копию на 2 сек.", color = colors(213, 157, 255) },
{ id = "Storm", title = "Грозовая печать", detail = "Следующее приземление замедляет врагов", color = colors(233, 77, 237) },
{ id = "Team", title = "Искра отряда", detail = "+20% к скорости тебе и ближайшим союзникам · 3 сек.", color = colors(42, 255, 171) },
{ id = "Turbo", title = Text.turboiskra, detail = Text.kSkorostiNaSek, color = colors(255, 124, 56) },
{ id = "Spring", title = Text.lunnayaPruzhina, detail = Text.sleduyuschiyPryzhokVysheNa, color = colors(181, 88, 255) },
{ id = "Double", title = Text.vtoroyImpulS, detail = Text.odinPryzhokVVozdukhe, color = colors(66, 216, 255) },
{ id = "Feather", title = Text.peroBuri, detail = Text.uderzhivayProbelDlyaPlavnogo, color = colors(121, 241, 220) },
{ id = "Shield", title = Text.khrustalNyySchit, detail = Text.pogloschaetUronaSek, color = colors(79, 143, 255) },
{ id = "Heal", title = Text.iskraZhizni, detail = Text.vosstanavlivaetHp, color = colors(112, 255, 112) },
{ id = "Magnet", title = Text.zolotoyMagnit, detail = Text.prityagivanieMonetSStudov, color = colors(255, 180, 66) },
{ id = "Lucky", title = Text.zolotayaZhila, detail = Text.kTsennostiSleduyuschikhPyati, color = colors(250, 241, 95) },
{ id = "Reload", title = Text.bystryeRuki, detail = Text.sleduyuschayaPerezaryadkaVdvoeBystree, color = colors(255, 103, 158) },
{ id = "Ammo", title = Text.zapasnoyMagazin, detail = Text.mgnovennoPopolnyaetMagazin, color = colors(255, 82, 100) },
{ id = "Steady", title = Text.stalNayaKhvatka, detail = Text.menSheOtdachiI, color = colors(168, 181, 204) },
{ id = "Quiet", title = Text.shyopot, detail = Text.priglushaetShagiNaSek, color = colors(106, 98, 249) },
{ id = "Phantom", title = Text.fantom, detail = Text.sozdayotDvizhuschuyusyaKopiyuNa, color = colors(213, 157, 255) },
{ id = "Storm", title = Text.grozovayaPechat, detail = Text.sleduyuscheePrizemlenieZamedlyaetVragov, color = colors(233, 77, 237) },
{ id = "Team", title = Text.iskraOtryada, detail = Text.kSkorostiTebeI, color = colors(42, 255, 171) },
})
+8 -6
View File
@@ -1,11 +1,13 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.RifleSkinCatalog
local entries = table.freeze({
table.freeze({ id = "BlueFlame", name = "Голубое пламя", accent = Color3.fromRGB(100, 223, 255) }),
table.freeze({ id = "ThunderBlade", name = "Грозовой клинок", accent = Color3.fromRGB(193, 142, 255) }),
table.freeze({ id = "CrimsonSeal", name = "Алая печать", accent = Color3.fromRGB(255, 113, 81) }),
table.freeze({ id = "Sakura", name = "Сакура", accent = Color3.fromRGB(255, 161, 209) }),
table.freeze({ id = "NeonGlitch", name = "Неоновый сбой", accent = Color3.fromRGB(138, 255, 80) }),
table.freeze({ id = "LunarOrbit", name = "Лунная орбита", accent = Color3.fromRGB(255, 210, 120) }),
table.freeze({ id = "BlueFlame", name = Text.goluboePlamya, accent = Color3.fromRGB(100, 223, 255) }),
table.freeze({ id = "ThunderBlade", name = Text.grozovoyKlinok, accent = Color3.fromRGB(193, 142, 255) }),
table.freeze({ id = "CrimsonSeal", name = Text.alayaPechat, accent = Color3.fromRGB(255, 113, 81) }),
table.freeze({ id = "Sakura", name = Text.sakura, accent = Color3.fromRGB(255, 161, 209) }),
table.freeze({ id = "NeonGlitch", name = Text.neonovyySboy, accent = Color3.fromRGB(138, 255, 80) }),
table.freeze({ id = "LunarOrbit", name = Text.lunnayaOrbita, accent = Color3.fromRGB(255, 210, 120) }),
})
local Catalog = {}
+3 -1
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.TrophyBalance
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
@@ -55,7 +57,7 @@ pill.AnchorPoint = Vector2.new(1, 0)
local coin = UI.element("GoldCoin", pill, UDim2.fromOffset(13, 7), UDim2.fromOffset(36, 36))
local walletCoin = UI.bindCoin(coin)
local title = label("CurrencyName", pill, "ТРОФЕИ", UDim2.fromOffset(158, 8), UDim2.fromOffset(72, 35), 13, UI.Ink)
local title = label("CurrencyName", pill, Text.trofei, UDim2.fromOffset(158, 8), UDim2.fromOffset(72, 35), 13, UI.Ink)
title.FontFace = UI.Display
title.TextXAlignment = Enum.TextXAlignment.Left
local divider = UI.frame("Divider", pill, UDim2.fromOffset(146, 12), UDim2.fromOffset(1, 26), UI.Outline)
+151 -149
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.ViewmodelTuner
-- Viewmodel tuning mode (Studio playtests only). Press P to open the panel and adjust the weapon's
-- position relative to the camera live: -/+ buttons (hold to repeat) or type a value.
-- "Сохранить" hands the values to the ViewmodelTuneSaver Studio plugin, which writes them into the
@@ -31,16 +33,16 @@ type Param = { name: string, label: string, unit: number }
type Tab = { title: string, params: { Param }, buttons: string?, sight: string?, group: string? }
local TABS: { Tab } = {
{
title = "Оружие",
title = Text.oruzhie,
params = {
{ name = "OffsetX", label = "Вправо / влево", unit = 1 },
{ name = "OffsetY", label = "Вверх / вниз", unit = 1 },
{ name = "OffsetZ", label = "Вперёд / назад", unit = 1 },
{ name = "YawDeg", label = "Поворот (yaw)", unit = 20 },
{ name = "PitchDeg", label = "Наклон (pitch)", unit = 20 },
{ name = "RollDeg", label = "Крен (roll)", unit = 20 },
{ name = "SwayAmount", label = "Инерция", unit = 4 },
{ name = "BobAmount", label = "Покачивание", unit = 0.2 },
{ name = "OffsetX", label = Text.vpravoVlevo, unit = 1 },
{ name = "OffsetY", label = Text.vverkhVniz, unit = 1 },
{ name = "OffsetZ", label = Text.vperyodNazad, unit = 1 },
{ name = "YawDeg", label = Text.povorotYaw, unit = 20 },
{ name = "PitchDeg", label = Text.naklonPitch, unit = 20 },
{ name = "RollDeg", label = Text.krenRoll, unit = 20 },
{ name = "SwayAmount", label = Text.inertsiya, unit = 4 },
{ name = "BobAmount", label = Text.pokachivanie, unit = 0.2 },
},
},
}
@@ -48,205 +50,205 @@ local function armTab(title: string, prefix: string): Tab
return {
title = title,
params = {
{ name = prefix .. "HandX", label = "Кисть: вправо/влево", unit = 1 },
{ name = prefix .. "HandY", label = "Кисть: вверх/вниз", unit = 1 },
{ name = prefix .. "HandZ", label = "Кисть: вперёд/назад", unit = 1 },
{ name = prefix .. "ArmYawDeg", label = "Рука: поворот", unit = 20 },
{ name = prefix .. "ArmPitchDeg", label = "Рука: наклон", unit = 20 },
{ name = prefix .. "ArmRollDeg", label = "Рука: крен", unit = 20 },
{ name = prefix .. "ArmLength", label = "Длина руки", unit = 2 },
{ name = prefix .. "ArmThickness", label = "Толщина руки", unit = 0.2 },
{ name = prefix .. "HandLength", label = "Длина кисти", unit = 0.5 },
{ name = prefix .. "HandThickness", label = "Толщина кисти", unit = 0.2 },
{ name = prefix .. "HandX", label = Text.kistVpravoVlevo, unit = 1 },
{ name = prefix .. "HandY", label = Text.kistVverkhVniz, unit = 1 },
{ name = prefix .. "HandZ", label = Text.kistVperyodNazad, unit = 1 },
{ name = prefix .. "ArmYawDeg", label = Text.rukaPovorot, unit = 20 },
{ name = prefix .. "ArmPitchDeg", label = Text.rukaNaklon, unit = 20 },
{ name = prefix .. "ArmRollDeg", label = Text.rukaKren, unit = 20 },
{ name = prefix .. "ArmLength", label = Text.dlinaRuki, unit = 2 },
{ name = prefix .. "ArmThickness", label = Text.tolschinaRuki, unit = 0.2 },
{ name = prefix .. "HandLength", label = Text.dlinaKisti, unit = 0.5 },
{ name = prefix .. "HandThickness", label = Text.tolschinaKisti, unit = 0.2 },
},
}
end
table.insert(TABS, armTab("Левая рука", ""))
table.insert(TABS, armTab("Правая рука", "R"))
table.insert(TABS, armTab(Text.levayaRuka, ""))
table.insert(TABS, armTab(Text.pravayaRuka, "R"))
table.insert(TABS, {
title = "Осмотр",
title = Text.osmotr,
buttons = "Inspect",
params = {
{ name = "InspX", label = "Вправо / влево", unit = 1 },
{ name = "InspY", label = "Вверх / вниз", unit = 1 },
{ name = "InspZ", label = "Вперёд / назад", unit = 1 },
{ name = "InspYawDeg", label = "Поворот (yaw)", unit = 20 },
{ name = "InspPitchDeg", label = "Наклон (pitch)", unit = 20 },
{ name = "InspRollDeg", label = "Крен (roll)", unit = 20 },
{ name = "InspDriftDeg", label = "Дрейф при удержании", unit = 20 },
{ name = "InspBlendIn", label = "Выход в позу, с", unit = 2 },
{ name = "InspHold", label = "Удержание, с", unit = 2 },
{ name = "InspBlendOut", label = "Возврат, с", unit = 2 },
{ name = "InspX", label = Text.vpravoVlevo, unit = 1 },
{ name = "InspY", label = Text.vverkhVniz, unit = 1 },
{ name = "InspZ", label = Text.vperyodNazad, unit = 1 },
{ name = "InspYawDeg", label = Text.povorotYaw, unit = 20 },
{ name = "InspPitchDeg", label = Text.naklonPitch, unit = 20 },
{ name = "InspRollDeg", label = Text.krenRoll, unit = 20 },
{ name = "InspDriftDeg", label = Text.dreyfPriUderzhanii, unit = 20 },
{ name = "InspBlendIn", label = Text.vykhodVPozuS, unit = 2 },
{ name = "InspHold", label = Text.uderzhanieS, unit = 2 },
{ name = "InspBlendOut", label = Text.vozvratS, unit = 2 },
},
})
table.insert(TABS, {
title = "Перезарядка",
title = Text.perezaryadka,
buttons = "Reload",
params = {
{ name = "ReloadTime", label = "Длительность, с", unit = 2 },
{ name = "ReloadPreviewU", label = "Кадр (0–1)", unit = 0.2 },
{ name = "RlX", label = "Магазин: вправо/влево", unit = 1 },
{ name = "RlY", label = "Магазин: вверх/вниз", unit = 1 },
{ name = "RlZ", label = "Магазин: вперёд/назад", unit = 1 },
{ name = "RlYawDeg", label = "Магазин: поворот", unit = 20 },
{ name = "RlPitchDeg", label = "Магазин: наклон", unit = 20 },
{ name = "RlRollDeg", label = "Магазин: крен", unit = 20 },
{ name = "ReloadTime", label = Text.dlitelNostS, unit = 2 },
{ name = "ReloadPreviewU", label = Text.kadr, unit = 0.2 },
{ name = "RlX", label = Text.magazinVpravoVlevo, unit = 1 },
{ name = "RlY", label = Text.magazinVverkhVniz, unit = 1 },
{ name = "RlZ", label = Text.magazinVperyodNazad, unit = 1 },
{ name = "RlYawDeg", label = Text.magazinPovorot, unit = 20 },
{ name = "RlPitchDeg", label = Text.magazinNaklon, unit = 20 },
{ name = "RlRollDeg", label = Text.magazinKren, unit = 20 },
},
})
-- weapon pose while the bolt is worked (pose B)
table.insert(TABS, {
title = "Перезарядка: затвор",
title = Text.perezaryadkaZatvor,
buttons = "Reload",
params = {
{ name = "RlBX", label = "Затвор: вправо/влево", unit = 1 },
{ name = "RlBY", label = "Затвор: вверх/вниз", unit = 1 },
{ name = "RlBZ", label = "Затвор: вперёд/назад", unit = 1 },
{ name = "RlBYawDeg", label = "Затвор: поворот", unit = 20 },
{ name = "RlBPitchDeg", label = "Затвор: наклон", unit = 20 },
{ name = "RlBRollDeg", label = "Затвор: крен", unit = 20 },
{ name = "ReloadPreviewU", label = "Кадр (0–1)", unit = 0.2 },
{ name = "RlBX", label = Text.zatvorVpravoVlevo, unit = 1 },
{ name = "RlBY", label = Text.zatvorVverkhVniz, unit = 1 },
{ name = "RlBZ", label = Text.zatvorVperyodNazad, unit = 1 },
{ name = "RlBYawDeg", label = Text.zatvorPovorot, unit = 20 },
{ name = "RlBPitchDeg", label = Text.zatvorNaklon, unit = 20 },
{ name = "RlBRollDeg", label = Text.zatvorKren, unit = 20 },
{ name = "ReloadPreviewU", label = Text.kadr, unit = 0.2 },
},
})
local function reloadHandParams(prefix: string): { Param }
return {
{ name = prefix .. "MagX", label = "Магазин: вправо/влево", unit = 1 },
{ name = prefix .. "MagY", label = "Магазин: вверх/вниз", unit = 1 },
{ name = prefix .. "MagZ", label = "Магазин: вперёд/назад", unit = 1 },
{ name = prefix .. "MagDrop", label = "Магазин: вынуть вниз", unit = 1 },
{ name = prefix .. "BoltX", label = "Затвор: вправо/влево", unit = 1 },
{ name = prefix .. "BoltY", label = "Затвор: вверх/вниз", unit = 1 },
{ name = prefix .. "BoltZ", label = "Затвор: вперёд/назад", unit = 1 },
{ name = prefix .. "BoltLift", label = "Затвор: подъём", unit = 0.5 },
{ name = prefix .. "BoltPull", label = "Затвор: ход назад", unit = 1 },
{ name = prefix .. "MagX", label = Text.magazinVpravoVlevo, unit = 1 },
{ name = prefix .. "MagY", label = Text.magazinVverkhVniz, unit = 1 },
{ name = prefix .. "MagZ", label = Text.magazinVperyodNazad, unit = 1 },
{ name = prefix .. "MagDrop", label = Text.magazinVynutVniz, unit = 1 },
{ name = prefix .. "BoltX", label = Text.zatvorVpravoVlevo, unit = 1 },
{ name = prefix .. "BoltY", label = Text.zatvorVverkhVniz, unit = 1 },
{ name = prefix .. "BoltZ", label = Text.zatvorVperyodNazad, unit = 1 },
{ name = prefix .. "BoltLift", label = Text.zatvorPodYom, unit = 0.5 },
{ name = prefix .. "BoltPull", label = Text.zatvorKhodNazad, unit = 1 },
}
end
local fpHands = reloadHandParams("")
table.insert(fpHands, { name = "MagSizeX", label = "Магазин: толщина", unit = 0.2 })
table.insert(fpHands, { name = "MagSizeY", label = "Магазин: высота", unit = 0.5 })
table.insert(fpHands, { name = "MagSizeZ", label = "Магазин: ширина", unit = 0.5 })
table.insert(TABS, { title = "Перезарядка: руки", buttons = "Reload", params = fpHands })
table.insert(fpHands, { name = "MagSizeX", label = Text.magazinTolschina, unit = 0.2 })
table.insert(fpHands, { name = "MagSizeY", label = Text.magazinVysota, unit = 0.5 })
table.insert(fpHands, { name = "MagSizeZ", label = Text.magazinShirina, unit = 0.5 })
table.insert(TABS, { title = Text.perezaryadkaRuki, buttons = "Reload", params = fpHands })
table.insert(TABS, {
title = "Движение",
title = Text.dvizhenie,
params = {
{ name = "MovementWalkSpeed", label = "Скорость игрока, студ/с", unit = 20 },
{ name = "MovementGravity", label = "Гравитация, студ/с²", unit = 100 },
{ name = "FovBase", label = "Обзор (FOV)", unit = 20 },
{ name = "FovBoost", label = "Обзор: + на бегу", unit = 20 },
{ name = "FovSpeed", label = "Скорость для макс. FOV", unit = 20 },
{ name = "MoveDipY", label = "Оружие: вниз на бегу", unit = 1 },
{ name = "MoveBack", label = "Оружие: назад на бегу", unit = 1 },
{ name = "MoveRollDeg", label = "Оружие: крен на бегу", unit = 20 },
{ name = "MoveLag", label = "Запаздывание", unit = 0.2 },
{ name = "FallLag", label = "Оружие: прыжок / падение", unit = 0.2 },
{ name = "MovementWalkSpeed", label = Text.skorostIgrokaStudS, unit = 20 },
{ name = "MovementGravity", label = Text.gravitatsiyaStudS, unit = 100 },
{ name = "FovBase", label = Text.obzorFov, unit = 20 },
{ name = "FovBoost", label = Text.obzorNaBegu, unit = 20 },
{ name = "FovSpeed", label = Text.skorostDlyaMaksFov, unit = 20 },
{ name = "MoveDipY", label = Text.oruzhieVnizNaBegu, unit = 1 },
{ name = "MoveBack", label = Text.oruzhieNazadNaBegu, unit = 1 },
{ name = "MoveRollDeg", label = Text.oruzhieKrenNaBegu, unit = 20 },
{ name = "MoveLag", label = Text.zapazdyvanie, unit = 0.2 },
{ name = "FallLag", label = Text.oruzhiePryzhokPadenie, unit = 0.2 },
},
})
table.insert(TABS, {
title = "Выстрел",
title = Text.vystrel,
buttons = "Shot",
params = {
{ name = "FireInterval", label = "Между выстрелами, с", unit = 2 },
{ name = "MagCapacity", label = "Патронов в магазине", unit = 20 },
{ name = "ShotZoomPct", label = "Зум при очереди, %", unit = 20 },
{ name = "SpreadBase", label = "Спрей: начальный увод, °", unit = 4 },
{ name = "SpreadPerShot", label = "Спрей: рост за выстрел, °", unit = 4 },
{ name = "SpreadMax", label = "Спрей: предел роста, °", unit = 4 },
{ name = "SpreadRecover", label = "Спрей: скорость сброса", unit = 20 },
{ name = "SpreadAim", label = "Спрей в прицеле, ×", unit = 1 },
{ name = "ShotBoltDelay", label = "Затвор: пауза, с", unit = 1 },
{ name = "ShotBoltTime", label = "Затвор, с (0 = автомат)", unit = 1 },
{ name = "ShotBoltTilt", label = "Затвор: наклон (0–1)", unit = 1 },
{ name = "ShotPreviewT", label = "Кадр, с после выстрела", unit = 1 },
{ name = "FireInterval", label = Text.mezhduVystrelamiS, unit = 2 },
{ name = "MagCapacity", label = Text.patronovVMagazine, unit = 20 },
{ name = "ShotZoomPct", label = Text.zumPriOcheredi, unit = 20 },
{ name = "SpreadBase", label = Text.spreyNachalNyyUvod, unit = 4 },
{ name = "SpreadPerShot", label = Text.spreyRostZaVystrel, unit = 4 },
{ name = "SpreadMax", label = Text.spreyPredelRosta, unit = 4 },
{ name = "SpreadRecover", label = Text.spreySkorostSbrosa, unit = 20 },
{ name = "SpreadAim", label = Text.spreyVPritsele, unit = 1 },
{ name = "ShotBoltDelay", label = Text.zatvorPauzaS, unit = 1 },
{ name = "ShotBoltTime", label = Text.zatvorSAvtomat, unit = 1 },
{ name = "ShotBoltTilt", label = Text.zatvorNaklon2, unit = 1 },
{ name = "ShotPreviewT", label = Text.kadrSPosleVystrela, unit = 1 },
},
})
table.insert(TABS, {
title = "Выстрел: ствол",
title = Text.vystrelStvol,
buttons = "Shot",
params = {
{ name = "MuzzleX", label = "Дуло: вправо/влево", unit = 1 },
{ name = "MuzzleY", label = "Дуло: вверх/вниз", unit = 1 },
{ name = "MuzzleZ", label = "Дуло: вперёд/назад", unit = 1 },
{ name = "FlashSize", label = "Вспышка: размер", unit = 1 },
{ name = "TPMuzzleX", label = "3л дуло: вправо/влево", unit = 1 },
{ name = "TPMuzzleY", label = "3л дуло: вверх/вниз", unit = 1 },
{ name = "TPMuzzleZ", label = "3л дуло: вперёд/назад", unit = 1 },
{ name = "TPFlashSize", label = "3л вспышка: размер", unit = 1 },
{ name = "TPRecoilBack", label = "3л отдача: назад", unit = 1 },
{ name = "TPRecoilPitchDeg", label = "3л отдача: вверх", unit = 20 },
{ name = "MuzzleX", label = Text.duloVpravoVlevo, unit = 1 },
{ name = "MuzzleY", label = Text.duloVverkhVniz, unit = 1 },
{ name = "MuzzleZ", label = Text.duloVperyodNazad, unit = 1 },
{ name = "FlashSize", label = Text.vspyshkaRazmer, unit = 1 },
{ name = "TPMuzzleX", label = Text.lDuloVpravoVlevo, unit = 1 },
{ name = "TPMuzzleY", label = Text.lDuloVverkhVniz, unit = 1 },
{ name = "TPMuzzleZ", label = Text.lDuloVperyodNazad, unit = 1 },
{ name = "TPFlashSize", label = Text.lVspyshkaRazmer, unit = 1 },
{ name = "TPRecoilBack", label = Text.lOtdachaNazad, unit = 1 },
{ name = "TPRecoilPitchDeg", label = Text.lOtdachaVverkh, unit = 20 },
},
})
-- aiming down the sights: one tab "Прицеливание", a page per sight inside it (attributes Aim<Sight>...)
for _, s in { { "Iron", "Мушка" }, { "RedDot", "Коллиматор" }, { "Scope", "Оптика" } } do
for _, s in { { "Iron", Text.mushka }, { "RedDot", Text.kollimator }, { "Scope", Text.optika } } do
local p = "Aim" .. s[1]
table.insert(TABS, {
title = s[2],
group = "Прицел",
group = Text.pritsel,
buttons = "Aim",
sight = s[1],
params = {
{ name = p .. "X", label = "Вправо / влево", unit = 1 },
{ name = p .. "Y", label = "Вверх / вниз", unit = 1 },
{ name = p .. "Z", label = "Вперёд / назад", unit = 1 },
{ name = p .. "YawDeg", label = "Поворот (yaw)", unit = 20 },
{ name = p .. "PitchDeg", label = "Наклон (pitch)", unit = 20 },
{ name = p .. "RollDeg", label = "Крен (roll)", unit = 20 },
{ name = p .. "Fov", label = "FOV / зум (меньше = ближе)", unit = 20 },
{ name = p .. "Sens", label = "Чувствительность мыши", unit = 1 },
{ name = "AimTime", label = "Время прицеливания, с", unit = 1 },
{ name = "AimSway", label = "Покачивание в прицеле", unit = 1 },
{ name = "AimSlow", label = "Замедление в прицеле (0–1)", unit = 1 },
{ name = p .. "X", label = Text.vpravoVlevo, unit = 1 },
{ name = p .. "Y", label = Text.vverkhVniz, unit = 1 },
{ name = p .. "Z", label = Text.vperyodNazad, unit = 1 },
{ name = p .. "YawDeg", label = Text.povorotYaw, unit = 20 },
{ name = p .. "PitchDeg", label = Text.naklonPitch, unit = 20 },
{ name = p .. "RollDeg", label = Text.krenRoll, unit = 20 },
{ name = p .. "Fov", label = Text.fovZumMenShe, unit = 20 },
{ name = p .. "Sens", label = Text.chuvstvitelNostMyshi, unit = 1 },
{ name = "AimTime", label = Text.vremyaPritselivaniyaS, unit = 1 },
{ name = "AimSway", label = Text.pokachivanieVPritsele, unit = 1 },
{ name = "AimSlow", label = Text.zamedlenieVPritsele, unit = 1 },
},
})
end
-- mouse sensitivity: from the hip and through each sight (1 = the player's own setting)
table.insert(TABS, {
title = "Чувствительность",
title = Text.chuvstvitelNost,
params = {
{ name = "HipSens", label = "От бедра", unit = 1 },
{ name = "AimIronSens", label = "Мушка", unit = 1 },
{ name = "AimRedDotSens", label = "Коллиматор", unit = 1 },
{ name = "AimScopeSens", label = "Оптика", unit = 1 },
{ name = "HipSens", label = Text.otBedra, unit = 1 },
{ name = "AimIronSens", label = Text.mushka, unit = 1 },
{ name = "AimRedDotSens", label = Text.kollimator, unit = 1 },
{ name = "AimScopeSens", label = Text.optika, unit = 1 },
},
})
-- sound volumes, the blast on hits, the damage numbers
table.insert(TABS, {
title = "Звук и попадания",
title = Text.zvukIPopadaniya,
params = {
{ name = "VolMaster", label = "Громкость: общая", unit = 1 },
{ name = "VolShot", label = "Громкость: выстрел", unit = 1 },
{ name = "VolReload", label = "Громкость: перезарядка/затвор", unit = 1 },
{ name = "VolHit", label = "Громкость: попадание", unit = 1 },
{ name = "VolKill", label = "Громкость: разрушение", unit = 1 },
{ name = "HitFxSize", label = "Размер взрыва при попадании", unit = 1 },
{ name = "DmgNumSpread", label = "Цифры урона: разлёт в стороны", unit = 1 },
{ name = "DmgNumRise", label = "Цифры урона: подъём вверх", unit = 1 },
{ name = "KillPopRise", label = "Убийство: высота вылета", unit = 1 },
{ name = "VolMaster", label = Text.gromkostObschaya, unit = 1 },
{ name = "VolShot", label = Text.gromkostVystrel, unit = 1 },
{ name = "VolReload", label = Text.gromkostPerezaryadkaZatvor, unit = 1 },
{ name = "VolHit", label = Text.gromkostPopadanie, unit = 1 },
{ name = "VolKill", label = Text.gromkostRazrushenie, unit = 1 },
{ name = "HitFxSize", label = Text.razmerVzryvaPriPopadanii, unit = 1 },
{ name = "DmgNumSpread", label = Text.tsifryUronaRazlyotV, unit = 1 },
{ name = "DmgNumRise", label = Text.tsifryUronaPodYom, unit = 1 },
{ name = "KillPopRise", label = Text.ubiystvoVysotaVyleta, unit = 1 },
},
})
-- third person (what other players see): ThirdPersonRifle reads these
local function poseParams(prefix: string, what: string): { Param }
return {
{ name = prefix .. "X", label = what .. ": вправо/влево", unit = 1 },
{ name = prefix .. "Y", label = what .. ": вверх/вниз", unit = 1 },
{ name = prefix .. "Z", label = what .. ": вперёд/назад", unit = 1 },
{ name = prefix .. "YawDeg", label = what .. ": поворот", unit = 20 },
{ name = prefix .. "PitchDeg", label = what .. ": наклон", unit = 20 },
{ name = prefix .. "RollDeg", label = what .. ": крен", unit = 20 },
{ name = prefix .. "X", label = what .. Text.vpravoVlevo2, unit = 1 },
{ name = prefix .. "Y", label = what .. Text.vverkhVniz2, unit = 1 },
{ name = prefix .. "Z", label = what .. Text.vperyodNazad2, unit = 1 },
{ name = prefix .. "YawDeg", label = what .. Text.povorot, unit = 20 },
{ name = prefix .. "PitchDeg", label = what .. Text.naklon, unit = 20 },
{ name = prefix .. "RollDeg", label = what .. Text.kren, unit = 20 },
}
end
table.insert(TABS, { title = "3л: оружие", params = poseParams("TPGun", "Оружие") })
for _, side in { { "R", "3л: правая рука" }, { "L", "3л: левая рука" } } do
local params = poseParams("TP" .. side[1] .. "Hand", "Кисть")
table.insert(params, { name = "TP" .. side[1] .. "ElbowX", label = "Локоть: вправо/влево", unit = 1 })
table.insert(params, { name = "TP" .. side[1] .. "ElbowY", label = "Локоть: вверх/вниз", unit = 1 })
table.insert(params, { name = "TP" .. side[1] .. "ElbowZ", label = "Локоть: вперёд/назад", unit = 1 })
table.insert(TABS, { title = Text.lOruzhie, params = poseParams("TPGun", Text.oruzhie) })
for _, side in { { "R", Text.lPravayaRuka }, { "L", Text.lLevayaRuka } } do
local params = poseParams("TP" .. side[1] .. "Hand", Text.kist)
table.insert(params, { name = "TP" .. side[1] .. "ElbowX", label = Text.lokotVpravoVlevo, unit = 1 })
table.insert(params, { name = "TP" .. side[1] .. "ElbowY", label = Text.lokotVverkhVniz, unit = 1 })
table.insert(params, { name = "TP" .. side[1] .. "ElbowZ", label = Text.lokotVperyodNazad, unit = 1 })
table.insert(TABS, { title = side[2], params = params })
end
table.insert(TABS, { title = "3л: перезарядка", buttons = "Reload", params = reloadHandParams("TP") })
table.insert(TABS, { title = Text.lPerezaryadka, buttons = "Reload", params = reloadHandParams("TP") })
local TABS_PER_ROW = 4
local PARAMS: { Param } = {}
local maxRows = 0
@@ -341,14 +343,14 @@ local function button(parent: Instance, text: string, pos: UDim2, size: UDim2):
return b
end
label(panel, "Настройка (P — закрыть)", UDim2.fromOffset(12, 6), UDim2.new(1, -124, 0, 22))
label(panel, Text.nastroykaPZakryt, UDim2.fromOffset(12, 6), UDim2.new(1, -124, 0, 22))
-- switches the local camera between first person and a third-person view of the character
local viewButton = button(panel, "", UDim2.fromOffset(214, 5), UDim2.fromOffset(96, 22))
viewButton.TextSize = 12
local function refreshView()
local on = target:GetAttribute("ThirdPersonView") == true
viewButton.Text = if on then "Вид: 3-е лицо" else "Вид: 1-е лицо"
viewButton.Text = if on then Text.vidELitso else Text.vidELitso2
viewButton.BackgroundColor3 = if on then Color3.fromRGB(70, 110, 190) else Color3.fromRGB(55, 60, 75)
end
viewButton.MouseButton1Click:Connect(function()
@@ -531,8 +533,8 @@ for i, tab in TABS do
for r, p in tab.params do
addRow(page, p, top + (r - 1) * 34)
end
if tab.title == "Движение" then
label(page, "Меньше гравитация — выше прыжок", UDim2.fromOffset(12, top + #tab.params * 34), UDim2.fromOffset(298, 24))
if tab.title == Text.dvizhenie then
label(page, Text.menSheGravitatsiyaVyshe, UDim2.fromOffset(12, top + #tab.params * 34), UDim2.fromOffset(298, 24))
end
local kind = tab.buttons
if kind then
@@ -540,7 +542,7 @@ for i, tab in TABS do
local previewAttr, triggerAttr = kind .. "Preview", kind .. "Trigger"
local y = top + #tab.params * 34
local sight = tab.sight
local play = button(page, if kind == "Aim" then "▶ Прицелиться" else "▶ Проиграть", UDim2.fromOffset(12, y), UDim2.fromOffset(145, 28))
local play = button(page, if kind == "Aim" then Text.pritselitSya else Text.proigrat, UDim2.fromOffset(12, y), UDim2.fromOffset(145, 28))
play.MouseButton1Click:Connect(function()
if sight then
target:SetAttribute("AimPreviewSight", sight) -- SniperViewmodel puts this sight on the rifle
@@ -548,7 +550,7 @@ for i, tab in TABS do
target:SetAttribute(previewAttr, false)
target:SetAttribute(triggerAttr, os.clock())
end)
local holdText = if kind == "Inspect" then "Держать позу" elseif kind == "Aim" then "Держать прицел" else "Держать кадр"
local holdText = if kind == "Inspect" then Text.derzhatPozu elseif kind == "Aim" then Text.derzhatPritsel else Text.derzhatKadr
local holdPose = button(page, holdText, UDim2.fromOffset(165, y), UDim2.fromOffset(145, 28))
local function refreshHold()
local on = target:GetAttribute(previewAttr) == true
@@ -574,7 +576,7 @@ selectTab(1)
local bottom = ROWS_TOP + maxRows * 34 + 6
local stepButton = button(panel, "", UDim2.fromOffset(12, bottom), UDim2.fromOffset(96, 30))
local function refreshStep()
stepButton.Text = "Шаг: " .. tostring(STEPS[stepIndex])
stepButton.Text = Text.shag .. tostring(STEPS[stepIndex])
end
refreshStep()
stepButton.MouseButton1Click:Connect(function()
@@ -582,14 +584,14 @@ stepButton.MouseButton1Click:Connect(function()
refreshStep()
end)
local reset = button(panel, "Сброс", UDim2.fromOffset(114, bottom), UDim2.fromOffset(80, 30))
local reset = button(panel, Text.sbros, UDim2.fromOffset(114, bottom), UDim2.fromOffset(80, 30))
reset.MouseButton1Click:Connect(function()
for _, p in PARAMS do
setValue(p.name, initial[p.name])
end
end)
local save = button(panel, "Сохранить", UDim2.fromOffset(200, bottom), UDim2.fromOffset(110, 30))
local save = button(panel, Text.sokhranit, UDim2.fromOffset(200, bottom), UDim2.fromOffset(110, 30))
save.BackgroundColor3 = Color3.fromRGB(40, 140, 80)
save.MouseButton1Click:Connect(function()
local values = {}
@@ -600,9 +602,9 @@ save.MouseButton1Click:Connect(function()
print("VIEWMODEL_TUNE " .. json)
-- picked up by the ViewmodelTuneSaver Studio plugin and written into the place after the playtest
target:SetAttribute("SavedTune", HttpService:JSONEncode({ t = DateTime.now().UnixTimestampMillis, values = values }))
save.Text = "Сохранено ✓"
save.Text = Text.sokhraneno
task.delay(1.5, function()
save.Text = "Сохранить"
save.Text = Text.sokhranit
end)
end)
+10 -8
View File
@@ -1,4 +1,6 @@
--!strict
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.ProceduralArena
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local Mobility = require(ReplicatedStorage:WaitForChild("ArenaMobility") :: ModuleScript)
@@ -54,16 +56,16 @@ assert(jumpArt and #boostArt > 0, "Arena mobility templates are missing")
table.sort(boostArt, function(a, b) return a.model.Name < b.model.Name end)
local keeps = {
{name = "Бастионы", roofHalfZ = 23, wingX = 12, width = 32, depth = 18, balconyX = -12},
{name = "Галереи", roofHalfZ = 20, wingX = 0, width = 46, depth = 25, balconyX = 0},
{name = "Террасы", roofHalfZ = 27, wingX = -14, width = 24, depth = 13, balconyX = 17},
{name = Text.bastiony, roofHalfZ = 23, wingX = 12, width = 32, depth = 18, balconyX = -12},
{name = Text.galerei, roofHalfZ = 20, wingX = 0, width = 46, depth = 25, balconyX = 0},
{name = Text.terrasy, roofHalfZ = 27, wingX = -14, width = 24, depth = 13, balconyX = 17},
}
local tunnels = {
{name = "Парные тоннели", openings = {{x = -37, width = 21}, {x = 37, width = 21}}},
{name = "Тоннель со смещением", openings = {{x = -25, width = 27}}},
{name = "Три прохода", openings = {{x = -49, width = 17}, {x = 0, width = 21}, {x = 49, width = 17}}},
{name = Text.parnyeTonneli, openings = {{x = -37, width = 21}, {x = 37, width = 21}}},
{name = Text.tonnelSoSmescheniem, openings = {{x = -25, width = 27}}},
{name = Text.triProkhoda, openings = {{x = -49, width = 17}, {x = 0, width = 21}, {x = 49, width = 17}}},
}
local rampPlans = {"Боковые подъёмы", "Торцевые подъёмы", "Угловые подъёмы"}
local rampPlans = {Text.bokovyePodYomy, Text.tortsevyePodYomy, Text.uglovyePodYomy}
local recentProfiles: {string} = {}
local function profileKey(plan: Plan): string
@@ -199,7 +201,7 @@ local function base(layout: Layout, parent: Folder, side: string, rotation: CFra
text.Size, text.BackgroundTransparency = UDim2.fromScale(1, 1), 1
text.Font, text.TextSize = Enum.Font.GothamBlack, 19
text.TextColor3, text.TextStrokeTransparency = color, .2
text.Text = if blue then "БАЗА СИНИХ" else "БАЗА ОРАНЖЕВЫХ"
text.Text = if blue then Text.bazaSinikh else Text.bazaOranzhevykh
text.Parent = sign
local points: {Vector3} = {}