/*============================================================================= // 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 }