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

Engine.WarpZoneMarker


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
00063
00064
00065
00066
00067
//=============================================================================
// WarpZoneMarker.
//=============================================================================
class WarpZoneMarker expands NavigationPoint
    intrinsic;

var WarpZoneInfo markedWarpZone;

// AI related
var Actor TriggerActor;     //used to tell AI how to trigger me
var Actor TriggerActor2;

function PostBeginPlay()
{
    if ( markedWarpZone.numDestinations > 1 )
        FindTriggerActor();
    Super.PostBeginPlay();
}

function FindTriggerActor()
{
    local ZoneTrigger Z;
    ForEach AllActors(class 'ZoneTrigger', Z)
        if ( Z.Event == markedWarpZone.ZoneTag)
        {
            TriggerActor = Z;
            return;
        } 
}

/* SpecialHandling is called by the navigation code when the next path has been found.  
It gives that path an opportunity to modify the result based on any special considerations
*/

/* FIXME - how to figure out if other side actor is OK and use intelligently for all dests? 
*/
function Actor SpecialHandling(Pawn Other)
{
    if (Other.Region.Zone == markedWarpZone)
        markedWarpZone.ActorEntered(Other);
    return self;
}
/*  if ( markedWarpZone.numDestinations <= 1 )
        return self;
    
    if ( markedWarpZone.OtherSideActor is OK )
        return self;
            
    if (TriggerActor == None)
    {
        FindTriggerActor();
        if (TriggerActor == None)
            return None;
    }
    
    return TriggerActor;            
}    
*/

defaultproperties
{
     bHiddenEd=True
     bCollideWhenPlacing=False
     CollisionRadius=20.000000
     CollisionHeight=40.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 21/2/2010 23:48:40.000 - Creation time: Sun 21/2/2010 23:49:54.395 - Created with UnCodeX