Core.Object | +--Engine.Actor | +--Engine.ParticleSystem | +--RuneI.RuneSpheres | +--RuneI.RuneSpheresPower2
simulated
Tick(float DeltaTime)
00001 //============================================================================= 00002 // RuneSpheresPower2. 00003 //============================================================================= 00004 class RuneSpheresPower2 expands RuneSpheres; 00005 00006 simulated function Tick(float DeltaTime) 00007 { 00008 local int i; 00009 00010 ElapsedTime += DeltaTime; 00011 for (i=0; i<ParticleCount; i++) 00012 { 00013 ParticleArray[i].Location = Location + 00014 (vect(1,0,0) * Sin(ElapsedTime*(i+0.2)) * MaxDeviation) + 00015 (vect(0,1,0) * Cos(ElapsedTime*(i+0.2)) * MaxDeviation); 00016 } 00017 } 00018 00019 defaultproperties 00020 { 00021 ParticleTexture(0)=Texture'RuneFX.SparkGold2' 00022 }