UMSEffects
Class MovieBlur

source: e:\games\UnrealTournament\UMSEffects\Classes\MovieBlur.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Effects
         |
         +--UMSEffects.MovieBlur
Direct Known Subclasses:None

class MovieBlur
extends Engine.Effects

//============================================================================= // MovieBlur. Just the Relic of Speed code for a motion blur like shadow. //=============================================================================
Variables
 float FadeRate


Function Summary
 
simulated
PostBeginPlay()
 
simulated
Tick(float Delta)



Source Code


00001	//=============================================================================
00002	// MovieBlur. Just the Relic of Speed code for a motion blur like shadow.
00003	//=============================================================================
00004	
00005	class MovieBlur expands Effects;
00006	var float FadeRate;
00007	
00008	simulated function PostBeginPlay()
00009	{
00010		local int i;
00011	
00012		Mesh = Owner.Mesh;
00013		DrawScale = Owner.DrawScale;
00014		AnimFrame = Owner.AnimFrame;
00015		AnimSequence = Owner.AnimSequence;
00016		AnimRate = Owner.AnimRate;
00017		TweenRate = Owner.TweenRate;
00018		AnimMinRate = Owner.AnimMinRate;
00019		AnimLast = Owner.AnimLast;
00020		bAnimLoop = Owner.bAnimLoop;
00021		bAnimFinished = Owner.bAnimFinished;
00022	
00023		if ( Owner.IsA('Pawn') && Pawn(Owner).bIsMultiSkinned )
00024		{
00025			for (i=0; i<8; i++)
00026				MultiSkins[i] = Owner.MultiSkins[i];
00027		}
00028		else
00029			Skin = Owner.Skin;
00030	}
00031	
00032	simulated function Tick(float Delta)
00033	{
00034		ScaleGlow -= FadeRate*Delta;
00035		if (ScaleGlow <= 0)
00036			Destroy();
00037	}
00038	
00039	defaultproperties
00040	{
00041	     bAnimLoop=True
00042	     bHighDetail=True
00043	     RemoteRole=ROLE_None
00044	     AnimRate=17.000000
00045	     LODBias=0.100000
00046	     DrawType=DT_Mesh
00047	     Style=STY_Translucent
00048	     Mesh=LodMesh'Botpack.Soldier'
00049	     bUnlit=True
00050	}

End Source Code