All pastes #610485 Raw Edit

Miscellany

public lua v1 · immutable
·published 2007-07-09 14:12 UTC
rendered paste body
// Called when the effect initializesfunction EFFECT:Init( effectData )	self.ePos = effectData:GetOrigin()	self.Entity:SetPos( self.ePos ) 	local emtr = ParticleEmitter( self.ePos )		// Particles	for a = 1, 1000, 1 do		local particle = emtr:Add( "effects/combinemuzzle1", self.ePos )		if particle then			particle:SetVelocity( Vector( 0, 0, 5 ) )			particle:SetLifeTime( 5000 )			particle:SetStartAlpha( 255 )			particle:SetEndAlpha( 255 )			particle:SetStartSize( 4 )			particle:SetEndSize( 7 )			particle:SetGravity( 0 )		end	end	emtr:Finish()end// Called every framefunction EFFECT:Think()	return trueend// Effect renderfunction EFFECT:Render()end