XIII
Class BulletTraces

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

class BulletTraces
extends XIII.XIIIProjectile

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

Function Summary
 
simulated
HitWall(vector HitNormal, Actor Wall)
     
//_____________________________________________________________________________
 
simulated
PostBeginPlay()
     
//_____________________________________________________________________________
// Set up speed
 
simulated
ProcessTouch(Actor Other, Vector HitLocation)
     
//_____________________________________________________________________________
// Override ProcessTouch
 void Touch(Actor Other)
     
//_____________________________________________________________________________
// Touching



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class BulletTraces extends XIIIProjectile;
00005	
00006	//_____________________________________________________________________________
00007	// Set up speed
00008	simulated function PostBeginPlay()
00009	{
00010	    Local rotator R;
00011	
00012	//    Log("--> Spawn projectile"@self); // ::DBUG::
00013	    Super.PostBeginPlay();
00014	
00015	    Velocity = Vector(Rotation) * Speed;
00016	    MyTrail = Spawn(MyTrailClass,self,,Location);
00017	    MyTrail.RibbonColor = MyTrail.default.RibbonColor * fRand();
00018	    MyTrail.Init();
00019	}
00020	
00021	//_____________________________________________________________________________
00022	// Touching
00023	simulated singular function Touch(Actor Other)
00024	{
00025	    return;
00026	}
00027	
00028	//_____________________________________________________________________________
00029	// Override ProcessTouch
00030	simulated function ProcessTouch(Actor Other, Vector HitLocation)
00031	{
00032	    return;
00033	}
00034	
00035	//_____________________________________________________________________________
00036	simulated function HitWall(vector HitNormal, actor Wall)
00037	{
00038	    Velocity = vect(0,0,0);
00039	    Acceleration = vect(0,0,0);
00040	    Speed = 0.0;
00041	  	SetTimer(2.0, false);
00042	}
00043	
00044	//_____________________________________________________________________________
00045	event Timer()
00046	{
00047	    Destroy();
00048	}
00049	
00050	
00051	defaultproperties
00052	{
00053	     bSpawnDecal=False
00054	     MyTrailClass=Class'XIII.BulletTrail'
00055	     Speed=10000.000000
00056	     MaxSpeed=10000.000000
00057	     LifeSpan=1.000000
00058	}

End Source Code