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

UnrealShare.Bubble1


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
//=============================================================================
// Bubble1.
//=============================================================================
class Bubble1 expands Effects;
    
#exec Texture Import File=models\bubble1.pcx  Name=S_bubble1 Mips=Off Flags=2
#exec Texture Import File=models\bubble2.pcx  Name=S_bubble2 Mips=Off Flags=2
#exec Texture Import File=models\bubble3.pcx  Name=S_bubble3 Mips=Off Flags=2


simulated function ZoneChange( ZoneInfo NewZone )
{
    if ( !NewZone.bWaterZone ) 
    {
        Destroy();
        PlaySound (EffectSound1);
    }   
}

simulated function BeginPlay()
{
    Super.BeginPlay();
    if ( Level.NetMode != NM_DedicatedServer )
    {
        PlaySound(EffectSound2); //Spawned Sound
        LifeSpan = 3 + 4 * FRand();
        Buoyancy = Mass + FRand()+0.1;
        if (FRand()<0.3) Texture = texture'S_Bubble2';
        else if (FRand()<0.3) Texture = texture'S_Bubble3';
        DrawScale += FRand()*DrawScale/2;
    }
}

defaultproperties
{
     Physics=PHYS_Falling
     LifeSpan=2.000000
     DrawType=DT_Sprite
     Style=STY_Translucent
     Texture=Texture'UnrealShare.S_bubble1'
     Mass=3.000000
     Buoyancy=3.750000
     bNetOptional=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:51.384 - Created with UnCodeX