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

UnrealShare.RingExplosion


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

#exec MESH IMPORT MESH=Ringex ANIVFILE=MODELS\Ringex_a.3D DATAFILE=MODELS\Ringex_d.3D X=0 Y=0 Z=0 ZEROTEX=1
#exec MESH ORIGIN MESH=Ringex X=0 Y=0 Z=0 YAW=0 PITCH=64
#exec MESH SEQUENCE MESH=Ringex SEQ=All       STARTFRAME=0   NUMFRAMES=6
#exec MESH SEQUENCE MESH=Ringex SEQ=Explosion STARTFRAME=0   NUMFRAMES=6
#exec OBJ LOAD FILE=Textures\fireeffect50.utx PACKAGE=UnrealShare.Effect50
#exec MESHMAP SCALE MESHMAP=Ringex X=0.4 Y=0.4 Z=0.8 YAW=128
#exec MESHMAP SETTEXTURE MESHMAP=Ringex NUM=0 TEXTURE=UnrealShare.Effect50.FireEffect50

#exec AUDIO IMPORT FILE="Sounds\General\Expl03.wav" NAME="Expl03" GROUP="General"

var() Sound ExploSound;

simulated function Tick( float DeltaTime )
{
    if ( Level.NetMode != NM_DedicatedServer )
    {
        ScaleGlow = (Lifespan/Default.Lifespan);
        AmbientGlow = ScaleGlow * 255;      
    }
}

simulated function PostBeginPlay()
{
    if ( Level.NetMode != NM_DedicatedServer )
    {
        PlayAnim( 'Explosion', 0.25 );
        SpawnEffects();
    }   
    if ( Instigator != None )
        MakeNoise(0.5);
}

simulated function SpawnEffects()
{
    local actor a;

     a = Spawn(class'EffectLight');
     a.RemoteRole = ROLE_None;
     a = Spawn(class'ParticleBurst2');
     a.RemoteRole = ROLE_None;   
}

defaultproperties
{
     RemoteRole=ROLE_SimulatedProxy
     LifeSpan=0.800000
     DrawType=DT_Mesh
     Style=STY_None
     Mesh=Mesh'UnrealShare.Ringex'
     DrawScale=0.700000
     ScaleGlow=1.100000
     bUnlit=True
}

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