Polish arena effects, audio and diagnostics
This commit is contained in:
1 parent
2774e625c1
commit
16a359d4af
28 files changed
+512
-257
No files matched your search
@@ -1,4 +1,5 @@
|
||||
--!strict
|
||||
local Diagnostics = require(script.Parent.ZoneDiagnostics)
|
||||
local Types = require(script.Parent.Types)
|
||||
local HotPoint = require(script.Parent.Parent.HotPoint)
|
||||
local Sites = require(script.Parent.Parent.ArenaObjectiveSites)
|
||||
@@ -11,7 +12,7 @@ local sides: {Side} = {"Blue", "Orange"}
|
||||
local blue = Color3.fromRGB(67, 216, 255)
|
||||
local orange = Color3.fromRGB(255, 150, 68)
|
||||
local gold = Color3.fromRGB(255, 220, 96)
|
||||
local neutral = Color3.fromRGB(188, 150, 255)
|
||||
local neutral = Color3.fromRGB(255, 220, 96)
|
||||
local function opposite(side: Side): Side
|
||||
return if side == "Blue" then "Orange" else "Blue"
|
||||
end
|
||||
@@ -88,7 +89,7 @@ local function paint(mark: Marker, tint: Color3)
|
||||
if aura then aura.Color = tint end
|
||||
end
|
||||
local function visibleAt(fighter: Fighter, at: Vector3, geometry: RaycastParams): boolean
|
||||
return workspace:Raycast(fighter.root.Position, at - fighter.root.Position, geometry) == nil
|
||||
return Diagnostics.raycast(fighter.root.Position, at - fighter.root.Position, geometry) == nil
|
||||
end
|
||||
local function makeZone(folder: Folder, geometry: RaycastParams, site: Sites.Site, name: string, radius: number?, tint: Color3?): Zone
|
||||
local r = radius or HotPoint.Radius
|
||||
|
||||
Reference in new issue
Block a user