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

Add override 325Hz in controller logic

This commit is contained in:
alexandr_sizov
2021-12-29 11:10:29 +03:00
parent d857df7db5
commit 95a27a590e

View File

@@ -202,6 +202,8 @@ function ENT:Initialize()
self.Controllers = nil
self.OccupiedOld = false;
self.ControllerLogicCheckOccupied = false;
self.ControllerLogicOverride325Hz = false;
self.Override325Hz = false;
end
function ENT:PreInitalize()
@@ -347,6 +349,7 @@ function ENT:GetRS()
if self.OverrideTrackOccupied or not self.TwoToSix or not self.ARSSpeedLimit then return false end
--if self.ARSSpeedLimit == 1 or self.ARSSpeedLimit == 2 then return false end
if self.ARSSpeedLimit ~= 0 and self.ARSSpeedLimit== 2 then return false end
if (self.ControllerLogic and self.ControllerLogicOverride325Hz) then return self.Override325Hz end
return (self.ARSSpeedLimit > 4 or self.ARSSpeedLimit == 4 and self.Approve0) and (not self.ARSNextSpeedLimit or self.ARSNextSpeedLimit >= self.ARSSpeedLimit)
end