Skip to content

Commit eceeba6

Browse files
authored
Add flags (#3641)
1 parent d8bfd12 commit eceeba6

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

lua/entities/gmod_wire_hoverball.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ if CLIENT then
1414
local drawhoverballs = CreateConVar( "cl_drawhoverballs", "1" )
1515
local glowmat = Material( "sprites/light_glow02_add" )
1616

17-
function ENT:DrawTranslucent()
17+
function ENT:DrawTranslucent(flags)
18+
BaseClass.DrawTranslucent(self, flags)
1819
if not drawhoverballs:GetBool() then return end
1920

2021
if self:IsOn() then

lua/entities/gmod_wire_light.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ if CLIENT then
3434
return Color( self:GetR(), self:GetG(), self:GetB(), 255 )
3535
end
3636

37-
function ENT:DrawTranslucent()
37+
function ENT:DrawTranslucent(flags)
38+
BaseClass.DrawTranslucent(self, flags)
3839
if not self:GetOn() then return end
3940

4041
local LightPos = self:GetPos()

lua/entities/gmod_wire_thruster.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ if CLIENT then
4040
self:SetRenderBounds(mn + Vector(0,0,128), mx, 0)
4141
end
4242

43-
function ENT:DrawTranslucent()
43+
function ENT:DrawTranslucent(flags)
44+
BaseClass.DrawTranslucent(self, flags)
4445
if self.ShouldDraw == 0 or not self:IsOn() then return end
4546

4647
local EffectDraw = WireLib.ThrusterEffectDraw[self:GetEffect()]

lua/entities/gmod_wire_vectorthruster.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ if CLIENT then
6161
self:SetRenderBounds(mn + Vector(0,0,128), mx, 0)
6262
end
6363

64-
function ENT:DrawTranslucent()
64+
function ENT:DrawTranslucent(flags)
65+
BaseClass.DrawTranslucent(self, flags)
6566
if self.ShouldDraw == 0 or not self:IsOn() then return end
6667

6768
local EffectDraw = WireLib.ThrusterEffectDraw[self:GetEffect()]

0 commit comments

Comments
 (0)