XIII
Class PhoneFlying

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

class PhoneFlying
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 PhoneFlying 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.DecoThrowBottleImpactEmitter',self,, Location, Rotation);
00027	    //PlaySound(hExploSound, 0, 1, 2 );
00028	    // declaration from defaut properties
00029	    //    hExploSound=Sound'XIIIsound.Items__BottleFire.BottleFire__hBottleFire'
00030	    Destroy();
00031	}
00032	
00033	
00034	
00035	defaultproperties
00036	{
00037	     bSpawnDecal=False
00038	     HitSoundType=5
00039	     StaticMeshName="Staticbanque.Bphone"
00040	     iStunning=1
00041	     Speed=1000.000000
00042	     Damage=50.000000
00043	     MomentumTransfer=10000.000000
00044	     MyDamageType=Class'XIII.DTStunned'
00045	     bBounce=True
00046	     bFixedRotationDir=True
00047	     DrawType=DT_StaticMesh
00048	     LifeSpan=6.000000
00049	}

End Source Code