mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
@@ -268,8 +268,10 @@ function ENT:Initialize()
|
||||
-- Passenger related data (must be set by derived trains to allow boarding)
|
||||
self.LeftDoorsOpen = false
|
||||
--self.LeftDoorsBlocked = false
|
||||
self.PrevLeftDoorsOpening = false
|
||||
self.RightDoorsOpen = false
|
||||
--self.RightDoorsBlocked = false
|
||||
self.PrevRightDoorsOpening = false
|
||||
|
||||
-- Get default train mass
|
||||
if IsValid(self:GetPhysicsObject()) then
|
||||
|
||||
@@ -102,6 +102,8 @@ function TRAIN_SYSTEM:Initialize(parameters)
|
||||
self.DriverValveDisconnectPrevious = 0
|
||||
|
||||
-- Doors state
|
||||
self.DoorLeft = false
|
||||
self.DoorRight = false
|
||||
if not TURBOSTROI then
|
||||
self.LeftDoorState = { 0,0,0,0 }
|
||||
self.RightDoorState = { 0,0,0,0 }
|
||||
|
||||
Reference in New Issue
Block a user