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
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
//=============================================================================
// UPakBurst.
//=============================================================================
class UPakBurst expands SpriteBallExplosion;

#exec OBJ LOAD FILE=MODELS\BURST\AMAPearl.utx PACKAGE=UPak.Burst

#exec MESH IMPORT MESH=AMApearl ANIVFILE=MODELS\BURST\AMApearl_a.3d DATAFILE=MODELS\BURST\AMApearl_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=AMApearl X=0 Y=0 Z=0

#exec MESH SEQUENCE MESH=AMApearl SEQ=All      STARTFRAME=0 NUMFRAMES=1

#exec MESHMAP NEW   MESHMAP=AMApearl MESH=AMApearl
#exec MESHMAP SCALE MESHMAP=AMApearl X=0.1 Y=0.1 Z=0.2

#exec TEXTURE IMPORT NAME=Burst FILE=MODELS\BURST\burst.pcx GROUP=Burst
#exec TEXTURE IMPORT NAME=Burst2 FILE=MODELS\BURST\burst2.pcx GROUP=Burst

#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;


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: za 22-4-2006 13:27:50.000 - Creation time: za 22-4-2006 13:29:33.218 - Created with UnCodeX