UnrealShare
Class Drip

source: e:\games\UnrealTournament\UnrealShare\Classes\Drip.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Decoration
         |
         +--UnrealShare.DripGenerator
            |
            +--UnrealShare.Drip
Direct Known Subclasses:None

class Drip
extends UnrealShare.DripGenerator

//============================================================================= // Drip. //=============================================================================
Variables
 sound DripSound

States
FallingState
State FallingState Function Summary
 void touch(Actor Other)
 void Landed(vector HitNormal)



Source Code


00001	//=============================================================================
00002	// Drip.
00003	//=============================================================================
00004	class Drip extends DripGenerator;
00005	
00006	#exec AUDIO IMPORT FILE="Sounds\General\Drip.WAV" NAME="Drip1" GROUP="General"
00007	
00008	var() sound DripSound;
00009	
00010	auto state FallingState
00011	{
00012	
00013		function Landed( vector HitNormal )
00014		{
00015			HitWall(HitNormal, None);	
00016		}
00017	
00018		simulated function HitWall (vector HitNormal, actor Wall) 
00019		{
00020			PlaySound(DripSound);
00021			Destroy();
00022		}
00023		
00024		singular function touch(actor Other)
00025		{
00026			PlaySound(DripSound);	
00027			Destroy();
00028		}
00029	
00030	Begin:
00031		PlayAnim('Dripping',0.3);
00032	}
00033	
00034	defaultproperties
00035	{
00036	     DripSound=Sound'UnrealShare.General.Drip1'
00037	     DripPause=0.000000
00038	     DripVariance=0.000000
00039	     DripTexture=None
00040	     bHidden=False
00041	     Physics=PHYS_Falling
00042	     LifeSpan=5.000000
00043	     Skin=Texture'UnrealShare.Jmisc1'
00044	     CollisionRadius=0.000000
00045	     CollisionHeight=0.000000
00046	     bCollideWorld=True
00047	}

End Source Code