Core.Object | +--Engine.Actor | +--Engine.Effects | +--RuneI.SonicClubEffect
float
Time
simulated
Spawned()
Tick(float DeltaTime)
00001 //============================================================================= 00002 // SonicClubEffect. 00003 //============================================================================= 00004 class SonicClubEffect expands Effects; 00005 00006 const TimeStep = 0.1; 00007 00008 var float Time; 00009 00010 simulated function Spawned() 00011 { 00012 Time = 0; 00013 } 00014 00015 simulated function Tick(float DeltaTime) 00016 { 00017 local float newRadius; 00018 local vector loc; 00019 local rotator rot; 00020 00021 //DrawScale += DeltaTime * DrawScale * 2; 00022 00023 rot = Rotation; 00024 rot.Roll += 50000 * DeltaTime / (DrawScale * 0.25); 00025 SetRotation(rot); 00026 00027 Time += DeltaTime; 00028 /* 00029 while(Time >= TimeStep) 00030 { 00031 Time -= TimeStep; 00032 TexStage++; 00033 if(TexStage >= 7) 00034 { 00035 Destroy(); 00036 return; 00037 } 00038 } 00039 */ 00040 } 00041 00042 defaultproperties 00043 { 00044 RemoteRole=ROLE_SimulatedProxy 00045 DrawType=DT_VerticalSprite 00046 Style=STY_Translucent 00047 Texture=Texture'RuneFX.sonic3' 00048 bUnlit=True 00049 }