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

UnrealI.NitrogenZone


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
class NitrogenZone extends ZoneInfo;

//#exec AUDIO IMPORT FILE="Sounds\Generic\uLNitro1.wav" NAME="InNitro" GROUP="Generic"
//	AmbientSound=InNitro

// When an actor enters this zone.
event ActorEntered( actor Other )
{
	Super.ActorEntered(Other);
	if ( Other.IsA('Pawn') && Pawn(Other).bIsPlayer )
	{
		Pawn(Other).UnderWaterTime = -1.0;
		Pawn(Other).WaterSpeed *= 2;
	}
}

// When an actor leaves this zone.
event ActorLeaving( actor Other )
{
	Super.ActorLeaving(Other);
	if ( Other.IsA('Pawn') && Pawn(Other).bIsPlayer )
	{
		Pawn(Other).UnderWaterTime = Pawn(Other).Default.UnderWaterTime;
		Pawn(Other).WaterSpeed *= 0.5;
	}
}

defaultproperties
{
				DamagePerSec=20
				DamageType="Frozen"
				bWaterZone=True
				bPainZone=True
				ViewFog=(X=0.011719,Y=0.039063,Z=0.046875)
				EFXAmbients=REVERB_PRESET_DRUGGED
}

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