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

Необходимые изменения для инициализации давления в рабочей камере

This commit is contained in:
Moon Horse
2021-12-21 12:53:20 +03:00
parent 4558620914
commit 6071b4913b

View File

@@ -972,7 +972,7 @@ ENT.Spawner = {
ent.ARS:TriggerInput("Set",(ent.Plombs.RC1 and val==1 and first) and 1 or 0)
ent.ALS:TriggerInput("Set",val==1 and 1 or 0)
ent.L_1:TriggerInput("Set",val==1 and 1 or 0)
ent.L_3:TriggerInput("Set",vall==1 and 1 or 0)
ent.L_3:TriggerInput("Set",val==1 and 1 or 0)
ent.L_4:TriggerInput("Set",val==1 and 1 or 0)
ent.EPK:TriggerInput("Set",(ent.Plombs.RC1 and val==1) and 1 or 0)
_LastSpawner=CurTime()
@@ -993,6 +993,7 @@ ENT.Spawner = {
ent._SpawnerStarted = val
end
ent.Pneumatic.TrainLinePressure = val==3 and math.random()*4 or val==2 and 4.5+math.random()*3 or 7.6+math.random()*0.6
ent.Pneumatic.WorkingChamberPressure = val==3 and math.random()*1.0 or val==2 and 4.0+math.random()*1.0 or 5.2
if val==4 then ent.Pneumatic.BrakeLinePressure = 5.2 end
end},
--{"Lighter","Spawner.717.Lighter","Boolean"},