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

XEffects.Bubble


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
//=============================================================================
// Bubble.
//=============================================================================
class Bubble extends Effects;

// TODO: replace with non-UT content
#exec MESH IMPORT MESH=SBubbles ANIVFILE=Models\SRocket_a.3D DATAFILE=Models\SRocket_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=SBubbles X=0 Y=0 Z=0 YAW=0 ROLL=0 PITCH=0
#exec MESH SEQUENCE MESH=SBubbles SEQ=All       STARTFRAME=0   NUMFRAMES=16
#exec MESH SEQUENCE MESH=SBubbles SEQ=Ignite    STARTFRAME=0   NUMFRAMES=3
#exec MESH SEQUENCE MESH=SBubbles SEQ=Flying    STARTFRAME=3   NUMFRAMES=13
#exec MESHMAP SCALE MESHMAP=SBubbles  X=0.3 Y=0.3 Z=0.4

#exec TEXTURE IMPORT File=models\bubble1.tga  Name=S_bubble1 LODSET=3 Alpha=1 DXT=5
#exec TEXTURE IMPORT File=models\bubble2.tga  Name=S_bubble2 LODSET=3 Alpha=1 DXT=5
#exec TEXTURE IMPORT File=models\bubble3.tga  Name=S_bubble3 LODSET=3 Alpha=1 DXT=5

simulated function PhysicsVolumeChange( PhysicsVolume Volume )
{
    if ( !Volume.bWaterVolume )
        Destroy();
}

simulated function BeginPlay()
{
    Super.BeginPlay();
    if ( Level.NetMode != NM_DedicatedServer )
    {
        LifeSpan = 3 + 4 * FRand();
        if (FRand()<0.3) Texture = texture'S_Bubble2';
        else if (FRand()<0.3) Texture = texture'S_Bubble3';
        LoopAnim('Flying',0.6);
    }
}

defaultproperties
{
     DrawType=DT_Mesh
     Physics=PHYS_Falling
     RemoteRole=ROLE_SimulatedProxy
     LifeSpan=2.000000
     Mesh=VertMesh'XEffects.SBubbles'
     Texture=Texture'XEffects.S_bubble1'
     DrawScale=0.200000
     Style=STY_Translucent
     Mass=3.000000
     Buoyancy=5.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 23/10/2006 20:37:00.000 - Creation time: Wed 7/2/2007 19:16:35.453 - Created with UnCodeX