Core.Object | +--Engine.Actor | +--Engine.Effects | +--RuneI.BloodlustStart | +--RuneI.BloodlustEnd
float
time
simulated
PreBeginPlay()
Tick(float DeltaSeconds)
00001 //============================================================================= 00002 // BloodlustEnd. 00003 //============================================================================= 00004 class BloodlustEnd expands BloodlustStart; 00005 00006 var float time; 00007 00008 simulated function PreBeginPlay() 00009 { 00010 Enable('Tick'); 00011 DesiredColorAdjust.X = 64; 00012 ScaleGlow = 0.75; 00013 time = 0.75; 00014 } 00015 00016 simulated function Tick(float DeltaSeconds) 00017 { 00018 local vector newLoc; 00019 00020 DrawScale += time * 0.1; 00021 ScaleGlow = time; 00022 00023 AnimSequence = Owner.AnimSequence; 00024 AnimFrame = Owner.AnimFrame; 00025 00026 SetLocation(Owner.Location); 00027 SetRotation(Owner.Rotation); 00028 00029 time -= DeltaSeconds; 00030 if(time <= 0.25) 00031 DesiredColorAdjust.X = 0; 00032 00033 if(time <= 0) 00034 Destroy(); 00035 } 00036 00037 defaultproperties 00038 { 00039 }