home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Engine
/
Classes
/
Ladder.uc
< prev
next >
Wrap
Text File
|
2003-06-23
|
1KB
|
42 lines
/*=============================================================================
// Ladders are associated with the LadderVolume that encompasses them, and provide AI navigation
// support for ladder volumes. Direction should be the direction that climbing pawns
// should face
============================================================================= */
class Ladder extends SmallNavigationPoint
placeable
native;
#exec Texture Import File=Textures\Ladder.pcx Name=S_Ladder Mips=Off MASKED=1
var LadderVolume MyLadder;
var Ladder LadderList;
/*
Check if ladder is already occupied
*/
event bool SuggestMovePreparation(Pawn Other)
{
if ( MyLadder == None )
return false;
if ( !MyLadder.InUse(Other) )
{
MyLadder.PendingClimber = Other;
return false;
}
Other.Controller.bPreparingMove = true;
Other.Acceleration = vect(0,0,0);
return true;
}
defaultproperties
{
Texture=S_Ladder
bSpecialMove=true
bNotBased=true
bDirectional=true
}