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

UnrealShare.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
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
//=============================================================================
// 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=UnrealShare.Effect6
#exec MESHMAP SETTEXTURE MESHMAP=b1exp NUM=1 TEXTURE=UnrealShare.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()
{
    PlayAnim  ( 'Explo', 0.6 );
    MakeSound();
    Super.PostBeginPlay();
}

function MakeSound()
{
    PlaySound (EffectSound1);
    MakeNoise ( 1.0 );
}

simulated function AnimEnd()
{
    Destroy();
}

defaultproperties
{
     EffectSound1=Sound'UnrealShare.flak.expl2'
     RemoteRole=ROLE_SimulatedProxy
     DrawType=DT_Mesh
     Mesh=Mesh'UnrealShare.b1exp'
     AmbientGlow=159
     LightType=LT_Steady
     LightEffect=LE_NonIncidence
     LightBrightness=192
     LightHue=29
     LightSaturation=177
     LightRadius=9
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 21/2/2010 23:48:40.000 - Creation time: Sun 21/2/2010 23:49:51.134 - Created with UnCodeX