diff --git a/lua/entities/gmod_subway_ezh3/cl_init.lua b/lua/entities/gmod_subway_ezh3/cl_init.lua index 96fcca6..9de1cee 100644 --- a/lua/entities/gmod_subway_ezh3/cl_init.lua +++ b/lua/entities/gmod_subway_ezh3/cl_init.lua @@ -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) diff --git a/lua/entities/gmod_subway_ezh3/init.lua b/lua/entities/gmod_subway_ezh3/init.lua index aedef0e..72d1f3a 100644 --- a/lua/entities/gmod_subway_ezh3/init.lua +++ b/lua/entities/gmod_subway_ezh3/init.lua @@ -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) diff --git a/lua/metrostroi/systems/sys_81_508t_electric.lua b/lua/metrostroi/systems/sys_81_508t_electric.lua index f32d5cd..b132db9 100644 --- a/lua/metrostroi/systems/sys_81_508t_electric.lua +++ b/lua/metrostroi/systems/sys_81_508t_electric.lua @@ -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]) diff --git a/lua/metrostroi/systems/sys_81_710_electric.lua b/lua/metrostroi/systems/sys_81_710_electric.lua index 052a323..8507937 100644 --- a/lua/metrostroi/systems/sys_81_710_electric.lua +++ b/lua/metrostroi/systems/sys_81_710_electric.lua @@ -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