Core.Object | +--Engine.Actor | +--Engine.Effects | +--UnrealShare.AnimSpriteEffect | +--UnrealShare.SpriteBallExplosion
int
ExpCount
void
MakeSound()
simulated
PostBeginPlay()
Timer()
00001 //============================================================================= 00002 // SpriteBallExplosion. 00003 //============================================================================= 00004 class SpriteBallExplosion extends AnimSpriteEffect; 00005 00006 #exec TEXTURE IMPORT NAME=ExplosionPal FILE=textures\exppal.pcx GROUP=Effects 00007 #exec OBJ LOAD FILE=textures\MainE.utx PACKAGE=UnrealShare.MainEffect 00008 00009 #exec AUDIO IMPORT FILE="sounds\flak\expl2.wav" NAME="Explo1" GROUP="General" 00010 00011 var int ExpCount; 00012 00013 function MakeSound() 00014 { 00015 PlaySound(EffectSound1,,7.0); 00016 } 00017 00018 simulated function PostBeginPlay() 00019 { 00020 if ( Level.NetMode != NM_Client ) 00021 MakeSound(); 00022 Texture = SpriteAnim[int(FRand()*5)]; 00023 if (Level.NetMode==NM_Standalone) 00024 SetTimer(0.05+FRand()*0.04,False); 00025 Super.PostBeginPlay(); 00026 } 00027 00028 simulated Function Timer() 00029 { 00030 local BlackSmoke b; 00031 local vector TempVect; 00032 00033 00034 ExpCount++; 00035 if (FRand()<0.4) 00036 { 00037 TempVect.X = (FRand()-0.5)*80.0; 00038 TempVect.Y = (FRand()-0.5)*80.0; 00039 TempVect.Z = (FRand()-0.5)*80.0; 00040 Spawn(class'SpriteBallChild',Self, '', Location+TempVect); 00041 } 00042 00043 if (FRand()<0.3) 00044 { 00045 TempVect.X = (FRand()-0.5)*60.0; 00046 TempVect.Y = (FRand()-0.5)*60.0; 00047 TempVect.Z = (FRand()-0.5)*60.0; 00048 b = Spawn(class'BlackSmoke',Self, '', Location+TempVect); 00049 b.DrawScale = FRand()*2.0+3.5; 00050 } 00051 00052 if (ExpCount<4) SetTimer(0.05+FRand()*0.05,False); 00053 00054 } 00055 00056 defaultproperties 00057 { 00058 SpriteAnim(0)=Texture'UnrealShare.MainEffect.e1_a00' 00059 SpriteAnim(1)=Texture'UnrealShare.MainEffect.e2_a00' 00060 SpriteAnim(2)=Texture'UnrealShare.MainEffect.e3_a00' 00061 SpriteAnim(3)=Texture'UnrealShare.MainEffect.e4_a00' 00062 SpriteAnim(4)=Texture'UnrealShare.MainEffect.e5_a00' 00063 NumFrames=8 00064 Pause=0.050000 00065 EffectSound1=Sound'UnrealShare.General.Explo1' 00066 RemoteRole=ROLE_SimulatedProxy 00067 LifeSpan=0.700000 00068 DrawType=DT_SpriteAnimOnce 00069 Style=STY_Translucent 00070 Texture=Texture'UnrealShare.MainEffect.e1_a00' 00071 Skin=Texture'UnrealShare.Effects.ExplosionPal' 00072 DrawScale=3.500000 00073 LightType=LT_TexturePaletteOnce 00074 LightEffect=LE_NonIncidence 00075 LightBrightness=192 00076 LightHue=27 00077 LightSaturation=71 00078 LightRadius=9 00079 bCorona=False 00080 }