mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Поправлен спавнер
This commit is contained in:
@@ -743,6 +743,8 @@ ENT.Spawner = {
|
||||
ent.CabinDoor = val==4 and first
|
||||
ent.PassengerDoor = val==4
|
||||
ent.RearDoor = val==4
|
||||
ent.DriverValveTLDisconnect:TriggerInput("Set",(val==4 and first) and 1 or 0)
|
||||
ent.DriverValveBLDisconnect:TriggerInput("Set",(val==4 and first) and 1 or 0)
|
||||
else
|
||||
ent.VU2:TriggerInput("Set",0)
|
||||
ent.FrontDoor = val==4
|
||||
@@ -757,5 +759,7 @@ ENT.Spawner = {
|
||||
end
|
||||
if val==1 then ent.KO:TriggerInput("Close",1) else ent.KO:TriggerInput("Open",1) 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.BrakeLinePressure = val == 4 and 5.2 or val == 1 and 2.3 or math.min(ent.Pneumatic.TrainLinePressure+0.25,math.random()*4)
|
||||
ent.Pneumatic.ReservoirPressure = val == 4 and 5.2 or val == 1 and 2.3 or math.min(ent.Pneumatic.TrainLinePressure+0.25,math.random()*4)
|
||||
end},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user