Add round stages, respawn protection and match highlights

This commit is contained in:
Leshyi committed 2026-11-29 23:29:29 +05:00
1 parent b87a3770a1
commit d1c42a36b8
28 files changed
+753 -45

No files matched your search

@@ -120,6 +120,7 @@ local function start(ctx: Types.ModeContext): Types.ModeInstance
local base = if fighter.side == "Blue" then map.blue else map.orange
if Common.boundsAt(fighter.root.Position, base, HotPoint.Radius, 7) then
ctx.scoring.add(fighter.side, 1, Kinds.FlagScored, fighter.player)
ctx.contribute(fighter.player, "deliveries", 1)
ctx.events.fire(Kinds.FlagScored, {side = fighter.side, userId = fighter.player.UserId})
ctx.cue(fighters, true, nil)
putFlag(flag, flag.marker.origin, 0)
@@ -140,6 +141,7 @@ local function start(ctx: Types.ModeContext): Types.ModeInstance
for _, fighter in fighters do
if Common.boundsAt(fighter.root.Position, at, 5.5, 6.5) and Common.visibleAt(fighter, at, geometry) then
pickUpFlag(flag, fighter)
ctx.contribute(fighter.player, "carries", 1)
ctx.events.fire(Kinds.FlagPicked, {side = fighter.side, userId = fighter.player.UserId, text = fighter.player.DisplayName})
ctx.cue(fighters, false, fighter.side)
ctx.status(Strings.flagCarrier(fighter.player.DisplayName))