mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
@@ -620,8 +620,8 @@ if SERVER then
|
|||||||
local orientation = train.Orientation
|
local orientation = train.Orientation
|
||||||
Train:SetNW2Bool("VityazWagOr"..i,orientation)
|
Train:SetNW2Bool("VityazWagOr"..i,orientation)
|
||||||
for d=1,4 do
|
for d=1,4 do
|
||||||
Train:SetNW2Bool("VityazDoor"..d.."L"..i,train["Door"..(orientation and d or d+4).."Closed"])
|
Train:SetNW2Bool("VityazDoor"..d.."L"..i,train["Door"..(orientation and d or 9-d).."Closed"])
|
||||||
Train:SetNW2Bool("VityazDoor"..d.."R"..i,train["Door"..(orientation and d+4 or d).."Closed"])
|
Train:SetNW2Bool("VityazDoor"..d.."R"..i,train["Door"..(orientation and d+4 or 5-d).."Closed"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif self.State2 == 6 then
|
elseif self.State2 == 6 then
|
||||||
|
|||||||
@@ -602,8 +602,8 @@ if SERVER then
|
|||||||
Train:SetPackedBool("MFDUDF"..i,train.TRear)
|
Train:SetPackedBool("MFDUDF"..i,train.TRear)
|
||||||
Train:SetPackedBool("MFDUDB"..i,train.TFront)
|
Train:SetPackedBool("MFDUDB"..i,train.TFront)
|
||||||
for i2=0,3 do
|
for i2=0,3 do
|
||||||
Train:SetPackedBool("MFDUDL"..i2.."_"..i,not train["Door"..(i2+5).."Closed"])
|
Train:SetPackedBool("MFDUDL"..i2.."_"..i,not train["Door"..(8-i2).."Closed"])
|
||||||
Train:SetPackedBool("MFDUDR"..i2.."_"..i,not train["Door"..(i2+1).."Closed"])
|
Train:SetPackedBool("MFDUDR"..i2.."_"..i,not train["Door"..(4-i2).."Closed"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user