RuneI
Class EnergyBall

source: c:\runehov\RuneI\Classes\EnergyBall.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Projectile
         |
         +--RuneI.EnergyBall
Direct Known Subclasses:None

class EnergyBall
extends Engine.Projectile

//============================================================================= // EnergyBall. //=============================================================================

Function Summary
 
simulated
Explode(vector HitLocation, vector HitNormal)
 
simulated
Landed(vector HitNormal, Actor HitActor)
 
simulated
ProcessTouch(Actor Other, Vector HitLocation)



Source Code


00001	//=============================================================================
00002	// EnergyBall.
00003	//=============================================================================
00004	class EnergyBall expands Projectile;
00005	
00006	
00007	
00008	simulated function ProcessTouch(Actor Other, Vector HitLocation)
00009	{
00010		Other.JointDamaged(Damage, Instigator, HitLocation, MomentumTransfer*Normal(Velocity), MyDamageType, 0);
00011		Explode(HitLocation, -Normal(Velocity));
00012	}
00013	
00014	simulated function Landed(vector HitNormal, actor HitActor)
00015	{
00016		Explode(Location, HitNormal);
00017	}
00018	
00019	simulated function Explode(vector HitLocation, vector HitNormal)
00020	{
00021		Destroy();
00022	}
00023	
00024	defaultproperties
00025	{
00026	     MaxSpeed=10000.000000
00027	     Damage=20.000000
00028	     MyDamageType=Blunt
00029	     DrawType=DT_Sprite
00030	     Style=STY_Translucent
00031	     Texture=FireTexture'RuneFX.DarkDwarfEnergyBall'
00032	     DrawScale=0.750000
00033	     ScaleGlow=2.000000
00034	     AmbientGlow=50
00035	     CollisionRadius=20.000000
00036	     CollisionHeight=20.000000
00037	}

End Source Code