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

UnrealShare.KraalScorch


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
00057
00058
00059
00060
00061
00062
00063
00064
00065
//=============================================================================
// Decal support for Unreal by Smirftsch. Partially ported from UT
// KraalScorch added for a BoltScorch decal
// usage:
// if the class uses the explode function (such as Rockets) : add in the selected class
// ExplosionDecal=class'Unrealshare.KraalScorch' into the default properties (DispersionAmmo)
// otherwise put in a function like HitWall:
// if ( Level.NetMode != NM_DedicatedServer )
//		Spawn(class'KraalScorch',,,Location, rotator(HitNormal));
//=============================================================================


class KraalScorch expands EnergyImpact;

#exec TEXTURE IMPORT NAME=boltmark FILE=Textures\Decals\kraalbolt1_g.pcx LODSET=2
#exec TEXTURE IMPORT NAME=boltmark2 FILE=Textures\Decals\kraalbolt2_g.pcx LODSET=2
#exec TEXTURE IMPORT NAME=boltmark3 FILE=Textures\Decals\kraalbolt3_g.pcx LODSET=2
#exec TEXTURE IMPORT NAME=boltmark4 FILE=Textures\Decals\kraalbolt4_g.pcx LODSET=2
#exec TEXTURE IMPORT NAME=boltmark5 FILE=Textures\Decals\kraalbolt5_g.pcx LODSET=2
#exec TEXTURE IMPORT NAME=boltmark6 FILE=Textures\Decals\kraalbolt6_g.pcx LODSET=2

simulated function BeginPlay()
{
	local float f;
	f = FRand();

	if (f<0.166)		Texture = texture'Unrealshare.boltmark';
	else if (f<0.333)	Texture = texture'Unrealshare.boltmark2';
	else if (f<0.499)	Texture = texture'Unrealshare.boltmark3';
	else if (f<0.666)	Texture = texture'Unrealshare.boltmark4';
	else if (f<0.833)	Texture = texture'Unrealshare.boltmark5';
	else				Texture = texture'Unrealshare.boltmark6';		
}

simulated function Timer()
{
	// Check for nearby players, if none then destroy self

	if ( !bAttached )
	{
		Destroy();
		return;
	}

	if ( !bStartedLife )
	{
		RemoteRole = ROLE_None;
		bStartedLife = true;
		if ( Level.bDropDetail )
			SetTimer(3, false);
		else
			SetTimer(4, false);
		return;
	}
	Destroy();
}

defaultproperties
{
				bImportant=False
				MultiDecalLevel=0
				Texture=Texture'UnrealShare.boltmark'
				DrawScale=0.200000
}

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