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

UnrealI.TarZone


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

#exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\Generic\GoopE1.WAV" NAME="LavaEx" GROUP="Generic"
#exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\Generic\GoopJ1.WAV" NAME="LavaEn" GROUP="Generic"
//#exec AUDIO IMPORT FILE="Sounds\Generic\uGoop1.WAV" NAME="InGoop" GROUP="Generic"
//	 AmbientSound=InGoop

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

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

defaultproperties
{
     ZoneFluidFriction=4.000000
     ZoneTerminalVelocity=250.000000
     EntrySound=Sound'UnrealShare.Generic.LavaEn'
     ExitSound=Sound'UnrealShare.Generic.LavaEx'
     bWaterZone=True
     ViewFlash=(X=-0.390000,Y=-0.390000,Z=-0.390000)
     ViewFog=(X=0.312500,Y=0.312500,Z=0.234375)
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 13:27:50.000 - Creation time: za 22-4-2006 13:29:30.906 - Created with UnCodeX