Polish Team Deathmatch streaks and comeback hints
This commit is contained in:
1 parent
7a1c80c22a
commit
6bb5fba771
8 files changed
+56
-4
No files matched your search
@@ -75,13 +75,13 @@ local function recordArenaKill(player: Player, victim: Player, origin: Vector3,
|
||||
Stats.add(player, "kills", 1)
|
||||
player:SetAttribute("RoundKills", ((player:GetAttribute("RoundKills") :: number?) or 0) + 1)
|
||||
state:SetAttribute(scoreAttribute, ((state:GetAttribute(scoreAttribute) :: number?) or 0) + 1)
|
||||
local streak = ((player:GetAttribute("StreakKills") :: number?) or 0) + 1
|
||||
player:SetAttribute("StreakUntil", now + (round:GetAttribute("StreakWindow") :: number))
|
||||
player:SetAttribute("StreakKills", streak)
|
||||
local match = Objectives.current(mode)
|
||||
if match then match.kill(player, victim, origin, now) end
|
||||
TrophyDrops.spawn(player, origin)
|
||||
PowerDrops.spawn(origin, nil, mode)
|
||||
local streak = ((player:GetAttribute("StreakKills") :: number?) or 0) + 1
|
||||
player:SetAttribute("StreakUntil", now + (round:GetAttribute("StreakWindow") :: number))
|
||||
player:SetAttribute("StreakKills", streak)
|
||||
return streak
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user