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
@@ -19,7 +19,7 @@ local function start(ctx: Types.ModeContext): Types.ModeInstance
|
||||
end,
|
||||
score = function(side, points)
|
||||
ctx.scoring.add(side, points, Kinds.ZoneCaptured)
|
||||
ctx.events.fire(Kinds.ZoneCaptured, {side = side, text = Strings.hotPoint, value = nowAt - ctx.liveAt})
|
||||
ctx.events.fire(Kinds.ZoneCaptured, {side = side, text = Strings.hotPoint, value = nowAt - ctx.liveAt, at = ctx.state:GetAttribute("HotPointPosition") :: Vector3?})
|
||||
end,
|
||||
status = ctx.status, contribute = ctx.contribute,
|
||||
})
|
||||
@@ -29,7 +29,7 @@ local function start(ctx: Types.ModeContext): Types.ModeInstance
|
||||
capture.step(fighters, now, elapsed or dt)
|
||||
local contested = ctx.state:GetAttribute("HotPointPhase") == "Contested"
|
||||
if contested and not wasContested then
|
||||
ctx.events.fire(Kinds.ZoneContested, {text = Strings.hotPoint})
|
||||
ctx.events.fire(Kinds.ZoneContested, {text = Strings.hotPoint, at = ctx.state:GetAttribute("HotPointPosition") :: Vector3?})
|
||||
end
|
||||
wasContested = contested
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user