1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +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

@@ -970,6 +970,16 @@ ENT.Spawner = {
train.NumberRangesID = typ
end
end,
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,
wagfunc = function(ent,i,num)
end,
--Metrostroi.Skins.GetTable("Texture","Spawner.Texture",false,"train"),