Refactor arena modes and add objective event feed
This commit is contained in:
1 parent
df6ab8efe1
commit
b87a3770a1
26 files changed
+1221
-654
No files matched your search
@@ -0,0 +1,12 @@
|
||||
--!strict
|
||||
local Types = require(script.Parent.Parent.Types)
|
||||
local Common = require(script.Parent.Parent.Common)
|
||||
|
||||
local function start(ctx: Types.ModeContext): Types.ModeInstance
|
||||
return Common.instance(ctx, {kill = function(player: Player)
|
||||
local side = Common.sideOf(player)
|
||||
if side then ctx.scoring.add(side, 1, "Elimination", player) end
|
||||
end})
|
||||
end
|
||||
|
||||
return {id = "TeamDeathmatch", usesMap = false, start = start}
|
||||
Reference in new issue
Block a user