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

UPak.UPakBurst


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
//=============================================================================
// UPakBurst.
//=============================================================================
class UPakBurst expands SpriteBallExplosion;

#exec AUDIO IMPORT FILE="Sounds\Explosions\Explo1.WAV" NAME="Explo1" GROUP="Explosions"
#exec AUDIO IMPORT FILE="Sounds\Explosions\Explo2.WAV" NAME="Explo2" GROUP="Explosions"
#exec AUDIO IMPORT FILE="Sounds\Explosions\Explo3.WAV" NAME="Explo3" GROUP="Explosions"
#exec AUDIO IMPORT FILE="Sounds\Explosions\Explo4.WAV" NAME="Explo4" GROUP="Explosions"
#exec AUDIO IMPORT FILE="Sounds\Explosions\Explo5.WAV" NAME="Explo5" GROUP="Explosions"

var float Count;
var float ShockSize;
var bool bShrinking;
var() float MaxBurstSize;

function MakeSound()
{
	PlaySound(EffectSound1,,7.0);
}

simulated function PostBeginPlay()
{
	MakeSound();
	Texture = SpriteAnim[int(FRand()*5)];
}


simulated function Tick( float DeltaTime )
{
	Count += DeltaTime * 15;
	ShockSize =  Count + 3.5/(ScaleGlow+0.05);
	if ( Level.NetMode != NM_DedicatedServer )
	{
		if( !bShrinking )
		{
			ScaleGlow = ( ( Lifespan/Default.Lifespan ) * 0.75 );
			AmbientGlow = ScaleGlow * 100;
		}
		if( DrawScale < MaxBurstSize && !bShrinking )
		{
			DrawScale += 0.3;
			if( Fatness < 230 )
				Fatness += 15 + Rand( 15 );
		}
		else 
		{
			bShrinking = True;
			DrawScale += 0.15;
			ScaleGlow -= 0.05;
			if( Fatness > 95 )
				Fatness -= 15;
		}
	}
}
simulated function Timer();

defaultproperties
{
				MaxBurstSize=2.000000
				EffectSound1=Sound'UPak.Explosions.Explo4'
				LifeSpan=1.000000
				DrawType=DT_Mesh
				Texture=None
				Skin=Texture'UPak.burst.Burst2'
				Mesh=LodMesh'UPak.AMAPearl'
				DrawScale=0.500000
				LightEffect=LE_TorchWaver
				LightBrightness=120
}

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