Polish Citadel Assault objectives and results

This commit is contained in:
Leshyi committed 2026-11-29 23:49:25 +05:00
1 parent d1c42a36b8
commit c0b099e604
18 files changed
+555 -45

No files matched your search

+4 -4
View File
@@ -59,8 +59,8 @@ local function fits(center: Vector3, geometry: RaycastParams, radius: number): b
return workspace:Raycast(center + Vector3.yAxis * .25, Vector3.yAxis * 9, geometry) == nil
end
function Sites.clearCircle(center: Vector3, geometry: RaycastParams, radius: number): Vector3
if fits(center, geometry, radius) then return center end
function Sites.clearCircle(center: Vector3, geometry: RaycastParams, radius: number): (Vector3, boolean)
if fits(center, geometry, radius) then return center, true end
for distance = 3, 48, 3 do
for index = 0, 15 do
local angle = index * math.pi / 8
@@ -68,11 +68,11 @@ function Sites.clearCircle(center: Vector3, geometry: RaycastParams, radius: num
local floor = workspace:Raycast(at + Vector3.yAxis * 1.2, -Vector3.yAxis * 2.4, geometry)
if floor and floor.Normal.Y >= .95 and math.abs(floor.Position.Y - center.Y) <= .35
and fits(floor.Position, geometry, radius) then
return floor.Position
return floor.Position, true
end
end
end
return center
return center, false
end
function Sites.hotPath(id: string, map: Map, radius: number): {Site}