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

717 headlights 222 glass

This commit is contained in:
Hellss
2021-09-03 00:14:27 +03:00
parent 6ec93bda60
commit 0fd743e219

View File

@@ -227,6 +227,18 @@ ENT.ClientProps["Headlights222_2"] = {
ang = Angle(0,0,0),
nohide=true,
}
ENT.ClientProps["Headlights222_glass_1"] = {
model = "models/metrostroi_train/81-717/lamps/headlights_222_glass_group1.mdl",
pos = Vector(0,0,0),
ang = Angle(0,0,0),
nohide=true,
}
ENT.ClientProps["Headlights222_glass_2"] = {
model = "models/metrostroi_train/81-717/lamps/headlights_222_glass_group2.mdl",
pos = Vector(0,0,0),
ang = Angle(0,0,0),
nohide=true,
}
ENT.ClientProps["Headlights141_1"] = {
model = "models/metrostroi_train/81-717/lamps/headlights_141_group1.mdl",
pos = Vector(0,0,0),
@@ -2933,6 +2945,8 @@ function ENT:Think()
self:ShowHideSmooth("Headlights22_2",0)
self:ShowHideSmooth("Headlights22_glass_1",0)
self:ShowHideSmooth("Headlights22_glass_2",0)
self:ShowHideSmooth("Headlights222_glass_1",0)
self:ShowHideSmooth("Headlights222_glass_2",0)
if mask >= 9 then
self.LightsOverride[30][2] = Vector(465,-48, -23.5)
self.LightsOverride[31][2] = Vector(465,48 , -23.5)
@@ -2959,8 +2973,8 @@ function ENT:Think()
self:ShowHideSmooth("Headlights222_1",HL1)
self:ShowHideSmooth("Headlights222_2",HL2)
elseif mask <= 8 then
self:ShowHideSmooth("Headlights222_1",HL1)
self:ShowHideSmooth("Headlights222_2",HL2)
self:ShowHideSmooth("Headlights222_glass_1",HL1)
self:ShowHideSmooth("Headlights222_glass_2",HL2)
elseif mask <= 10 then
self:ShowHideSmooth("Headlights141_1",HL1)
self:ShowHideSmooth("Headlights141_2",HL2)