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

almost done except for smooth voltage change

This commit is contained in:
Moon Horse
2024-07-01 03:11:00 +03:00
parent b74d4873af
commit ef4a9ff3f2
2 changed files with 119 additions and 72 deletions

View File

@@ -21,7 +21,7 @@ function TRAIN_SYSTEM:Initialize()
self.X2_1 = 0
self.OutputVoltage = math.random(78,82) -- volts
self.IResistance = 0.05--1.33 --Ohm
self.IResistance = 0.01 --Ohm (сам выдумал, примерно на порядок ниже, чем у АКБ)
self.car_control_load= 0 --Amp
self.VoltageOut = 0