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
00068
00069
00070
//=============================================================================
// WarpZoneMarker.
//=============================================================================
class WarpZoneMarker extends NavigationPoint
	native;

var WarpZoneInfo markedWarpZone;

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

event 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? 
*/
event 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=false
	bHiddenEd=true
     UseReticleOnEvents(0)="UseReticleText"
     UseReticleOnEvents(1)="UseReticleCorners"
     UseReticleOnEvents(2)="UseReticleTopBars"
     ProximityReticleOnEvents(0)="ProximityReticleCorners"
     ProximityReticleOnEvents(1)="ProximityReticleTopBars"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: sk 3-1-2016 10:38:40.000 - Creation time: sk 3-1-2016 10:48:43.792 - Created with UnCodeX