## XIII
Class UnderWaterBreathEmitter

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Emitter
             |
             +--Engine.TriggerParticleEmitter
                |
                +--XIII.UnderWaterBreathEmitter

Direct Known Subclasses:None

class UnderWaterBreathEmitter
extends Engine.TriggerParticleEmitter

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

Variables
`float` | `fBreathTimer`
`float` | `fTimer`

Function Summary
`bool` | `TriggerParticle()`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class UnderWaterBreathEmitter extends TriggerParticleEmitter;
    00005
    00006	var float fTimer;
    00007	var float fBreathTimer;
    00008
    00009	//_____________________________________________________________________________
    00010	function bool TriggerParticle()
    00011	{
    00012	    fTimer += 0.25;
    00013	    if ( fTimer >= fBreathTimer )
    00014	    {
    00015	      fTimer -= fBreathTimer;
    00016	      Emitters[0].RotationOffset = Pawn(Owner).Rotation;
    00017	      Emitters[0].SpawnParticle(int(4*fBreathTimer));
    00018	      return true;
    00019	    }
    00020	}
    00021
    00022
    00023
    00024	defaultproperties
    00025	{
    00026	     fBreathTimer=1.500000
    00027	     Begin Object Class=SpriteEmitter Name=UnderWaterBreathEmitterA
    00028	         Acceleration=(X=3.000000,Z=30.000000)
    00029	         UseColorScale=True
    00030	         RespawnDeadParticles=False
    00031	         DampRotation=True
    00032	         UseSizeScale=True
    00033	         UseRegularSizeScale=False
    00034	         AutomaticInitialSpawning=False
    00035	         Initialized=True
    00036	         ColorScale(0)=(relativetime=0.500000,Color=(B=255,G=255,R=255))
    00037	         ColorScale(1)=(relativetime=1.000000,Color=(B=255,G=117,R=117))
    00038	         FadeOutStartTime=0.900000
    00039	         FadeInEndTime=0.100000
    00040	         MaxParticles=15
    00041	         AutoResetTimeRange=(Min=3.000000,Max=4.000000)
    00042	         UseRotationFrom=PTRS_Offset
    00043	         SpinsPerSecondRange=(X=(Min=1.000000,Max=1.000000),Y=(Min=1.000000,Max=1.000000),Z=(Min=0.100000,Max=0.100000))
    00044	         SizeScale(1)=(relativetime=0.300000,RelativeSize=0.200000)
    00045	         SizeScale(2)=(relativetime=0.500000,RelativeSize=1.000000)
    00046	         SizeScale(3)=(relativetime=1.000000,RelativeSize=1.200000)
    00047	         StartSizeRange=(X=(Min=1.000000,Max=2.000000),Y=(Min=1.000000,Max=2.000000),Z=(Min=1.000000,Max=2.000000))
    00048	         InitialParticlesPerSecond=4.000000
    00049	         DrawStyle=PTDS_Brighten
    00050	         Texture=Texture'XIIICine.bulle'
    00051	         SecondsBeforeInactive=10000.000000
    00052	         LifetimeRange=(Min=1.500000,Max=2.000000)
    00053	         StartVelocityRange=(X=(Min=5.000000,Max=20.000000),Y=(Min=-8.000000,Max=8.000000),Z=(Min=-10.000000,Max=10.000000))
    00054	         Name="UnderWaterBreathEmitterA"
    00055	     End Object
    00056	     Emitters(0)=SpriteEmitter'XIII.UnderWaterBreathEmitter.UnderWaterBreathEmitterA'
    00057	     AutoDestroy=False
    00058	     bTrailerSameRotation=True
    00059	     Physics=PHYS_Trailer
    00060	     CollisionRadius=80.000000
    00061	     CollisionHeight=80.000000
    00062	}

End Source Code