Refactor arena modes and add objective event feed

This commit is contained in:
Leshyi committed 2026-11-29 23:06:14 +05:00
1 parent df6ab8efe1
commit b87a3770a1
26 files changed
+1221 -654

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
--!strict
return function(zones: any)
local spec = {radius = 18, height = 7, sightHeight = 2}
assert(zones.reason(Vector3.new(18.01, 0, 0), spec, true) == "Outside")
assert(zones.reason(Vector3.new(18, 7, 0), spec, false) == "Inside")
assert(zones.reason(Vector3.new(0, -7.01, 0), spec, false) == "Height")
assert(zones.reason(Vector3.new(0, -7, 0), spec, true) == "Blocked")
assert(zones.reason(Vector3.new(0, 8, 0), {radius = 18, height = 8, sightHeight = 2.7, exclusiveHeight = true}, false) == "Height")
end