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

UnrealI.BallExplosion


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
//=============================================================================
// BallExplosion.
//=============================================================================
class BallExplosion expands Effects;

#exec MESH IMPORT MESH=b1exp ANIVFILE=MODELS\b1exp_a.3D DATAFILE=MODELS\b1exp_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=b1exp X=0 Y=0 Z=0 YAW=-64
#exec MESH SEQUENCE MESH=b1exp SEQ=All       STARTFRAME=0   NUMFRAMES=11
#exec MESH SEQUENCE MESH=b1exp SEQ=Explo     STARTFRAME=0   NUMFRAMES=11
#exec MESHMAP SCALE MESHMAP=b1exp X=0.3 Y=0.3 Z=0.6 YAW=128
#exec OBJ LOAD FILE=Textures\fireeffect6.utx PACKAGE=UNREALI.Effect6
#exec MESHMAP SETTEXTURE MESHMAP=b1exp NUM=1 TEXTURE=Unreali.Effect6.FireEffect6

#exec AUDIO IMPORT FILE="Sounds\flak\expl2.wav" NAME="expl2" GROUP="flak" 

simulated function Tick( float DeltaTime )
{
    if ( Level.NetMode != NM_DedicatedServer )
        LightBrightness = Max( LightBrightness - 250*DeltaTime, 0 );
}

simulated function PostBeginPlay()
{
    if ( Level.NetMode != NM_DedicatedServer )
    {
        PlayAnim  ( 'Explo', 0.6 );
        PlaySound (EffectSound1);
    }
    MakeNoise ( 1.0 );
    Super.PostBeginPlay();
}

function AnimEnd()
{
    Destroy();
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 12:52:32.000 - Creation time: za 22-4-2006 12:53:44.453 - Created with UnCodeX