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

implemented control circuits current calculations for BPSN with respect to number of 10th wire connected ones

This commit is contained in:
Moon Horse
2024-07-15 15:42:35 +03:00
parent 5c90eb74c2
commit da69266e29
4 changed files with 47 additions and 21 deletions

View File

@@ -601,7 +601,9 @@ function ENT:Think()
self:SetPackedBool("lightsActive"..i,false)
end
end
self.Battery.Consumers["SalonLights"] = {Panel.MainLights+Panel.EmergencyLights,(Panel.MainLights*36^-1 + Panel.EmergencyLights*74^-1)^-1,0}
self.Battery.Consumers["HeadLights"] = {Panel.Headlights1*(1+Panel.Headlights2),(Panel.Headlights1*22^-1*(1 + Panel.Headlights2))^-1,0}
if self:ReadTrainWire(4)*self:ReadTrainWire(5)*self:ReadTrainWire(10) > 0 then
self.A54:TriggerInput("Set",0)
end