RuneI
Class SparkSystem

source: c:\runehov\RuneI\Classes\SparkSystem.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.ParticleSystem
         |
         +--RuneI.SparkSystem
Direct Known Subclasses:SparkSystemHit, SparkSystemVertical

class SparkSystem
extends Engine.ParticleSystem

//USAGE: for SparkSystem //Direct Rotation to the desired direction of the sparks to travel. //Due to the system, it maybe better to offset the direction a little to the left. //If you want this system to be initially active, change bHidden to False.

Function Summary
 
simulated
PostBeginPlay()
 void Trigger(Actor Other, Pawn EventInstigator)



Source Code


00001	//=============================================================================
00002	// SparkSystem.
00003	//=============================================================================
00004	
00005	//USAGE: for SparkSystem
00006	//Direct Rotation to the desired direction of the sparks to travel.  
00007	//Due to the system, it maybe better to offset the direction a little to the left.
00008	//If you want this system to be initially active, change bHidden to False. 
00009	
00010	class SparkSystem expands ParticleSystem;
00011	
00012	var(SparkSystem) bool bInitiallyActive;
00013	
00014	simulated function PostBeginPlay()
00015	{
00016		if(bInitiallyActive)
00017			bHidden = false;
00018	}
00019	
00020	function Trigger( Actor Other, Pawn EventInstigator )
00021	{
00022		bHidden = false;
00023	}
00024	
00025	defaultproperties
00026	{
00027	     bSpriteInEditor=True
00028	     ParticleCount=30
00029	     ParticleTexture(0)=Texture'RuneFX2.sparkbeam'
00030	     RandomDelay=0.500000
00031	     VelocityMin=(X=-100.000000,Y=-100.000000,Z=-50.000000)
00032	     VelocityMax=(X=200.000000,Y=200.000000,Z=150.000000)
00033	     ScaleMin=0.500000
00034	     ScaleMax=1.000000
00035	     ScaleDeltaX=0.500000
00036	     ScaleDeltaY=0.500000
00037	     LifeSpanMin=0.500000
00038	     LifeSpanMax=1.000000
00039	     AlphaStart=225
00040	     AlphaEnd=175
00041	     bAlphaFade=True
00042	     bApplyGravity=True
00043	     GravityScale=0.650000
00044	     SpawnOverTime=1.000000
00045	     bHidden=True
00046	     bForceRender=True
00047	     bDirectional=True
00048	     Style=STY_Translucent
00049	}

End Source Code