Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UnrealI.DistanceLightning


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
//=============================================================================
// DistanceLightning.
//=============================================================================
class DistanceLightning extends Light;

simulated function BeginPlay()
{
	Role = ROLE_Authority;
	if ( Level.NetMode!=NM_DedicatedServer )
		SetTimer(5+FRand()*10,False);
	LightType = LT_None;
}

simulated function Timer()
{
	if (LightType == LT_Flicker)
	{
		LightType = LT_None;
		SetTimer(9+FRand()*20,False);
	}
	else
	{
		LightType = LT_Flicker;
		SetTimer(0.4+FRand()*0.05,False);
	}
}

defaultproperties
{
				bStatic=False
				RemoteRole=ROLE_None
				LightType=LT_Flicker
				LightBrightness=255
				LightRadius=56
				LightPeriod=128
				LightPhase=32
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: zo 11-11-2012 21:10:30.000 - Creation time: zo 11-11-2012 21:14:18.319 - Created with UnCodeX