Polish Citadel Assault objectives and results
This commit is contained in:
1 parent
d1c42a36b8
commit
c0b099e604
18 files changed
+555
-45
No files matched your search
@@ -18,6 +18,7 @@ local RoundPlayer = require(Runtime:WaitForChild("PlayerRoundState") :: ModuleSc
|
||||
local Stats = require(Runtime:WaitForChild("Stats") :: ModuleScript)
|
||||
|
||||
local ArenaSpawns = require(script.Parent:WaitForChild("ArenaSpawns"))
|
||||
local SiegeSpawn = require(script.Parent:WaitForChild("CitadelSpawnService") :: ModuleScript)
|
||||
local SkinCatalog = require(ReplicatedStorage:WaitForChild("RifleSkinCatalog") :: ModuleScript)
|
||||
local lobbySpawn = workspace:WaitForChild("HunterLobby"):WaitForChild("Arrival Spawn") :: SpawnLocation
|
||||
local rifleTemplate = ReplicatedStorage:WaitForChild("ArenaEquipment"):WaitForChild("SniperRifle") :: Tool
|
||||
@@ -235,6 +236,15 @@ local function enterArena(player: Player, character: Model, humanoid: Humanoid)
|
||||
local destination = destinationFor(player)
|
||||
player.RespawnLocation = destination
|
||||
ArenaSpawns.place(character, destination)
|
||||
local siege = randomState:FindFirstChild("CitadelMatchState")
|
||||
local side = player:GetAttribute("ArenaTeam")
|
||||
local attacker = siege and siege:GetAttribute("Attacker")
|
||||
local base = siege and typeof(side) == "string" and siege:GetAttribute(side .. "Base")
|
||||
if siege and typeof(base) == "Vector3" and typeof(attacker) == "string"
|
||||
and randomState:GetAttribute("RoundStage") ~= "RoleSwap" then
|
||||
local at = SiegeSpawn.position(Modes.geometry(Modes.of(player)), attacker == side, base, joinOrder[player] or 1)
|
||||
character:PivotTo(CFrame.new(at + Vector3.yAxis * 4))
|
||||
end
|
||||
if Stage.combatAllowed(randomState) then
|
||||
RoundPlayer.thaw(player)
|
||||
arm(player, character, humanoid)
|
||||
@@ -851,6 +861,11 @@ end
|
||||
local function runMatch(match: Match)
|
||||
while true do
|
||||
local now = workspace:GetServerTimeNow()
|
||||
local siegeDeadline = match.state:GetAttribute("SiegeEndsAt")
|
||||
if match.phase == "Round" and typeof(siegeDeadline) == "number" and siegeDeadline < match.endsAt then
|
||||
match.endsAt = siegeDeadline
|
||||
publish(match)
|
||||
end
|
||||
local remaining = match.endsAt - now
|
||||
if match.phase == "Round" then
|
||||
local engine = match.engine
|
||||
|
||||
Reference in new issue
Block a user