## XIDCine
Class FireWorkEmitter

source: C:\XIII\XIDCine\Classes\FireWorkEmitter.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Emitter
             |
             +--XIDCine.FireWorkEmitter

Direct Known Subclasses:None

class FireWorkEmitter
extends Engine.Emitter

    //-----------------------------------------------------------
    // FireWorkEmitter
    // Created by iKi on Mar 21th 2002
    // Last Modification Mar 21th 2002
    //-----------------------------------------------------------

Variables
`float` | `StartSpeed`
`float` | `TimeBeforeExplode`

Source Code

    00001	//-----------------------------------------------------------
    00002	// FireWorkEmitter
    00003	// Created by iKi on Mar 21th 2002
    00004	// Last Modification Mar 21th 2002
    00005	//-----------------------------------------------------------
    00006	class FireWorkEmitter extends Emitter;
    00007
    00008	VAR() float StartSpeed;
    00009	VAR() float TimeBeforeExplode;
    00010
    00011	EVENT Trigger( actor Other, pawn EventInstigator )
    00012	{
    00013		LOCAL int i;
    00014
    00015		Emitters[1].Disabled=false;
    00016		SetPhysics(PHYS_Projectile);
    00017		SetTimer(TimeBeforeExplode,false);
    00018		Velocity=StartSpeed*vector(rotation);
    00019		Acceleration=vect(0,0,-10);
    00020	}
    00021
    00022	EVENT Timer()
    00023	{
    00024		Emitters[1].Disabled=true; //RespawnDeadParticles=False;
    00025		Emitters[0].Disabled=false;
    00026		Velocity=vect(0,0,0);
    00027	}
    00028
    00029	EVENT PostBeginPlay( )
    00030	{
    00031	//	LOCAL int i;
    00032	//
    00033	//	for (i=0;i<Emitters.Length;++i)
    00034	//		Emitters[i].Disabled=true;
    00035	}
    00036	//²
    00037
    00038
    00039
    00040	defaultproperties
    00041	{
    00042	     StartSpeed=666.000000
    00043	     TimeBeforeExplode=3.000000
    00044	     Begin Object Class=SpriteEmitter Name=FireWorkEmitterA
    00045	         Acceleration=(Z=-75.000000)
    00046	         UseColorScale=True
    00047	         RespawnDeadParticles=False
    00048	         Disabled=True
    00049	         AutomaticInitialSpawning=False
    00050	         Initialized=True
    00051	         ColorScale(0)=(Color=(B=64,G=128,R=128))
    00052	         ColorScale(1)=(relativetime=0.250000,Color=(R=128))
    00053	         ColorScale(2)=(relativetime=0.500000,Color=(G=128))
    00054	         ColorScale(3)=(relativetime=0.750000,Color=(B=128))
    00055	         ColorScale(4)=(relativetime=1.000000)
    00056	         MaxParticles=1000
    00057	         StartLocationShape=PTLS_Sphere
    00058	         SphereRadiusRange=(Max=1.000000)
    00059	         StartSizeRange=(X=(Min=5.000000,Max=5.000000))
    00060	         InitialParticlesPerSecond=666.000000
    00061	         Texture=Texture'XIIICine.effets.etincelle'
    00062	         SecondsBeforeInactive=10000.000000
    00063	         LifetimeRange=(Min=5.000000,Max=8.000000)
    00064	         StartVelocityRange=(X=(Min=75.000000,Max=300.000000),Y=(Min=75.000000,Max=300.000000),Z=(Min=75.000000,Max=300.000000))
    00065	         GetVelocityDirectionFrom=PTVD_StartPositionAndOwner
    00066	         Name="FireWorkEmitterA"
    00067	     End Object
    00068	     Emitters(0)=SpriteEmitter'XIDCine.FireWorkEmitter.FireWorkEmitterA'
    00069	     Begin Object Class=SpriteEmitter Name=FireWorkEmitterB
    00070	         UseColorScale=True
    00071	         FadeOut=True
    00072	         Disabled=True
    00073	         UseSizeScale=True
    00074	         UseRegularSizeScale=False
    00075	         Initialized=True
    00076	         ColorScale(0)=(Color=(G=64,R=64))
    00077	         ColorScale(1)=(relativetime=1.000000,Color=(G=64,R=64))
    00078	         MaxParticles=100
    00079	         SizeScale(0)=(relativetime=1.000000)
    00080	         StartSizeRange=(X=(Min=15.000000,Max=15.000000))
    00081	         ParticlesPerSecond=100.000000
    00082	         Texture=Texture'XIIICine.effets.etincelle'
    00083	         SecondsBeforeInactive=10000.000000
    00084	         LifetimeRange=(Min=3.000000,Max=3.000000)
    00085	         Name="FireWorkEmitterB"
    00086	     End Object
    00087	     Emitters(1)=SpriteEmitter'XIDCine.FireWorkEmitter.FireWorkEmitterB'
    00088	     Physics=PHYS_Projectile
    00089	     bDirectional=True
    00090	}

End Source Code