Re: Smart emitter + Particle slowing
So
Code:
function Update(self)
for actor in MovableMan.Actors do
if actor.Team ~= self.Team then
if math.abs((actor.Pos - self.Pos).AbsRadAngle - (self.RotAngle - math.pi / 2)) < (2 - math.atan(actor.Diameter / (self.actor.Pos - self.Pos).Magnitude)) then
self:EnableEmission(true)
end
else
self:EnableEmission(false)
end
end
end
Applied to the emitter, right?