Polish One Life mini-rounds and spectating

This commit is contained in:
Leshyi committed 2026-11-30 00:03:48 +05:00
1 parent 0c949fadf0
commit ebe8db5359
12 files changed
+175 -17

No files matched your search

@@ -62,6 +62,15 @@ local function event(kind: string, p: any)
elseif p.side == player:GetAttribute("ArenaTeam") then S.flagHints.picked else S.flagHints.enemyPicked
bannerUntil = workspace:GetServerTimeNow() + 2.7
end
if id == "OneLife" and (kind == Kinds.MiniRoundStarted or kind == Kinds.MiniRoundEnded) then
contour:SetAttribute("Accent",tone)
local copy=S.lifeHints
local blue,orange=p.blue or 0,p.orange or 0
title.Text=if kind == Kinds.MiniRoundStarted then string.format(copy.begin,p.index or 1,blue,orange)
elseif not p.side then copy.draw else string.format(copy.win,S.team(p.side),math.max(blue,orange),math.min(blue,orange))
bannerUntil=workspace:GetServerTimeNow()+2.8
Sounds.sound(if kind==Kinds.MiniRoundStarted then "RoundStart" else "HotPointCaptured")
end
if id == "TrophyHunt" and p.userId == player.UserId then
if kind == Kinds.TokensBanked then
contour:SetAttribute("Accent", tone)