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

manual door control for 81-717/714 added

This commit is contained in:
Moon Horse
2024-12-20 19:30:03 +03:00
parent 633a65c806
commit d084511350
35 changed files with 2856 additions and 276 deletions

View File

@@ -88,6 +88,14 @@ ENT.Spawner = {
if ent._SpawnerStarted~=val then
ent.VB:TriggerInput("Set",val<=2 and 1 or 0)
ent.ParkingBrake:TriggerInput("Set",val==3 and 1 or 0)
ent.Pneumatic.LeftDoorState = val ~= 4 and {1,1,1,1} or {0,0,0,0}
ent.Pneumatic.RightDoorState = val ~= 4 and {1,1,1,1} or {0,0,0,0}
for _i = 1,4 do
ent.Pneumatic.DSprev[_i][1] = ent.Pneumatic.RightDoorState[_i]
ent.Pneumatic.DSprev[_i][2] = ent.Pneumatic.LeftDoorState[_i]
end
ent.Pneumatic.DoorLeft = val == 4 and true or false
ent.Pneumatic.DoorRight = val == 4 and true or false
if ent.AR63 then
local first = i==1 or _LastSpawner~=CurTime()
ent.A53:TriggerInput("Set",val<=2 and 1 or 0)