From 0b180ef314daf68014fa9ea11c1132c49d2e32a9 Mon Sep 17 00:00:00 2001 From: Hellss Date: Tue, 13 Jul 2021 01:57:43 +0300 Subject: [PATCH] #273 (#281) --- lua/entities/gmod_subway_81-717_mvm/shared.lua | 5 ----- lua/entities/gmod_subway_81-717_mvm_custom.lua | 8 ++++++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lua/entities/gmod_subway_81-717_mvm/shared.lua b/lua/entities/gmod_subway_81-717_mvm/shared.lua index 96cceab..a4d96e8 100644 --- a/lua/entities/gmod_subway_81-717_mvm/shared.lua +++ b/lua/entities/gmod_subway_81-717_mvm/shared.lua @@ -967,7 +967,6 @@ ENT.Spawner = { ent.AR63:TriggerInput("Set",val<=2 and 1 or 0) ent.R_UNch:TriggerInput("Set",val==1 and 1 or 0) ent.R_Radio:TriggerInput("Set",val==1 and 1 or 0) - ent.L_4:TriggerInput("Set",val==1 and 1 or 0) ent.BPSNon:TriggerInput("Set",(val==1 and first) and 1 or 0) ent.VMK:TriggerInput("Set",(val==1 and first) and 1 or 0) ent.ARS:TriggerInput("Set",(ent.Plombs.RC1 and val==1 and first) and 1 or 0) @@ -990,10 +989,6 @@ ENT.Spawner = { ent.BV:TriggerInput("Enable",1) end) end - ent.Pneumatic.RightDoorState = val==4 and {1,1,1,1} or {0,0,0,0} - ent.Pneumatic.DoorRight = val==4 - ent.Pneumatic.LeftDoorState = val==4 and {1,1,1,1} or {0,0,0,0} - ent.Pneumatic.DoorLeft = val==4 ent.GV:TriggerInput("Set",val<4 and 1 or 0) ent._SpawnerStarted = val end diff --git a/lua/entities/gmod_subway_81-717_mvm_custom.lua b/lua/entities/gmod_subway_81-717_mvm_custom.lua index 5106354..02ec7d7 100644 --- a/lua/entities/gmod_subway_81-717_mvm_custom.lua +++ b/lua/entities/gmod_subway_81-717_mvm_custom.lua @@ -84,7 +84,6 @@ ENT.Spawner = { ent.AR63:TriggerInput("Set",val<=2 and 1 or 0) ent.R_UNch:TriggerInput("Set",val==1 and 1 or 0) ent.R_Radio:TriggerInput("Set",val==1 and 1 or 0) - ent.L_4:TriggerInput("Set",val==1 and 1 or 0) ent.BPSNon:TriggerInput("Set",(val==1 and first) and 1 or 0) ent.VMK:TriggerInput("Set",(val==1 and first) and 1 or 0) ent.ARS:TriggerInput("Set",(ent.Plombs.RC1 and val==1 and first) and 1 or 0) @@ -101,7 +100,12 @@ ENT.Spawner = { ent.FrontDoor = val==4 ent.RearDoor = val==4 end - if val == 1 then ent.BV:TriggerInput("Enable",1) end + if val == 1 then + timer.Simple(1,function() + if not IsValid(ent) then return end + ent.BV:TriggerInput("Enable",1) + end) + end ent.GV:TriggerInput("Set",val<4 and 1 or 0) ent._SpawnerStarted = val end