Polish Capture the Flag navigation and feedback

This commit is contained in:
Leshyi committed 2026-11-29 23:58:57 +05:00
1 parent 522344e34b
commit 9fb926537c
8 files changed
+203 -5

No files matched your search

@@ -56,6 +56,12 @@ local function event(kind: string, p: any)
if player:GetAttribute("InArena") ~= true or match:GetAttribute("Phase") ~= "Round" then return end
local id = match:GetAttribute("Ruleset")
local tone = tint(p.side)
if id == "CaptureFlag" and (kind == Kinds.FlagPicked or kind == Kinds.FlagScored) then
contour:SetAttribute("Accent", tone)
title.Text = if kind == Kinds.FlagScored then S.flagHints.scored
elseif p.side == player:GetAttribute("ArenaTeam") then S.flagHints.picked else S.flagHints.enemyPicked
bannerUntil = workspace:GetServerTimeNow() + 2.7
end
if id == "Domination" then
if kind == Kinds.ZoneLost and p.side == player:GetAttribute("ArenaTeam") then
pending = {key="dp_lost",priority=70,text=S.domination.lost(string.sub(p.text or "A",1,1)),ttl=4}