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

UPak.Octagon


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
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
//=============================================================================
// Octagon.
//=============================================================================
class Octagon expands Effects;

#exec AUDIO IMPORT FILE="SOUNDS\MARINE\BEAMIN.WAV" NAME="BeamIn" GROUP="Beam"

simulated function PostBeginPlay()
{
	Fatness = 0;
	Disable( 'Tick' );
	SetTimer( 3.0, false );
}
simulated event Landed( vector HitNormal )
{
	AmbientSound = sound'BeamIn';
	SoundVolume = 1;
	SoundRadius = 128;
	Mesh = mesh'Octagon';
	Enable( 'Tick' );
}
simulated function Tick( float DeltaTime )
{
	if( SoundVolume <= 128 )
		SoundVolume += 2;
	
	if( Fatness < 220 && mesh != none )
		Fatness += 1;
}
simulated function Timer()
{
	if( Level.NetMode==NM_DedicatedServer )
	{
		Destroy();
		Return;
	}
	SoundVolume = 128;
	GotoState( 'FadingOut' );
}
simulated state FadingOut
{
	simulated function BeginState()
	{
	}
	
	simulated function Tick( float DeltaTime )
	{
		if( Fatness > 0.0 )
		{
			Fatness -= 1;
			if( DrawScale > 1 )
				DrawScale -= 0.01;
		}
		else
		{
			if( ScaleGlow > 0.01 )
			{
				if( SoundVolume > 15 )
					SoundVolume -= 1;
				bUnlit = false;
				ScaleGlow -= 0.01;
			}
			else Destroy();
		}
	}
}

defaultproperties
{
				Physics=PHYS_Falling
				RemoteRole=ROLE_SimulatedProxy
				LifeSpan=10.000000
				DrawType=DT_Mesh
				Style=STY_Translucent
				Texture=FireTexture'UPak.BeamEffect.beam3'
				Skin=FireTexture'UPak.BeamEffect.beam3'
				bUnlit=True
				CollisionRadius=22.000000
				CollisionHeight=1.000000
				bCollideWorld=True
}

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:19.522 - Created with UnCodeX