Core.Object | +--Engine.Actor | +--Engine.Effects | +--UnrealShare.RingExplosion | +--UnrealShare.RingExplosion4
vector
MoveAmount
int
NumPuffs
numwaits
simulated
PostBeginPlay()
Tick(float DeltaTime)
Timer()
00001 //============================================================================= 00002 // RingExplosion4. 00003 //============================================================================= 00004 class RingExplosion4 extends RingExplosion; 00005 00006 00007 var vector MoveAmount; 00008 var int NumPuffs; 00009 var int numwaits; 00010 00011 replication 00012 { 00013 // Things the server should send to the client. 00014 unreliable if( Role==ROLE_Authority ) 00015 MoveAmount, NumPuffs; 00016 } 00017 00018 simulated function Tick( float DeltaTime ) 00019 { 00020 if ( Level.NetMode != NM_DedicatedServer ) 00021 { 00022 ScaleGlow = (Lifespan/Default.Lifespan)*1.2; 00023 AmbientGlow = ScaleGlow * 210; 00024 } 00025 } 00026 00027 00028 simulated function PostBeginPlay() 00029 { 00030 if ( Level.NetMode != NM_DedicatedServer ) 00031 { 00032 PlayAnim ( 'Explosion', 0.1 ); 00033 SetTimer(0.06, false); 00034 } 00035 } 00036 00037 simulated function Timer() 00038 { 00039 local RingExplosion4 r; 00040 00041 //log(self$" timer "$Level.TimeSeconds$" role "$Role$" Location "$Location$" rot "$Rotation$" numpuffs "$numpuffs); 00042 00043 //log("self lifespan "$lifespan); 00044 00045 if (NumPuffs>0) 00046 { 00047 r = Spawn(class'RingExplosion4',,,Location+MoveAmount); 00048 r.RemoteRole = ROLE_None; 00049 r.NumPuffs = NumPuffs -1; 00050 r.MoveAmount = MoveAmount; 00051 } 00052 } 00053 00054 defaultproperties 00055 { 00056 LifeSpan=0.400000 00057 DrawScale=0.200000 00058 }