Polish arena effects, audio and diagnostics
This commit is contained in:
1 parent
2774e625c1
commit
16a359d4af
28 files changed
+512
-257
No files matched your search
@@ -42,7 +42,7 @@ local function start(ctx: Types.ModeContext): Types.ModeInstance
|
||||
zone.marker.body.Parent = nil
|
||||
ctx.janitor.give(zone.marker.body)
|
||||
table.insert(zones, zone)
|
||||
table.insert(visuals, Effects.new(zone.marker, folder, ctx.janitor))
|
||||
table.insert(visuals, Effects.new(zone.marker))
|
||||
end
|
||||
data:SetAttribute("Total", #zones)
|
||||
local siegeTimes: Score.Ledger = {Blue = {}, Orange = {}}
|
||||
@@ -156,7 +156,6 @@ local function start(ctx: Types.ModeContext): Types.ModeInstance
|
||||
local tint = if phase == "Idle" then Common.gold elseif phase == "Contested" then SiegeConfig.CONTESTED_COLOR
|
||||
elseif phase == "Decaying" then teamTint:Lerp(Color3.fromRGB(150, 162, 182), .45) else teamTint
|
||||
Common.paint(zone.marker, tint)
|
||||
visual.update(tint, phase, progress, phase ~= lastStatus)
|
||||
if phase == "Contested" and lastStatus ~= phase then
|
||||
ctx.events.fire(Kinds.ZoneContested, {side = siegeSide, index = siegeIndex, at = zone.site.position})
|
||||
end
|
||||
@@ -164,11 +163,11 @@ local function start(ctx: Types.ModeContext): Types.ModeInstance
|
||||
if phase ~= "Captured" or not Score.record(siegeTimes, siegeSide, siegeIndex, elapsed - attackStart) then return false end
|
||||
ctx.scoring.add(siegeSide, SiegeConfig.POINTS_PER_OBJECTIVE, Kinds.ZoneCaptured)
|
||||
for _, player in attackers do ctx.contribute(player, "captures", 1) end
|
||||
ctx.events.fire(Kinds.ZoneCaptured, {side = siegeSide, index = siegeIndex, text = zone.site.name, value = elapsed - attackStart})
|
||||
ctx.events.fire(Kinds.ZoneCaptured, {side = siegeSide, index = siegeIndex, text = zone.site.name, value = elapsed - attackStart, at = zone.site.position})
|
||||
ctx.cue(fighters, true, nil)
|
||||
siegeCaptureStarted = false
|
||||
data:SetAttribute(siegeSide .. "Time" .. siegeIndex, elapsed - attackStart)
|
||||
visual.capture(teamTint)
|
||||
visual.capture()
|
||||
siegeIndex += 1
|
||||
siegeProgress = 0
|
||||
if siegeIndex > #zones then
|
||||
|
||||
Reference in new issue
Block a user