Botpack
Class TranslocOutEffect

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

class TranslocOutEffect
extends Engine.Effects

//============================================================================= // TranslocOutEffect. //=============================================================================
States
Explode

Function Summary
 
simulated
PostBeginPlay()


State Explode Function Summary



Source Code


00001	//=============================================================================
00002	// TranslocOutEffect.
00003	//=============================================================================
00004	class TranslocOutEffect extends Effects;
00005	
00006	#exec TEXTURE IMPORT NAME=TPEffect FILE=MODELS\Teleport.PCX GROUP="Skins"
00007	
00008	simulated function PostBeginPlay()
00009	{
00010		Super.PostBeginPlay();
00011		if ( Level.bDropDetail )
00012		{
00013			LightType = LT_None;
00014			LifeSpan *= 0.7;
00015		}
00016	}
00017	
00018	auto state Explode
00019	{
00020		simulated function Tick(float DeltaTime)
00021		{
00022			if ( Level.NetMode == NM_DedicatedServer )
00023			{
00024				Disable('Tick');
00025				return;
00026			}
00027			ScaleGlow = Lifespan;
00028			DrawScale = 0.1 + 0.2 * (Scaleglow);	
00029			LightBrightness = (ScaleGlow) * 210.0;
00030			if ( LifeSpan < 0.3 )
00031				SetPhysics(PHYS_Projectile);
00032		}
00033	}
00034	
00035	defaultproperties
00036	{
00037	     RemoteRole=ROLE_SimulatedProxy
00038	     LifeSpan=1.000000
00039	     AnimSequence=All
00040	     DrawType=DT_Mesh
00041	     Style=STY_Translucent
00042	     Texture=Texture'Botpack.Skins.TPEffect'
00043	     DrawScale=0.600000
00044	     bParticles=True
00045	     bMeshEnviroMap=True
00046	     LightType=LT_Pulse
00047	     LightEffect=LE_NonIncidence
00048	     LightBrightness=255
00049	     LightHue=170
00050	     LightSaturation=96
00051	     LightRadius=6
00052	}

End Source Code