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
//=============================================================================
// WarpZoneMarker.
//=============================================================================
class WarpZoneMarker extends SmallNavigationPoint
    native;

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
{
     bCollideWhenPlacing=Falsch
     bHiddenEd=Wahr
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:36.000 - Creation time: Mo 16.4.2007 11:20:57.359 - Created with UnCodeX