RuneI
Class FlashFade

source: c:\runehov\RuneI\Classes\FlashFade.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Effects
         |
         +--RuneI.FlashFade
Direct Known Subclasses:None

class FlashFade
extends Engine.Effects

//============================================================================= // FlashFade. // Bright flash that quickly fades out //=============================================================================
Variables
 float DecayPerSecond
 float GlowHigh


Function Summary
 void PreBeginPlay()
 void Tick(float DeltaTime)



Source Code


00001	//=============================================================================
00002	// FlashFade.
00003	// Bright flash that quickly fades out
00004	//=============================================================================
00005	class FlashFade expands Effects;
00006	
00007	var() float GlowHigh;
00008	var() float DecayPerSecond;
00009	
00010	function PreBeginPlay()
00011	{
00012		RotationRate=rotator(VRand())*5000;
00013		ScaleGlow=GlowHigh;
00014	}
00015	
00016	function Tick(float DeltaTime)
00017	{
00018		if (ScaleGlow > 0)
00019		{
00020			ScaleGlow -= DeltaTime * DecayPerSecond;
00021			if (ScaleGlow < 0)
00022			{
00023				ScaleGlow = 0;
00024				Destroy();
00025			}
00026		}
00027	}
00028	
00029	defaultproperties
00030	{
00031	     GlowHigh=2.000000
00032	     DecayPerSecond=2.500000
00033	     DrawType=DT_SkeletalMesh
00034	     Style=STY_Translucent
00035	     Sprite=Texture'RuneFX.Spark1'
00036	     Texture=Texture'RuneFX.Spark1'
00037	     DrawScale=7.000000
00038	     ScaleGlow=0.000000
00039	     bParticles=True
00040	     CollisionRadius=50.000000
00041	     CollisionHeight=50.000000
00042	     Skeletal=SkelModel'objects.Fruit'
00043	}

End Source Code