Skip to content

Commit

Permalink
fix(acs-64): make desk and console lights behave prototypically
Browse files Browse the repository at this point in the history
  • Loading branch information
YoRyan committed Apr 22, 2022
1 parent 2d50378 commit 9b23fea
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,17 @@ local function setcablights()

local control = RailWorks.GetControlValue("DeskConsoleLight", 0)
local desk = Misc.intbool(control >= 1 and control < 3)
Call("Front_DeskLight_01:Activate", desk)
Call("Rear_DeskLight_01:Activate", desk)
Call("Front_ConsoleLight_01:Activate", desk)
Call("Rear_ConsoleLight_01:Activate", desk)
Call("Front_ConsoleLight_03:Activate", desk)
Call("Rear_ConsoleLight_03:Activate", desk)
local console = Misc.intbool(control >= 2)
Call("Front_ConsoleLight_01:Activate", console)
Call("Front_ConsoleLight_02:Activate", console)
Call("Front_ConsoleLight_03:Activate", console)
Call("Rear_ConsoleLight_01:Activate", console)
Call("Rear_ConsoleLight_02:Activate", console)
Call("Rear_ConsoleLight_03:Activate", console)
-- This is actually the secondman's desk light, which has its own switch IRL.
local secondman = console
Call("Front_DeskLight_01:Activate", secondman)
Call("Rear_DeskLight_01:Activate", secondman)
end

local function setditchlights()
Expand Down

0 comments on commit 9b23fea

Please sign in to comment.