mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-09-01 15:09:19 +00:00
upload "kind" alien swarm
This commit is contained in:
+25
-15
@@ -1,4 +1,4 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
@@ -101,6 +101,15 @@ enum AI_NavGoalFlags_t
|
||||
// If navigating on a designer placed path, don't use pathfinder between waypoints, just do it
|
||||
AIN_NO_PATHCORNER_PATHFINDING = 0x04,
|
||||
|
||||
// Succeed if we can arrive within tolerance
|
||||
AIN_LOCAL_SUCCEEED_ON_WITHIN_TOLERANCE = 0x08,
|
||||
|
||||
// Skip local navigation
|
||||
AIN_NO_LOCAL_NAVIGATION = 0x10,
|
||||
|
||||
// Path can be an unlimited distance away
|
||||
AIN_UNLIMITED_DISTANCE = 0x20,
|
||||
|
||||
AIN_DEF_FLAGS = 0,
|
||||
};
|
||||
|
||||
@@ -225,16 +234,16 @@ struct AI_NavGoal_t
|
||||
|
||||
struct AI_ProgressFlyPathParams_t
|
||||
{
|
||||
AI_ProgressFlyPathParams_t( unsigned _collisionMask,
|
||||
float _strictPointTolerance = 32.0, float _blockTolerance = 0.0,
|
||||
float _waypointTolerance = 100, float _goalTolerance = 12,
|
||||
AI_NpcBlockHandling_t _blockHandling = AISF_BLOCK )
|
||||
: collisionMask( _collisionMask ),
|
||||
strictPointTolerance( _strictPointTolerance ),
|
||||
blockTolerance( _blockTolerance ),
|
||||
waypointTolerance( _waypointTolerance ),
|
||||
goalTolerance( _goalTolerance ),
|
||||
blockHandling( _blockHandling ),
|
||||
AI_ProgressFlyPathParams_t( unsigned collisionMask,
|
||||
float strictPointTolerance = 32.0, float blockTolerance = 0.0,
|
||||
float waypointTolerance = 100, float goalTolerance = 12,
|
||||
AI_NpcBlockHandling_t blockHandling = AISF_BLOCK )
|
||||
: collisionMask( collisionMask ),
|
||||
strictPointTolerance( strictPointTolerance ),
|
||||
blockTolerance( blockTolerance ),
|
||||
waypointTolerance( waypointTolerance ),
|
||||
goalTolerance( goalTolerance ),
|
||||
blockHandling( blockHandling ),
|
||||
pTarget( NULL ),
|
||||
bTrySimplify( true )
|
||||
{
|
||||
@@ -286,7 +295,6 @@ public:
|
||||
void SetPathcornerPathfinding( bool fNewVal) { m_bNoPathcornerPathfinds = !fNewVal; }
|
||||
void SetRememberStaleNodes( bool fNewVal) { m_fRememberStaleNodes = fNewVal; }
|
||||
void SetValidateActivitySpeed( bool bValidateActivitySpeed ) { m_bValidateActivitySpeed = bValidateActivitySpeed; }
|
||||
void SetLocalSucceedOnWithinTolerance( bool fNewVal ) { m_bLocalSucceedOnWithinTolerance = fNewVal; }
|
||||
|
||||
// --------------------------------
|
||||
|
||||
@@ -358,6 +366,7 @@ public:
|
||||
int GetCurWaypointFlags() const;
|
||||
|
||||
bool CurWaypointIsGoal() const;
|
||||
bool CurWaypointRequiresPreciseMovement() const;
|
||||
|
||||
bool GetPointAlongPath( Vector *pResult, float distance, bool fReducibleOnly = false );
|
||||
|
||||
@@ -444,6 +453,7 @@ public:
|
||||
|
||||
// See comments at CAI_BaseNPC::Move()
|
||||
virtual bool Move( float flInterval = 0.1 );
|
||||
virtual bool ShouldMove( bool bHasAGoal );
|
||||
|
||||
// --------------------------------
|
||||
|
||||
@@ -488,6 +498,7 @@ protected:
|
||||
virtual AIMoveResult_t MoveNormal();
|
||||
|
||||
// Navigation execution
|
||||
virtual AIMoveResult_t MoveCrawl();
|
||||
virtual AIMoveResult_t MoveClimb();
|
||||
virtual AIMoveResult_t MoveJump();
|
||||
|
||||
@@ -540,7 +551,7 @@ private:
|
||||
bool DoFindPathToPathcorner( CBaseEntity *pPathCorner );
|
||||
|
||||
protected:
|
||||
virtual bool DoFindPathToPos(void);
|
||||
virtual bool DoFindPathToPos( );
|
||||
virtual bool ShouldOptimizeInitialPathSegment( AI_Waypoint_t * ) { return true; }
|
||||
|
||||
private:
|
||||
@@ -549,11 +560,11 @@ private:
|
||||
|
||||
protected:
|
||||
virtual bool GetStoppingPath( CAI_WaypointList *pClippedWaypoints );
|
||||
virtual bool MarkCurWaypointFailedLink( void ); // Call when route fails
|
||||
|
||||
private:
|
||||
bool FindPath( const AI_NavGoal_t &goal, unsigned flags );
|
||||
bool FindPath( bool fSignalTaskStatus = true, bool bDontIgnoreBadLinks = false );
|
||||
bool MarkCurWaypointFailedLink( void ); // Call when route fails
|
||||
|
||||
struct SimplifyForwardScanParams
|
||||
{
|
||||
@@ -620,7 +631,6 @@ private:
|
||||
|
||||
bool m_fRememberStaleNodes;
|
||||
bool m_bNoPathcornerPathfinds;
|
||||
bool m_bLocalSucceedOnWithinTolerance;
|
||||
|
||||
// --------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user