Botpack
Class UTSmokeTrail

source: e:\games\UnrealTournament\Botpack\Classes\UTSmokeTrail.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Effects
         |
         +--Botpack.UTSmokeTrail
Direct Known Subclasses:LightSmokeTrail

class UTSmokeTrail
extends Engine.Effects

//============================================================================= // UTSmokeTrail. //=============================================================================
Variables
 int Curr
 int Vert[8]
 bRandomize, bEven


Function Summary
 void PostBeginPlay()
 void Timer()



Source Code


00001	//=============================================================================
00002	// UTSmokeTrail.
00003	//=============================================================================
00004	class UTSmokeTrail extends Effects;
00005	
00006	#exec MESH IMPORT MESH=Smokebm ANIVFILE=MODELS\strail_a.3D DATAFILE=MODELS\strail_d.3D
00007	#exec MESH ORIGIN MESH=Smokebm X=-600 Y=0 Z=0 YAW=128
00008	#exec MESH SEQUENCE MESH=Smokebm SEQ=All       STARTFRAME=0   NUMFRAMES=1
00009	#exec MESHMAP SCALE MESHMAP=Smokebm X=0.1 Y=0.001 Z=0.001
00010	
00011	var int Curr;
00012	var bool bRandomize, bEven;
00013	var int Vert[8];
00014	
00015	function PostBeginPlay()
00016	{
00017		local int i;
00018		Super.PostBeginPlay();
00019		SetTimer(1.4, false);
00020		if ( bRandomize && (FRand() < 0.4) )
00021			MultiSkins[5 + Rand(2)] = Texture'Botpack.utsmoke.us3_a00';
00022		
00023	}
00024	
00025	function Timer()
00026	{
00027		if ( Curr >= 0 )
00028		{
00029			MultiSkins[Vert[Curr]] = None;
00030			Curr--;
00031			if ( Curr >= 0 )
00032				SetTimer(0.025, false);
00033		}
00034	}
00035	
00036	defaultproperties
00037	{
00038	     Curr=7
00039	     bRandomize=True
00040	     Vert(0)=1
00041	     Vert(1)=7
00042	     Vert(2)=3
00043	     Vert(3)=6
00044	     Vert(4)=2
00045	     Vert(5)=5
00046	     Vert(7)=4
00047	     Physics=PHYS_Projectile
00048	     RemoteRole=ROLE_None
00049	     LifeSpan=1.600000
00050	     Velocity=(Z=50.000000)
00051	     DrawType=DT_Mesh
00052	     Style=STY_Translucent
00053	     Texture=Texture'Botpack.utsmoke.us1_a00'
00054	     Mesh=LodMesh'Botpack.Smokebm'
00055	     DrawScale=2.000000
00056	     ScaleGlow=0.800000
00057	     bUnlit=True
00058	     bParticles=True
00059	     bRandomFrame=True
00060	     MultiSkins(0)=Texture'Botpack.utsmoke.us8_a00'
00061	     MultiSkins(1)=Texture'Botpack.utsmoke.US3_A00'
00062	     MultiSkins(2)=Texture'Botpack.utsmoke.us8_a00'
00063	     MultiSkins(3)=Texture'Botpack.utsmoke.us2_a00'
00064	     MultiSkins(4)=Texture'Botpack.utsmoke.us1_a00'
00065	     MultiSkins(5)=Texture'Botpack.utsmoke.us2_a00'
00066	     MultiSkins(6)=Texture'Botpack.utsmoke.us1_a00'
00067	     MultiSkins(7)=Texture'Botpack.utsmoke.us8_a00'
00068	}

End Source Code