Polish arena effects, audio and diagnostics

This commit is contained in:
Leshyi committed 2026-11-30 01:26:42 +05:00
1 parent 2774e625c1
commit 16a359d4af
28 files changed
+512 -257

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
--!strict
local Diagnostics = require(script.Parent.ZoneDiagnostics)
export type Spec = {radius: number, height: number, sightHeight: number, exclusiveHeight: boolean?}
export type Reason = "Outside" | "Height" | "Blocked" | "Inside"
local Zones = {}
@@ -14,6 +15,6 @@ function Zones.classify(position: Vector3, center: Vector3, spec: Spec, geometry
local candidate = Zones.reason(position - center, spec, false)
if candidate ~= "Inside" then return candidate end
local target = center + Vector3.yAxis * spec.sightHeight
return if workspace:Raycast(position, target - position, geometry) then "Blocked" else "Inside"
return if Diagnostics.raycast(position, target - position, geometry) then "Blocked" else "Inside"
end
return Zones