Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 |
/** * This constraint is to make path searches be biased against choosing in the same set polys over and over. * For Example: if we spawn in place a b c we do not want to spawn there again if there is a place d that matches * our criteria for spawning of guys. We often use this for determining places that No One Has Spawned Near Here Before. * * * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. */ class NavMeshPath_BiasAgainstPolysWithinDistanceOfLocations extends NavMeshPathConstraint native; /** Location to compare from **/ var transient vector Location; var transient vector Rotation; /** How far we want to spawn away from a previous spawn. **/ var transient float DistanceToCheck; /** Set of places we have spawned before **/ var transient array<vector> LocationsToCheck; cpptext { // Interface virtual UBOOL EvaluatePath( FNavMeshEdgeBase* Edge, FNavMeshPolyBase* SrcPoly, FNavMeshPolyBase* DestPoly, const FNavMeshPathParams& PathParams, INT& out_PathCost, INT& out_HeuristicCost, const FVector& EdgePoint ); } static function bool BiasAgainstPolysWithinDistanceOfLocations ( NavigationHandle NavHandle, const vector InLocation, const rotator InRotation, const float InDistanceToCheck, const array<vector> InLocationsToCheck ) { local NavMeshPath_BiasAgainstPolysWithinDistanceOfLocations Con; if( NavHandle != None ) { Con = NavMeshPath_BiasAgainstPolysWithinDistanceOfLocations(NavHandle.CreatePathConstraint(default.class)); if( Con != None ) { Con.Location = InLocation; Con.Rotation = vector(InRotation); Con.DistanceToCheck = InDistanceToCheck; Con.LocationsToCheck = InLocationsToCheck; NavHandle.AddPathConstraint( Con ); return TRUE; } } return FALSE; } function Recycle() { Super.Recycle(); } defaultproperties { } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |