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

Added previous pneumatics version for compatibility with 3rd party 81-717/714 train types

This commit is contained in:
Moon Horse
2024-12-21 19:44:51 +03:00
parent d084511350
commit c6d23f3087
7 changed files with 1583 additions and 43 deletions

View File

@@ -2210,7 +2210,7 @@ function ENT:ButtonEvent(button,state,ply)
if ShouldFireEvents(self.ButtonBuffer[button],state) then
if state == false and not self:OnButtonRelease(button,ply) then
self:TriggerInput(button,0.0)
if button:match("LineIsolationToggle") then self:UpdateIsolationConnectedCarCounter(button:sub(-24,-20)) end
if button:match("LineIsolationToggle") and self.CarCount then self:UpdateIsolationConnectedCarCounter(button:sub(-24,-20)) end
elseif state ~= false and not self:OnButtonPress(button,ply) then
self:TriggerInput(button,1.0)
if self.Plombs and button:sub(-2,-1) == "Pl" and self.Plombs[button:sub(1,-3)] then