Permalink
Browse files

Fixed/Improved thruster rendering

No longer has halo around effects, effects now draw properly over the
model
  • Loading branch information...
1 parent 14c4309 commit e456d6f1ceaf7f40398d459bca1b4de2ef2fa8e9 @robotboy655 robotboy655 committed Apr 20, 2016
@@ -52,7 +52,6 @@ function ENT:GetOverlayText()
end
-
function ENT:SetPlayer( ply )
if ( IsValid(ply) ) then
@@ -3,7 +3,6 @@ AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
ENT.Spawnable = false
-ENT.RenderGroup = RENDERGROUP_BOTH
local matHeatWave = Material( "sprites/heatwave" )
local matFire = Material( "effects/fire_cloud1" )
@@ -88,15 +87,9 @@ function ENT:Draw()
if ( self.ShouldDraw == 0 ) then return end
- BaseClass.Draw( self )
+ self:DrawModel()
-end
-
-function ENT:DrawTranslucent()
-
- if ( self.ShouldDraw == 0 ) then return end
-
- BaseClass.DrawTranslucent( self )
+ if ( halo.RenderedEntity() == self ) then return end
if ( !self:IsOn() ) then
self.OnStart = nil
@@ -108,7 +101,6 @@ function ENT:DrawTranslucent()
local EffectThink = self[ "EffectDraw_" .. self:GetEffect() ]
if ( EffectThink ) then EffectThink( self ) end
-
end
function ENT:Think()

0 comments on commit e456d6f

Please sign in to comment.