mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Fixed tab
This commit is contained in:
@@ -1699,7 +1699,7 @@ function ENT:Think()
|
||||
self:Animate("train_line",self:GetPackedRatio("TLPressure"), 0.044, 0.778, 256,2)--,,0.01)
|
||||
self:Animate("brake_cylinder",self:GetPackedRatio("BCPressure"), 0.052, 0.794,nil,2)--,,0.03)
|
||||
self:Animate("voltmeter",self:GetPackedRatio("EnginesVoltage"), 0.632,0.36,92,2)
|
||||
self:Animate("ampermeter",self:GetPackedRatio("EnginesCurrent"), 0.632,0.36, nil, nil, 92,20,3)
|
||||
self:Animate("ampermeter",self:GetPackedRatio("EnginesCurrent"), 0.632,0.36,nil, nil,92,20,3)
|
||||
self:Animate("volt1",self:GetPackedRatio("BatteryVoltage"),0.613,0.455,72,2)
|
||||
self:Animate("speed1",self:GetPackedRatio("Speed"),0.645, 0.363, nil, nil, 90,200,20)
|
||||
|
||||
|
||||
@@ -333,8 +333,8 @@ function ENT:Think()
|
||||
self:SetPackedRatio("TLPressure", Pneumatic.TrainLinePressure/16.0)
|
||||
self:SetPackedRatio("BCPressure", math.min(2.7,Pneumatic.BrakeCylinderPressure)/6.0)
|
||||
self:SetPackedRatio("EnginesVoltage", self.Electric.Main750V/1000.0)
|
||||
self:SetPackedRatio("EnginesCurrent", 0.5 + 0.5*(self.Electric.I24/500.0))
|
||||
self:SetPackedRatio("BatteryVoltage",self.Panel["V1"]*self.Battery.Voltage/100)
|
||||
self:SetPackedRatio("EnginesCurrent", 0.5 + 0.5*(self.Electric.I24/500.0))
|
||||
|
||||
self:SetPackedBool("RT300",self.Electric.ThyristorControllerPower*self.Electric.ThyristorControllerWork>0)
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter)
|
||||
)/750*(0.5+0.5*B*Train.VB.Value*Train.KZ1.Value)
|
||||
))
|
||||
Panel.MainLights2 = Panel.MainLights1*Train.KO.Value
|
||||
Train.Battery:TriggerInput("Charge", Train.VB.Value*Panel.MainLights1)
|
||||
Train.Battery:TriggerInput("Charge", Train.VB.Value*Panel.MainLights1)
|
||||
Train.KK:TriggerInput("Set",T[22]+T[23])
|
||||
Train.KO:TriggerInput("Close",T[27])
|
||||
Train.KO:TriggerInput("Open",T[28])
|
||||
|
||||
@@ -251,7 +251,7 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter)
|
||||
)/750*(0.5+0.5*B*Train.VB.Value*Train.KZ1.Value)
|
||||
))
|
||||
Panel.MainLights2 = Panel.MainLights1*Train.KO.Value
|
||||
Train.Battery:TriggerInput("Charge", Train.VB.Value*Panel.MainLights1)
|
||||
Train.Battery:TriggerInput("Charge", Train.VB.Value*Panel.MainLights1)
|
||||
|
||||
Panel.VPR = BO*Train.RST.Value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user