1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00
Files
MetrostroiAddon/lua/metrostroi/systems/sys_pr_14x_panels.lua
2025-12-14 15:29:14 +03:00

41 lines
2.2 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--------------------------------------------------------------------------------
-- Relays panel (PR-143, PR=144)
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for additional information.
--------------------------------------------------------------------------------
Metrostroi.DefineSystem("PR_14X_Panels")
function TRAIN_SYSTEM:Initialize()
----------------------------------------------------------------------------
-- ПР-143
----------------------------------------------------------------------------
-- Контактор включения провода 1 (Р1-Р5)
self.Train:LoadSystem("R1_5","Relay","KPD-110E",{ bass = true })
-- Контактор 6-ого провода (К6)
self.Train:LoadSystem("K6","Relay","KPD-110E",{ bass = true, close_time = 0.12})
-- Реле времени торможения (РВТ)
self.Train:LoadSystem("RVT","Relay","REV-811T", { bass = true, open_time = 0.5, close_time = 0.12})--(self.Train.Electric.TrainSolver:find("81-") and 0.3 or 0.7)
-- Реле педали бдительности (РПБ)
self.Train:LoadSystem("RPB","Relay","REV-813T", { bass = true, open_time = 2.5,})
-- РВ-2
self.Train:LoadSystem("RV_2","Relay","REV-813T",{ open_time = 0.2, close_time = 0.6 })
----------------------------------------------------------------------------
-- ПР-144
----------------------------------------------------------------------------
-- Контактор 25ого провода (К25)
self.Train:LoadSystem("K25","Relay","PR-143",{bass = true})
-- Реле-повторитель провода 8 (РП8)
self.Train:LoadSystem("Rp8","Relay","REV-811T",{open_time = 0.2,bass = true })
-- Контактор дверей (КД)
self.Train:LoadSystem("KD","Relay","REV-811T",{ bass = true, close_time = 0.3 })
-- Реле остановки (РО)
self.Train:LoadSystem("RO","Relay","KPD-110E",{ bass = true, close_time = 0--[[ , close_time = 0.1--]] })
end
function TRAIN_SYSTEM:Think()
end