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

UnrealShare.DirectionalBlast


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
//=============================================================================
// Decal support for Unreal by Smirftsch. Partially ported from UT
// DirectionalBlast added for a DirectionalBlast decal when using FlakShell
// usage example in FlakShell.uc
// "var vector initialDir;" is needed
// and check:
// simulated function PostBeginPlay()
// function Landed( vector HitNormal )
// simulated function HitWall (vector HitNormal, actor Wall)
// simulated function Timer()
//=============================================================================

class DirectionalBlast expands Scorch;

#exec TEXTURE IMPORT NAME=directionalblast FILE=Textures\Decals\Blast2-S.pcx LODSET=2

simulated event BeginPlay()
{
	SetTimer(1.0, false);
}

simulated function AttachToSurface()
{
}

simulated function DirectionalAttach(vector Dir, vector Norm)
{
	SetRotation(rotator(Norm));
	if ( AttachDecal(100, Dir) == None )	// trace 100 units ahead in direction of current rotation
	{
		//Log("Couldn't set decal to surface");
		Destroy();
	}
}

defaultproperties
{
				Texture=Texture'UnrealShare.DirectionalBlast'
				DrawScale=1.300000
}

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:18.303 - Created with UnCodeX