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

UnrealShare.Spark3


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
//=============================================================================
// Spark3.
//=============================================================================
class Spark3 expands SmallSpark;

#exec MESH IMPORT MESH=Spark3M ANIVFILE=MODELS\Spark3_a.3D DATAFILE=MODELS\Spark3_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=Spark3M X=0 Y=0 Z=0 PITCH=-64
#exec MESH SEQUENCE MESH=Spark3M SEQ=All       STARTFRAME=0   NUMFRAMES=2
#exec MESH SEQUENCE MESH=Spark3M SEQ=Explosion STARTFRAME=0   NUMFRAMES=2
#exec  OBJ LOAD FILE=Textures\fireeffect1.utx PACKAGE=UnrealShare.Effect1
#exec TEXTURE IMPORT NAME=JSmlSpark1 FILE=MODELS\Spark.PCX GROUP=Skins
#exec MESHMAP SCALE MESHMAP=Spark3M X=0.06 Y=0.06 Z=0.12
#exec MESHMAP SETTEXTURE MESHMAP=Spark3M NUM=1 TEXTURE=JSmlSpark1

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

simulated function PostBeginPlay()
{
    local rotator NewRotation;

    NewRotation = Rotation;
    NewRotation.Pitch = FRand()*65535;
    PlayAnim  ( 'Explosion', 0.09 );
    PlaySound (EffectSound1);
    SetRotation(NewRotation);
}

defaultproperties
{
     LifeSpan=0.250000
     Style=STY_Translucent
     Texture=FireTexture'UnrealShare.Effect1.FireEffect1u'
     Mesh=Mesh'UnrealShare.Spark3M'
     DrawScale=0.100000
     bUnlit=False
     bParticles=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.708 - Created with UnCodeX