RuneI
Class Sigil

source: c:\runehov\RuneI\Classes\Sigil.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Effects
         |
         +--RuneI.Sigil
Direct Known Subclasses:SigilFlameSword, SigilLightningSword

class Sigil
extends Engine.Effects

//============================================================================= // Sigil. // // Sigils are simply a flash graphic that appears whenever a weapon is powered up //=============================================================================

Function Summary
 
simulated
SigilRemove()
 
simulated
Tick(float DeltaTime)



Source Code


00001	//=============================================================================
00002	// Sigil.
00003	//
00004	// Sigils are simply a flash graphic that appears whenever a weapon is powered up
00005	//=============================================================================
00006	class Sigil expands Effects;
00007	
00008	simulated function SigilRemove()
00009	{
00010		Destroy();
00011	}
00012	
00013	simulated function Tick(float DeltaTime)
00014	{
00015		local actor fire;
00016		DrawScale += DeltaTime * 1.5;
00017		
00018		// Fade out
00019		ScaleGlow -= DeltaTime * 3;
00020		if(ScaleGlow <= 0)
00021		{
00022			Owner.DetachActorFromJoint(1);
00023			SigilRemove();
00024		}
00025	}
00026	
00027	defaultproperties
00028	{
00029	     DrawType=DT_Sprite
00030	     Style=STY_Translucent
00031	     Texture=Texture'RuneFX.SigilFire'
00032	     DrawScale=0.100000
00033	     ScaleGlow=2.000000
00034	     SpriteProjForward=5.000000
00035	}

End Source Code