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

UnrealShare.UnrealBlood


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
//==================================================================================
//  UnrealBlood.
//  heavily modified into unreal 227 by []KAOS[]Casey.
//  Green blood textures provided by Dark-__-Night.:
//==================================================================================
Class UnrealBlood expands Effects config abstract;

var(BloodClient) globalconfig bool bEnableEnhancedBlood; //Enable this for ENHANCED blood.

var bool bGreen;
var int ticknum;
var bool bStopTick;

simulated function PostBeginPlay()
{
	if ( level.netmode != NM_DedicatedServer && !Class'UnrealBlood'.Default.bEnableEnhancedBlood )
		Destroy();
	If( Owner != none && owner.isa('scriptedpawn') && scriptedpawn(owner).default.bGreenBlood )
	Green();
}

simulated function Green()
{
	bGreen=true;
}


simulated function tick(float deltatime)
{
	if (bStopTick)
		return;

	if (ticknum > 3)
		destroy();

	if (owner == none)
		ticknum++;
	else if (owner != none && owner.isa('ScriptedPawn') && ScriptedPawn(Owner).bGreenBlood)
	{
		Green();
		bStopTick=True;
	}
	else if (owner != none && owner.isa('CreatureCarcass') && CreatureCarcass(Owner).bGreenBlood)
	{
		Green();
		bStopTick=True;
	}
	else if (Owner != none)
		bStopTick=True;
}

defaultproperties
{
				bEnableEnhancedBlood=True
				RemoteRole=ROLE_SimulatedProxy
				bGameRelevant=False
}

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