Botpack
Class UT_Spark

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

class UT_Spark
extends Engine.Effects

//============================================================================= // ut_spark. //=============================================================================
States
Explode

Function Summary
 void PostBeginPlay()


State Explode Function Summary



Source Code


00001	//=============================================================================
00002	// ut_spark.
00003	//=============================================================================
00004	class UT_Spark extends Effects;
00005	
00006	#exec TEXTURE IMPORT NAME=Sparky FILE=MODELS\spark.pcx GROUP=Effects
00007	
00008	
00009	function PostBeginPlay()
00010	{
00011		Velocity = (Vector(Rotation) + VRand()) * 200 * FRand();
00012	}
00013	
00014	auto state Explode
00015	{
00016		simulated function ZoneChange( ZoneInfo NewZone )
00017		{
00018			if ( NewZone.bWaterZone )
00019				Destroy();
00020		}
00021	
00022		simulated function Landed( vector HitNormal )
00023		{
00024			Destroy();
00025		}
00026	
00027		simulated function HitWall( vector HitNormal, actor Wall )
00028		{
00029			Destroy();
00030		}
00031	}
00032	
00033	defaultproperties
00034	{
00035	     Physics=PHYS_Falling
00036	     RemoteRole=ROLE_None
00037	     LifeSpan=1.000000
00038	     DrawType=DT_Sprite
00039	     Style=STY_Translucent
00040	     Texture=Texture'Botpack.Effects.Sparky'
00041	     DrawScale=0.100000
00042	     bUnlit=True
00043	     bCollideWorld=True
00044	     bBounce=True
00045	     NetPriority=2.000000
00046	}

End Source Code