include('shared.lua') // Draw function ENT:Draw() if (LocalPlayer():GetEyeTrace().Entity == self.Entity && EyePos():Distance(self.Entity:GetPos()) < 512) then self:DrawEntityOutline(1.0) if (self:GetOverlayText() != "") then AddWorldTip(self.Entity:EntIndex(), self:GetOverlayText(), 0.5, self.Entity:GetPos(), self.Entity) end end if (self.Entity:GetNetworkedInt("Playing") == 1) then local Emitter = ParticleEmitter(self.Entity:GetPos()) local Particle = Emitter:Add("sprites/heatwave", self.Entity:GetPos()) Particle:SetVelocity(self.Entity:GetUp() * 250) Particle:SetDieTime(0.5) Particle:SetStartAlpha(50) Particle:SetEndAlpha(25) Particle:SetStartSize(math.random(16, 32)) Particle:SetEndSize(math.random(16, 32)) Particle:SetRoll(math.Rand(-0.5, 0.5)) end self.Entity:DrawModel() end