RuneI
Class BubbleSystemOneShot

source: c:\runehov\RuneI\Classes\BubbleSystemOneShot.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.ParticleSystem
         |
         +--RuneI.BubbleSystem
            |
            +--RuneI.BubbleSystemOneShot
Direct Known Subclasses:None

class BubbleSystemOneShot
extends RuneI.BubbleSystem

//============================================================================= // BubbleSystemOneShot. //=============================================================================

Function Summary
 void HitWall(vector HitNorm, Actor Wall)
 void PostBeginPlay()
     
// Load a temporary texture (this bubble is from Unreal)
 void ZoneChange(ZoneInfo newZone)



Source Code


00001	//=============================================================================
00002	// BubbleSystemOneShot.
00003	//=============================================================================
00004	class BubbleSystemOneShot extends BubbleSystem;
00005	
00006	/* DESCRIPTION: Spawns bubbles once.  Whole system floats to surface and then goes away
00007	
00008	*/
00009	
00010	// Load a temporary texture (this bubble is from Unreal)
00011	#exec TEXTURE IMPORT NAME=Bubble FILE=MODELS\Bubble.PCX
00012	
00013	
00014	
00015	function PostBeginPlay()
00016	{
00017		local vector vel;
00018		Super.PostBeginPlay();
00019		if (!Region.Zone.bWaterZone)
00020			Destroy();
00021		SetPhysics(PHYS_Projectile);
00022		vel = vect(0,0,0);
00023		vel.Z = RandRange(20,30);
00024		Velocity = vel + Region.Zone.ZoneVelocity;
00025		Acceleration = Velocity;
00026	}
00027	
00028	
00029	function HitWall(vector HitNorm, actor Wall)
00030	{
00031		Destroy();
00032	}
00033	
00034	
00035	function ZoneChange(ZoneInfo newZone)
00036	{
00037		if (!newZone.bWaterZone)
00038		{
00039			spawn(class'ripple');
00040			Destroy();
00041			return;
00042		}
00043	}
00044	
00045	defaultproperties
00046	{
00047	     bSystemOneShot=True
00048	     bRelativeToSystem=True
00049	     ParticleCount=4
00050	     ShapeVector=(Z=12.000000)
00051	     VelocityMin=(X=0.000000,Y=0.000000,Z=0.000000)
00052	     VelocityMax=(X=0.000000,Y=0.000000,Z=2.000000)
00053	     ScaleMin=0.100000
00054	     LifeSpanMin=99.000000
00055	     LifeSpanMax=99.000000
00056	}

End Source Code