Polish Hunt Leader tracking and feedback

This commit is contained in:
Leshyi committed 2026-11-30 00:05:33 +05:00
1 parent ebe8db5359
commit 7a1c80c22a
8 files changed
+85 -8

No files matched your search

@@ -62,6 +62,18 @@ 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 == "HuntLeader" and (kind == Kinds.LeaderAssigned or kind == Kinds.LeaderDown) then
local now=workspace:GetServerTimeNow()
if kind == Kinds.LeaderDown or now>=bannerUntil then
contour:SetAttribute("Accent",tone)
title.Text=if kind==Kinds.LeaderDown then S.leaderHints.down else string.format(S.leaderHints.new,p.text or "")
bannerUntil=now+2.5
end
if kind==Kinds.LeaderDown then
Sounds.sound("HotPointCaptured")
if typeof(p.at)=="Vector3" then showWave(p.at,tone) end
end
end
if id == "OneLife" and (kind == Kinds.MiniRoundStarted or kind == Kinds.MiniRoundEnded) then
contour:SetAttribute("Accent",tone)
local copy=S.lifeHints