1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Оптимизация правок в электрике + настройка пневматики (ВЗ№2 и ЭПВ)

This commit is contained in:
Moon Horse
2022-01-13 18:07:40 +03:00
parent 701da5fe9d
commit 52f4d55fcc
5 changed files with 8 additions and 17 deletions

View File

@@ -561,7 +561,7 @@ function ENT:Think()
local power = Panel.V1 > -1.5
local brightness = math.min(1,Panel.Headlights1)*0.60 +
math.min(1,Panel.Headlights2)*0.40
local T = {}
--local T = {}
self:SetPackedBool("Headlights1",Panel.Headlights1 > 0)
self:SetPackedBool("Headlights2",Panel.Headlights2 > 0)
@@ -590,9 +590,7 @@ function ENT:Think()
end
--îňđŕáîňęŕ "âűáčâŕíč˙" Ŕ54 ďđč âęëţ÷ĺíčč đĺâĺđńŕ âďĺđĺä â îáĺčő ęŕáčíŕő
T[4] = self:ReadTrainWire(4)
T[5] = self:ReadTrainWire(5)
if T[4]*T[5] > 0 then
if self:ReadTrainWire(4)*self:ReadTrainWire(5) > 0 then
self.A54:TriggerInput("Set",0)
end