XIII
Class AshTrayFlying

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

class AshTrayFlying
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 AshTrayFlying extends XIIIProjectile;
00005	
00006	//_____________________________________________________________________________
00007	// Set up speed
00008	simulated function PostBeginPlay()
00009	{
00010	    Super.PostBeginPlay();
00011	    Velocity = Vector(Rotation) * Speed;
00012	    RotationRate.Pitch = -80000; // Around Y
00013	    RotationRate.Roll = 10000; // Around Z
00014	    SetTimer(0.5, false);
00015	}
00016	
00017	//_____________________________________________________________________________
00018	simulated function Timer()
00019	{
00020	    SetPhysics(PHYS_Falling);
00021	}
00022	
00023	//_____________________________________________________________________________
00024	simulated function Explode(vector HitLocation, vector HitNormal)
00025	{
00026	    Spawn(class'XIII.DecoBrikImpactEmitter',self,, Location, Rotation);
00027	    PlaySound(hExploSound, 0, 1, 2 );
00028	    Destroy();
00029	}
00030	
00031	
00032	defaultproperties
00033	{
00034	     bSpawnDecal=False
00035	     HitSoundType=5
00036	     hExploSound=Sound'XIIIsound.Items__AshtrayFire.AshtrayFire__hAshtrayExplo'
00037	     StaticMeshName="MeshArmesPickup.cendrier"
00038	     iStunning=1
00039	     Speed=1000.000000
00040	     Damage=50.000000
00041	     MomentumTransfer=10000.000000
00042	     MyDamageType=Class'XIII.DTStunned'
00043	     bBounce=True
00044	     bFixedRotationDir=True
00045	     DrawType=DT_StaticMesh
00046	     LifeSpan=6.000000
00047	}

End Source Code