Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# Engine.LiftExit

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
00059
00060
00061
00062

    //=============================================================================
    // LiftExit.
    //=============================================================================
    class LiftExit extends NavigationPoint
    	placeable
    	native;

    var() name LiftTag;
    var	Mover MyLift;
    var() byte SuggestedKeyFrame;	// mover keyframe associated with this exit - optional
    var byte KeyFrame;

    #if !IG_TRIBES3	// david: DLB Controller clean pass: removed AI logic
    event bool SuggestMovePreparation(Pawn Other)
    {
    	local Controller C;

    	if ( (MyLift == None) || (Other.Controller == None) )
    		return false;
    	if ( Other.Physics == PHYS_Flying )
    	{
    		if ( Other.AirSpeed > 0 )
    			Other.Controller.MoveTimer = 2+ VSize(Location - Other.Location)/Other.AirSpeed;
    		return false;
    	}
    	if ( (Other.Base == MyLift)
    			|| ((LiftCenter(Other.Anchor) != None) && (LiftCenter(Other.Anchor).MyLift == MyLift)
    				&& (Other.ReachedDestination(Other.Anchor))) )
    	{
    		// if pawn is on the lift, see if it can get off and go to this lift exit
    		if ( (Location.Z < Other.Location.Z + Other.CollisionHeight)
    			 && Other.LineOfSightTo(self) )
    			return false;

    		// make pawn wait on the lift
    		Other.DesiredRotation = rotator(Location - Other.Location);
    		Other.Controller.WaitForMover(MyLift);
    		return true;
    	}
    	else
    	{
    		for ( C=Level.ControllerList; C!=None; C=C.nextController )
    			if ( (C.Pawn != None) && (C.PendingMover == MyLift) && C.SameTeamAs(Other.Controller) && C.Pawn.ReachedDestination(self) )
    			{
    				Other.DesiredRotation = rotator(Location - Other.Location);
    				Other.Controller.WaitForMover(MyLift);
    				return true;
    			}
    	}
    	return false;
    }
    #endif

    defaultproperties
    {
    	Texture=Texture'Engine_res.S_LiftExit'
    	SuggestedKeyFrame=255
    	bSpecialMove=true
    	bNeverUseStrafing=true
    	bForceNoStrafing=true
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: ne 5.9.2004 16:01:26.000 - Creation time: st 23.5.2018 00:10:45.012 - Created with UnCodeX