UnrealI
Class DistanceLightning

source: e:\games\UnrealTournament\UnrealI\Classes\DistanceLightning.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Light
         |
         +--UnrealI.DistanceLightning
Direct Known Subclasses:None

class DistanceLightning
extends Engine.Light

//============================================================================= // DistanceLightning. //=============================================================================

Function Summary
 void BeginPlay()
 void Timer()



Source Code


00001	//=============================================================================
00002	// DistanceLightning.
00003	//=============================================================================
00004	class DistanceLightning extends Light;
00005	
00006	function BeginPlay()
00007	{
00008		SetTimer(5+FRand()*10,False);
00009		LightType = LT_None;
00010	}
00011	
00012	function Timer()
00013	{
00014		if (LightType == LT_Flicker)
00015		{
00016			LightType = LT_None;
00017			SetTimer(9+FRand()*20,False);		
00018		}
00019		else 
00020		{
00021			LightType = LT_Flicker;
00022			SetTimer(0.4+FRand()*0.05,False);
00023		}
00024	}
00025	
00026	defaultproperties
00027	{
00028	     bStatic=False
00029	     LightType=LT_Flicker
00030	     LightBrightness=255
00031	     LightRadius=56
00032	     LightPeriod=128
00033	     LightPhase=32
00034	}

End Source Code