## XIII
Class HeadBloodTrailEmitter

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

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

Direct Known Subclasses:None

class HeadBloodTrailEmitter
extends Engine.Emitter

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

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class HeadBloodTrailEmitter extends Emitter;
    00005
    00006	//_____________________________________________________________________________
    00007	simulated event PostBeginPlay()
    00008	{
    00009	    local int i;
    00010	    Super.PostBeginPlay();
    00011	    if ( !Level.bHighDetailMode )
    00012	      Emitters[0].UseCollision = false;
    00013	    if ( (Level.Game != none) && (XIIIGameInfo(Level.Game).PlateForme == 1) ) // PS2
    00014	    {
    00015	      Emitters[0].UseCollision = false;
    00016	      Emitters[0].SetMaxParticles(25);
    00017	    }
    00018	    if ( Level.bLonePlayer && Level.Game.bAlternateMode )
    00019	    {
    00020	      Emitters[0].Texture = texture'XIIICine.effets.blobA';
    00021	      for (i=0; i<5; i++)
    00022	      {
    00023	        Emitters[0].ColorScale[i].relativetime = 0.2*i;
    00024	        Emitters[0].ColorScale[i].Color.R=RandRange(0, 255);
    00025	        Emitters[0].ColorScale[i].Color.G=RandRange(0, 255);
    00026	        Emitters[0].ColorScale[i].Color.B=RandRange(0, 255);
    00027	      }
    00028	    }
    00029	}
    00030
    00031
    00032
    00033	defaultproperties
    00034	{
    00035	     Begin Object Class=SpriteEmitter Name=HeadBloodTrailEmitterA
    00036	         Acceleration=(Z=-50.000000)
    00037	         UseCollision=True
    00038	         UseColorScale=True
    00039	         ResetAfterChange=True
    00040	         RespawnDeadParticles=False
    00041	         Initialized=True
    00042	         DampingFactorRange=(X=(Min=0.000000,Max=0.000000),Y=(Min=0.000000,Max=0.000000),Z=(Min=0.000000,Max=0.100000))
    00043	         ColorScale(0)=(Color=(B=255,G=255,R=255))
    00044	         ColorScale(1)=(relativetime=1.000000,Color=(B=192,G=192,R=192))
    00045	         ColorScale(2)=(relativetime=1.000000,Color=(B=192,G=192,R=192))
    00046	         ColorScale(3)=(relativetime=1.000000,Color=(B=192,G=192,R=192))
    00047	         ColorScale(4)=(relativetime=1.000000,Color=(B=192,G=192,R=192))
    00048	         ColorScale(5)=(relativetime=1.000000,Color=(B=192,G=192,R=192))
    00049	         MaxParticles=75
    00050	         StartSizeRange=(X=(Min=1.000000,Max=5.000000),Y=(Min=1.000000,Max=5.000000),Z=(Min=1.000000,Max=5.000000))
    00051	         InitialParticlesPerSecond=15.000000
    00052	         DrawStyle=PTDS_AlphaBlend
    00053	         Texture=Texture'XIIICine.effets.goutteblood'
    00054	         SecondsBeforeInactive=10000.000000
    00055	         StartVelocityRange=(X=(Min=-5.000000,Max=5.000000),Y=(Min=-5.000000,Max=5.000000),Z=(Min=-20.000000,Max=20.000000))
    00056	         Name="HeadBloodTrailEmitterA"
    00057	     End Object
    00058	     Emitters(0)=SpriteEmitter'XIII.HeadBloodTrailEmitter.HeadBloodTrailEmitterA'
    00059	     bHidden=True
    00060	     bUseCylinderCollision=True
    00061	}

End Source Code