From 0c27cbb61b0de1af5468523b751aab93670d6750 Mon Sep 17 00:00:00 2001 From: Moon Horse Date: Fri, 2 Sep 2022 21:50:40 +0300 Subject: [PATCH] BP 1337 fix for 81-717(spb) (work chamber is now fully charged on spawn) --- lua/entities/gmod_subway_81-717_lvz/shared.lua | 1 + lua/entities/gmod_subway_81-717_lvz_custom.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/lua/entities/gmod_subway_81-717_lvz/shared.lua b/lua/entities/gmod_subway_81-717_lvz/shared.lua index 5ec9bde..2c43b94 100644 --- a/lua/entities/gmod_subway_81-717_lvz/shared.lua +++ b/lua/entities/gmod_subway_81-717_lvz/shared.lua @@ -1036,6 +1036,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}, } \ No newline at end of file diff --git a/lua/entities/gmod_subway_81-717_lvz_custom.lua b/lua/entities/gmod_subway_81-717_lvz_custom.lua index e973c6c..b94b075 100644 --- a/lua/entities/gmod_subway_81-717_lvz_custom.lua +++ b/lua/entities/gmod_subway_81-717_lvz_custom.lua @@ -108,6 +108,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}, }