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

U2AI.JumpSpot


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
//=============================================================================
// JumpSpot.
//
// Specifies positions that can be reached in jumpmatch or with jumpboots or 
// translocator
//=============================================================================
class JumpSpot extends LiftCenter;

var() bool bAlwaysAccel;
var U2NPCController PendingBot;

event int SpecialCost( Pawn Seeker )
{
	local U2NPCController B;

	B = U2NPCController(Seeker.Controller);
	if ( B == None )
		return 100000000;
		
	if ( (Seeker.JumpZ > 1.5 * Seeker.default.JumpZ) 
		|| (Seeker.PhysicsVolume.Gravity.Z >= 0.8 * Seeker.PhysicsVolume.default.Gravity.Z) )
		return 300;

	return 100000000;
}

//-----------------------------------------------------------------------------

event bool SuggestMovePreparation( Pawn Other )
{
	local U2NPCController B;

	B = U2NPCController(Other.Controller);
	if ( B == None )
		return false;

	if ( (VSize(Location - Other.Location) < 200) 
		 && (Abs(Location.Z - Other.Location.Z) < Other.CollisionHeight) )
		return false;

	if ( (Other.JumpZ <= 1.5 * Other.default.JumpZ) && (Other.PhysicsVolume.Gravity.Z < 0.8 * Other.PhysicsVolume.default.Gravity.Z) )
		return false;

	B.BigJump( Self );

	return false;
}

//-----------------------------------------------------------------------------

defaultproperties
{
	bSpecialCost=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:44.000 - Creation time: sk 3-1-2016 10:48:39.680 - Created with UnCodeX