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

UnrealShare.Spark3


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
//=============================================================================
// Spark3.
//=============================================================================
class Spark3 extends SmallSpark;

#exec MESH IMPORT MESH=Spark3M ANIVFILE=Models\Spark3_a.3d DATAFILE=Models\Spark3_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=Spark3M X=0 Y=0 Z=0 PITCH=-64
#exec MESH SEQUENCE MESH=Spark3M SEQ=All       STARTFRAME=0   NUMFRAMES=2
#exec MESH SEQUENCE MESH=Spark3M SEQ=Explosion STARTFRAME=0   NUMFRAMES=2
#exec  OBJ LOAD FILE=Textures\fireeffect1.utx PACKAGE=UnrealShare.Effect1
#exec TEXTURE IMPORT NAME=JSmlSpark1 FILE=Models\Spark.pcx GROUP=Skins
#exec MESHMAP SCALE MESHMAP=Spark3M X=0.06 Y=0.06 Z=0.12

simulated function Tick(float DeltaTime)
{
	if ( Level.NetMode != NM_DedicatedServer )
	{
		ScaleGlow = LifeSpan / Default.LifeSpan;
		AmbientGlow = ScaleGlow * 255;
	}
}

simulated function PostBeginPlay()
{
	local rotator NewRotation;

	NewRotation = Rotation;
	NewRotation.Pitch = FRand()*65535;
	PlayAnim  ( 'Explosion', 0.09 );
	PlaySound (EffectSound1);
	SetRotation(NewRotation);
}

defaultproperties
{
				LifeSpan=0.250000
				Style=STY_Translucent
				Texture=FireTexture'UnrealShare.Effect1.FireEffect1u'
				Mesh=LodMesh'UnrealShare.Spark3M'
				DrawScale=0.100000
				bUnlit=False
				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.303 - Created with UnCodeX