All pastes #610488 Raw Edit

Miscellany

public lua v1 · immutable
·published 2007-07-09 14:16 UTC
rendered paste body
// Called when the effect initializesfunction EFFECT:Init( effectData )	local effectPos = effectData:GetOrigin()	local emtr = ParticleEmitter( effectPos )		// Particles	for a = 1, 1000, 1 do		local particle = emtr:Add( "effects/combinemuzzle1", effectPos )		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