mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
* Add "SetFreeBS" trigger input to signal controller * Fix controller logic
This commit is contained in:
@@ -644,12 +644,12 @@ function ENT:Think()
|
||||
end
|
||||
else
|
||||
local number = self.RouteNumberReplace or ""
|
||||
self.PrevTime = self.PrevTime or 0
|
||||
--[[self.PrevTime = self.PrevTime or 0
|
||||
if (CurTime() - self.PrevTime) > 1.0 then
|
||||
self.PrevTime = CurTime()+math.random(0.5,1.5)
|
||||
self:ARSLogic(self.PrevTime - CurTime())
|
||||
self:CheckOccupation()
|
||||
end
|
||||
end]]
|
||||
--[[
|
||||
if self.MU or self.ARSOnly or self.RouteNumberSetup and self.RouteNumberSetup ~= "" or self.RouteNumber and self.RouteNumber ~= "" then
|
||||
if self.NextSignalLink then
|
||||
|
||||
@@ -141,5 +141,7 @@ function ENT:AcceptInput( input, activator, called, data )
|
||||
sig.RouteNumberReplace = data
|
||||
elseif input == "ResetRouteNumber" then
|
||||
sig.RouteNumberReplace = data
|
||||
elseif input == "SetFreeBS" then
|
||||
sig.FreeBS = tonumber(data) or 0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user