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

@@ -331,6 +331,7 @@ 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:SetPackedBool("DoorsW",Panel.DoorsW > 0)
self:SetPackedBool("GRP",Panel.GreenRP > 0)