Skip to content

Commit 3eb8814

Browse files
committed
Fix rogue lights logic oversights
1 parent db1ce5b commit 3eb8814

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/gamemodes/amongus/gamemode/sabotages/lights.moon

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ if CLIENT
1919

2020
shouldPaint = localPlayerTable and
2121
not LocalPlayer!\IsImposter! and not LocalPlayer!\IsDead! and
22-
not false == hook.Call "GMAU Lights ShouldFade", nil, ply
22+
not false ~= hook.Call "GMAU Lights ShouldFade", nil, ply
2323

24-
isFogEnabled = shouldPaint and GetGlobalBool "NMW AU LightsOff"
24+
isFogEnabled = GetGlobalBool "NMW AU LightsOff"
2525

2626
-- Modulate the fog if it's enabled.
2727
if isFogEnabled and FOG_MUL < 1
28-
FOG_MUL = math.min 1, FOG_MUL + FrameTime! * 0.3
28+
FOG_MUL = math.min 1, FOG_MUL + FrameTime! * 0.4
2929
elseif not isFogEnabled and FOG_MUL > 0
30-
FOG_MUL = math.max 0, FOG_MUL - FrameTime! * 0.5
30+
FOG_MUL = math.max 0, FOG_MUL - FrameTime! * 0.6
3131

3232
if FOG_MUL ~= 0 and shouldPaint
3333
colorModifyParams["$pp_colour_colour"] = 1 - (0.5 * FOG_MUL)
@@ -48,7 +48,7 @@ if CLIENT
4848

4949
shouldPaint = localPlayerTable and
5050
not LocalPlayer!\IsImposter! and not LocalPlayer!\IsDead! and
51-
not false == hook.Call "GMAU Lights ShouldFade", nil, ply
51+
not false ~= hook.Call "GMAU Lights ShouldFade", nil, ply
5252

5353
if FOG_MUL > 0 and shouldPaint
5454
distance = math.Clamp ply\GetPos!\DistToSqr(LocalPlayer!\GetPos!),
@@ -86,7 +86,7 @@ if CLIENT
8686
local oldBlend
8787
shouldPaint = localPlayerTable and
8888
not LocalPlayer!\IsImposter! and not LocalPlayer!\IsDead! and
89-
not false == hook.Call "GMAU Lights ShouldFade", nil, ply
89+
not false ~= hook.Call "GMAU Lights ShouldFade", nil, ply
9090

9191
if FOG_MUL > 0 and not shouldPaint
9292
distance = math.Clamp @GetPos!\DistToSqr(LocalPlayer!\GetPos!),

0 commit comments

Comments
 (0)