mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Фикс Initialize() в dlight (#238)
This commit is contained in:
@@ -15,13 +15,13 @@ function ENT:Initialize()
|
|||||||
self.ID = 817200-MetrostroiDLights
|
self.ID = 817200-MetrostroiDLights
|
||||||
MetrostroiDLights = MetrostroiDLights + 3
|
MetrostroiDLights = MetrostroiDLights + 3
|
||||||
|
|
||||||
self.Strength = 1
|
self.Strength = self.Strength or 1
|
||||||
self.Color = Color(255,220,80)
|
self.Color = self.Color or Color(255,220,80)
|
||||||
self.Brightness = 1
|
self.Brightness = self.Brightness or 1
|
||||||
|
|
||||||
self.AffectW = true
|
if self.AffectW == nil then self.AffectW = true end
|
||||||
|
|
||||||
self:SetSize(512)
|
self:SetSize(self.Size or 512)
|
||||||
|
|
||||||
self:MakeDLight()
|
self:MakeDLight()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user