Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UnrealShare.TeleportEffect


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
//=============================================================================
// TeleportEffect.
//=============================================================================
class TeleportEffect expands Effects;

#exec AUDIO IMPORT FILE="Sounds\Translocator\resp2A.wav" NAME="Resp2A" GROUP="Translocator"

simulated function PostBeginPlay()
{
	PlayAnim('Burst', 0.6);
	PlaySound (EffectSound1);
	MakeNoise(1.0);
	if ( Level.NetMode != NM_DedicatedServer )
	{
		DrawScale = 1;
		if ( Pawn(Owner)!=None )
			SetTeamColor(Pawn(Owner).GetTeamNum());
	}
}
simulated function Tick( float DeltaTime )
{
	if ( Level.NetMode != NM_DedicatedServer )
	{
		ScaleGlow = (Lifespan/Default.Lifespan);
		AmbientGlow = ScaleGlow * 255;
	}
}
simulated function PostNetReceive()
{
	if ( Pawn(Owner)!=None )
	{
		bNetNotify = false;
		SetTeamColor(Pawn(Owner).GetTeamNum());
	}
}
simulated function SetTeamColor( byte TeamNum )
{
	if ( TeamNum<4 )
		ActorGUnlitColor = Class'UnrealHUD'.Default.TeamColor[TeamNum];
}

defaultproperties
{
				EffectSound1=Sound'UnrealShare.Translocator.Resp2A'
				bNetNotify=True
				Physics=PHYS_Trailer
				RemoteRole=ROLE_SimulatedProxy
				LifeSpan=0.500000
				DrawType=DT_Mesh
				Style=STY_Translucent
				Texture=Texture'UnrealShare.Effects.T_PStar'
				Mesh=LodMesh'UnrealShare.TeleEffect3'
				DrawScale=0.500000
				bParticles=True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: zo 11-11-2012 21:10:28.000 - Creation time: zo 11-11-2012 21:14:20.553 - Created with UnCodeX