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

Update cl_init.lua

This commit is contained in:
Ilya Krasnow
2021-12-20 14:02:29 +03:00
parent 9556a43493
commit 61d42fee9e

View File

@@ -1149,7 +1149,7 @@ function ENT:Think()
self:ShowHideSmooth("bortlamp2_y",em and 1 or 0)
end
if em then
local Bortlamp_w = em and self:Animate("Bortlamp_w",self:GetPackedBool("SD") and 1 or 0,0,1,16,false) or 0
local Bortlamp_w = em and self:Animate("Bortlamp_w",self:GetPackedBool("SD") and 0 or 1,0,1,16,false) or 0
local Bortlamp_g = em and self:Animate("Bortlamp_g",self:GetPackedBool("GRP") and 1 or 0,0,1,16,false) or 0
local Bortlamp_y = em and self:Animate("Bortlamp_y",self:GetPackedBool("BrY") and 1 or 0,0,1,16,false) or 0
self:ShowHide("bortlamps1",em)
@@ -1269,7 +1269,7 @@ function ENT:Think()
else
self.DoorLoopStates[id] = math.Clamp((self.DoorLoopStates[id] or 0) - 6*self.DeltaTime,0,1)
end
self:SetSoundState(sid.."r",self.DoorLoopStates[id],0.66+self.DoorLoopStates[id]*0.2)
self:SetSoundState(sid.."r",self.DoorLoopStates[id],0.5+self.DoorLoopStates[id]*0.2)
local n_l = "door"..i.."x"..k--.."a"
--local n_r = "door"..i.."x"..k.."b"
local dlo = 1
@@ -1280,7 +1280,7 @@ function ENT:Think()
dlo = self.Anims[n_l].oldspeed/14
end
end
self:Animate(n_l,state,0,1, dlo*14,false)--0.8 + (-0.2+0.4*math.random()),0)
self:Animate(n_l,state,0.01,1, dlo*14,false)--0.8 + (-0.2+0.4*math.random()),0)
--self:Animate(n_r,state,0,1, dlo*14,false)--0.8 + (-0.2+0.4*math.random()),0)
end
end