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

Merge pull request #413 from metrostroi-repo/#382

#382
This commit is contained in:
HellReach
2021-12-28 20:33:51 +03:00
committed by GitHub
7 changed files with 12 additions and 107 deletions

View File

@@ -444,7 +444,7 @@ function ENT:TrainSpawnerUpdate()
local tex = typ[5] and typ[5][math.random(1,#typ[5])] or "Def_717MSKWhite"
self:SetNW2String("PassTexture",tex)
local mask = typ[6]==true or typ[6] and typ[6](num,tex)
self:SetNW2Int("MaskType",mask and 6 or 1)
self:SetNW2Int("MaskType",mask and 3 or 1)
self:SetNW2String("CabTexture",typ[7] and ((lvz and math.random()>0.2) and "Def_ClassicY" or "Def_ClassicG") or ((lvz and math.random()>0.2) and "Def_HammeriteY" or "Def_HammeriteG"))
local ARSchance = math.random()
self:SetNW2Int("ARSType",(not mask and not self.Dot5 and not lvz or ARSchance>0.8) and (ARSchance>0.93 and 5 or 4) or ARSchance>0.54 and (ARSchance>0.75 and 3 or 2) or 1)