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
00046
//=============================================================================
// Bubble1.
//=============================================================================
class Bubble1 extends 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
{
     bNetOptional=True
     Physics=PHYS_Falling
     RemoteRole=ROLE_SimulatedProxy
     LifeSpan=2.000000
     DrawType=DT_Sprite
     Style=STY_Translucent
     Texture=Texture'UnrealShare.S_bubble1'
     Mass=3.000000
     Buoyancy=3.750000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 13:06:32.000 - Creation time: za 22-4-2006 13:07:24.968 - Created with UnCodeX