## XIII
Class DeathOnomatopEmitter

source: C:\XIII\XIII\Classes\DeathOnomatopEmitter.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Emitter
             |
             +--XIII.DeathOnomatopEmitter

Direct Known Subclasses:None

class DeathOnomatopEmitter
extends Engine.Emitter

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`Death3Tex,` | `Death4Tex`

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class DeathOnomatopEmitter extends Emitter;
    00005
    00006	var texture /*Death1Tex,*/ Death2Tex, Death3Tex, Death4Tex;
    00007
    00008	//_____________________________________________________________________________
    00009	simulated event SetInitialState()
    00010	{
    00011	    local int i;
    00012
    00013	    Super.SetInitialState();
    00014
    00015	    i = int (frand() * 3);
    00016
    00017	//    log(self$" SetInitialState w/ i="$i);
    00018	    switch(i)
    00019	    {
    00020	      Case 0 : Emitters[0].Texture=Death2Tex; break;
    00021	      Case 1 : Emitters[0].Texture=Death3Tex; break;
    00022	      Case 2 : Emitters[0].Texture=Death4Tex; break;
    00023	    }
    00024	}
    00025
    00026
    00027	defaultproperties
    00028	{
    00029	     Death2Tex=Texture'XIIICine.effets.death2'
    00030	     Death3Tex=Texture'XIIICine.effets.death3'
    00031	     Death4Tex=Texture'XIIICine.effets.death4'
    00032	     Begin Object Class=SpriteEmitter Name=DeathOnomatopEmitterA
    00033	         FadeOut=True
    00034	         RespawnDeadParticles=False
    00035	         UseSizeScale=True
    00036	         UseRegularSizeScale=False
    00037	         AutomaticInitialSpawning=False
    00038	         Initialized=True
    00039	         MaxParticles=1
    00040	         StartLocationOffset=(Z=10.000000)
    00041	         UseRotationFrom=PTRS_Actor
    00042	         SizeScale(0)=(relativetime=0.250000,RelativeSize=0.800000)
    00043	         SizeScale(1)=(relativetime=0.500000,RelativeSize=1.500000)
    00044	         SizeScale(2)=(relativetime=0.750000,RelativeSize=1.200000)
    00045	         StartSizeRange=(X=(Min=40.000000,Max=40.000000),Y=(Min=40.000000,Max=40.000000),Z=(Min=40.000000,Max=40.000000))
    00046	         InitialParticlesPerSecond=5000.000000
    00047	         DrawStyle=PTDS_AlphaBlend
    00048	         TextureUSubdivisions=1
    00049	         TextureVSubdivisions=1
    00050	         SecondsBeforeInactive=10000.000000
    00051	         LifetimeRange=(Min=1.500000,Max=1.500000)
    00052	         Name="DeathOnomatopEmitterA"
    00053	     End Object
    00054	     Emitters(0)=SpriteEmitter'XIII.DeathOnomatopEmitter.DeathOnomatopEmitterA'
    00055	     bUnlit=True
    00056	     RemoteRole=ROLE_None
    00057	}

End Source Code