1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-04 00:52:33 +00:00

fixed KM 013 and 334 work logic; added retainer load choice to spawner for custom 717

This commit is contained in:
Moon Horse
2024-12-14 20:07:32 +03:00
parent 8700ab2d32
commit 633a65c806
17 changed files with 1148 additions and 183 deletions

View File

@@ -948,6 +948,16 @@ ENT.Spawner = {
--Metrostroi.Skins.GetTable("Texture","Spawner.Texture",false,"train"),
--Metrostroi.Skins.GetTable("PassTexture","Spawner.PassTexture",false,"pass"),
--Metrostroi.Skins.GetTable("CabTexture","Spawner.CabTexture",false,"cab"),
postfunc = function(cartable,wagnum)
for k,v in ipairs(cartable) do
local val = v._Settings.SpawnMode
v.CarCount = wagnum
v.InitIsoCountNeeded = true
v.Pneumatic.TrainLinePressure = val==3 and math.random()*4 or val==2 and 4.5+math.random()*3 or 7.6+math.random()*0.6
v.Pneumatic.WorkingChamberPressure = val==3 and math.random()*1.0 or val==2 and 4.0+math.random()*1.0 or 5.2
v.Pneumatic.BrakeLinePressure = val==4 and 5.2 or 2.3
end
end,
{"Announcer","Spawner.717.Announcer","List",function()
local Announcer = {}
for k,v in pairs(Metrostroi.AnnouncementsASNP or {}) do if not v.riu then Announcer[k] = v.name or k end end