XIII
Class ShardFlying

source: C:\XIII\XIII\Classes\ShardFlying.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Projectile
         |
         +--XIII.XIIIProjectile
            |
            +--XIII.ShardFlying
Direct Known Subclasses:None

class ShardFlying
extends XIII.XIIIProjectile

//----------------------------------------------------------- // //-----------------------------------------------------------

Function Summary
 
simulated
Explode(vector HitLocation, vector HitNormal)
 
simulated
PostBeginPlay()
     
//_____________________________________________________________________________
// Set up speed
 
simulated
Timer()
     
//_____________________________________________________________________________



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class ShardFlying extends XIIIProjectile;
00005	
00006	//_____________________________________________________________________________
00007	// Set up speed
00008	simulated function PostBeginPlay()
00009	{
00010	//    local vector X,Y,Z;
00011	
00012	    Super.PostBeginPlay();
00013	    Velocity = Vector(Rotation) * Speed;
00014	    RotationRate.Yaw = 80000;
00015	    SetTimer(0.5, false);
00016	
00017	    if ( Instigator.Base.Velocity == vect(0,0,0) )
00018	    {
00019	      MyTrail = Spawn(MyTrailClass,self,,Location);
00020	      MyTrail.Init();
00021	    }
00022	}
00023	
00024	//_____________________________________________________________________________
00025	simulated function Timer()
00026	{
00027	    SetPhysics(PHYS_Falling);
00028	}
00029	
00030	simulated function Explode(vector HitLocation, vector HitNormal)
00031	{
00032	    Spawn(class'XIII.DecoThrowShardImpactEmitter',self,, Location, Rotation);
00033	    PlaySound(hExploSound, 0, 1, 2 );
00034	    Destroy();
00035	}
00036	
00037	
00038	
00039	defaultproperties
00040	{
00041	     bSpawnDecal=False
00042	     HitSoundType=5
00043	     hExploSound=Sound'XIIIsound.Items__GlassFire.GlassFire__hGlassExplo'
00044	     InHeadClass=Class'XIII.ProjectileInHead'
00045	     MyTrailClass=Class'XIII.GlassShardTrail'
00046	     StaticMeshName="MeshArmesPickup.GlasShard"
00047	     Speed=1000.000000
00048	     Damage=50.000000
00049	     MomentumTransfer=10000.000000
00050	     MyDamageType=Class'XIII.DTBladeCut'
00051	     bBounce=True
00052	     bFixedRotationDir=True
00053	     DrawType=DT_StaticMesh
00054	     LifeSpan=6.000000
00055	}

End Source Code