Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 |
//============================================================================= // SpriteBallExplosion. //============================================================================= class SpriteBallExplosion extends AnimSpriteEffect; #exec TEXTURE IMPORT NAME=ExplosionPal FILE=textures\exppal.pcx GROUP=Effects #exec OBJ LOAD FILE=textures\MainE.utx PACKAGE=UnrealShare.MainEffect #exec AUDIO IMPORT FILE="sounds\flak\expl2.wav" NAME="Explo1" GROUP="General" var int ExpCount; function MakeSound() { PlaySound(EffectSound1,,7.0); } simulated function PostBeginPlay() { if ( Level.NetMode != NM_Client ) MakeSound(); Texture = SpriteAnim[int(FRand()*5)]; if (Level.NetMode==NM_Standalone) SetTimer(0.05+FRand()*0.04,False); Super.PostBeginPlay(); } simulated Function Timer() { local BlackSmoke b; local vector TempVect; ExpCount++; if (FRand()<0.4) { TempVect.X = (FRand()-0.5)*80.0; TempVect.Y = (FRand()-0.5)*80.0; TempVect.Z = (FRand()-0.5)*80.0; Spawn(class'SpriteBallChild',Self, '', Location+TempVect); } if (FRand()<0.3) { TempVect.X = (FRand()-0.5)*60.0; TempVect.Y = (FRand()-0.5)*60.0; TempVect.Z = (FRand()-0.5)*60.0; b = Spawn(class'BlackSmoke',Self, '', Location+TempVect); b.DrawScale = FRand()*2.0+3.5; } if (ExpCount<4) SetTimer(0.05+FRand()*0.05,False); } defaultproperties { SpriteAnim(0)=Texture'UnrealShare.MainEffect.e1_a00' SpriteAnim(1)=Texture'UnrealShare.MainEffect.e2_a00' SpriteAnim(2)=Texture'UnrealShare.MainEffect.e3_a00' SpriteAnim(3)=Texture'UnrealShare.MainEffect.e4_a00' SpriteAnim(4)=Texture'UnrealShare.MainEffect.e5_a00' NumFrames=8 Pause=0.050000 EffectSound1=Sound'UnrealShare.General.Explo1' RemoteRole=ROLE_SimulatedProxy LifeSpan=0.700000 DrawType=DT_SpriteAnimOnce Style=STY_Translucent Texture=Texture'UnrealShare.MainEffect.e1_a00' Skin=Texture'UnrealShare.Effects.ExplosionPal' DrawScale=3.500000 LightType=LT_TexturePaletteOnce LightEffect=LE_NonIncidence LightBrightness=192 LightHue=27 LightSaturation=71 LightRadius=9 bCorona=False } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |