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

KM013 coeffs correction and km013 pecular properties randomization

This commit is contained in:
Moon Horse
2024-12-22 22:41:44 +03:00
parent 4e58096885
commit 677f007e73
6 changed files with 22 additions and 13 deletions

View File

@@ -250,6 +250,7 @@ function ENT:TrainSpawnerUpdate()
local offs = math.random(1,3)
if self:GetNW2Int("RetainerLoad",1) == 5 then self:SetNW2Int("RetainerLoad",math.random(1,4)) end
self.Pneumatic:TriggerInput("KM013offset",5.0 + 0.1*(offs-1))
self.Pneumatic:TriggerInput("KM013Over",math.random()>0.92)
self.Pneumatic:TriggerInput("VZ1Offset",0.8)
self.Pneumatic:TriggerInput("VZ2Offset",2.4)
self.CompressorEfficiency = math.random()*0.05 + 0.02