From 4b0abb7ba5d42647a0d2c91b3cad8bdbe642a06e Mon Sep 17 00:00:00 2001 From: Ilya Krasnow Date: Fri, 27 Aug 2021 22:16:42 +0300 Subject: [PATCH] #341 #333 --- lua/entities/gmod_track_signs/cl_init.lua | 1 - lua/metrostroi/systems/sys_81_71_upo.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/entities/gmod_track_signs/cl_init.lua b/lua/entities/gmod_track_signs/cl_init.lua index ccd49d9..ece4983 100644 --- a/lua/entities/gmod_track_signs/cl_init.lua +++ b/lua/entities/gmod_track_signs/cl_init.lua @@ -28,7 +28,6 @@ function ENT:Initialize() end function ENT:OnRemove() - print(12323) self:RemoveModels() --self.LightType = 0 --hook.Remove("PostDrawOpaqueRenderables") diff --git a/lua/metrostroi/systems/sys_81_71_upo.lua b/lua/metrostroi/systems/sys_81_71_upo.lua index a2fa32c..86095f2 100644 --- a/lua/metrostroi/systems/sys_81_71_upo.lua +++ b/lua/metrostroi/systems/sys_81_71_upo.lua @@ -75,7 +75,7 @@ function TRAIN_SYSTEM:Play(dep) self:AnnQueue(math.Rand(0.0,0.2)) if self.Noise then self:AnnQueue{"noise_start",self.Noise} else self:AnnQueue("noise_end") end self:AnnQueue{math.Rand(0.0,0.2), stbl.tone or "tone"} - if lastst then self:AnnQueue{-1} end + if lastst and not stbl.ignorelast then self:AnnQueue{-1} end self:AnnQueue(msg) self:AnnQueue{math.Rand(0.1,0.4),"noise_end","buzz_end_upo"} if self.Clicks then self:AnnQueue("click2") end