UnrealShare
Class LightWallHitEffect

source: e:\games\UnrealTournament\UnrealShare\Classes\LightWallHitEffect.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Effects
         |
         +--UnrealShare.AnimSpriteEffect
            |
            +--UnrealShare.SpriteSmokePuff
               |
               +--UnrealShare.WallHitEffect
                  |
                  +--UnrealShare.LightWallHitEffect
Direct Known Subclasses:None

class LightWallHitEffect
extends UnrealShare.WallHitEffect

//============================================================================= // LightWallHitEffect. //=============================================================================

Function Summary
 
simulated
SpawnEffects()



Source Code


00001	//=============================================================================
00002	// LightWallHitEffect.
00003	//=============================================================================
00004	class LightWallHitEffect extends WallHitEffect;
00005	
00006	simulated function SpawnEffects()
00007	{
00008		local Actor A;
00009		local float decision;
00010	
00011		decision = FRand();
00012		if (decision<0.2) 
00013			PlaySound(sound'ricochet',, 1,,1200, 0.5+FRand());		
00014		else if ( decision < 0.4 )
00015			PlaySound(sound'Impact1',, 3.0,,800);
00016		else if ( decision < 0.6 )
00017			PlaySound(sound'Impact2',, 3.0,,800);
00018	
00019		if (FRand()< 0.2) 
00020		{
00021			A = spawn(class'Chip');
00022			if ( A != None )
00023				A.RemoteRole = ROLE_None;
00024		}
00025		if (FRand()< 0.2)
00026		{
00027			A = spawn(class'SmallSpark',,,,Rotation + RotRand());
00028			if ( A != None )
00029				A.RemoteRole = ROLE_None;
00030		}
00031	}
00032	
00033	defaultproperties
00034	{
00035	}

End Source Code