upload "kind" alien swarm

This commit is contained in:
nillerusr
2023-10-03 17:23:56 +03:00
parent b7bd94c52e
commit 7d3c0d8b5a
4229 changed files with 462900 additions and 495155 deletions
+14 -9
View File
@@ -1,4 +1,4 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
@@ -31,13 +31,17 @@ enum RouteBuildFlags_e
bits_BUILD_JUMP = 0x00000002, //
bits_BUILD_FLY = 0x00000004, //
bits_BUILD_CLIMB = 0x00000008, //
bits_BUILD_GIVEWAY = 0x00000010, //
bits_BUILD_TRIANG = 0x00000020, //
bits_BUILD_IGNORE_NPCS = 0x00000040, // Ignore collisions with NPCs
bits_BUILD_COLLIDE_NPCS = 0x00000080, // Use collisions with NPCs (redundant for argument clarity)
bits_BUILD_GET_CLOSE = 0x00000100, // the route will be built even if it can't reach the destination
bits_BUILD_CRAWL = 0x00000010, //
bits_BUILD_GIVEWAY = 0x00000020, //
bits_BUILD_TRIANG = 0x00000040, //
bits_BUILD_IGNORE_NPCS = 0x00000080, // Ignore collisions with NPCs
bits_BUILD_COLLIDE_NPCS = 0x00000100, // Use collisions with NPCs (redundant for argument clarity)
bits_BUILD_GET_CLOSE = 0x00000200, // the route will be built even if it can't reach the destination
bits_BUILD_NO_LOCAL_NAV = 0x00000400, // No local navigation
bits_BUILD_UNLIMITED_DISTANCE = 0x00000800, // Path can be an unlimited distance away
};
//-----------------------------------------------------------------------------
// CAI_Pathfinder
//
@@ -62,7 +66,7 @@ public:
int NearestNodeToNPC();
int NearestNodeToPoint( const Vector &vecOrigin );
AI_Waypoint_t* FindBestPath (int startID, int endID);
virtual AI_Waypoint_t* FindBestPath (int startID, int endID);
AI_Waypoint_t* FindShortRandomPath (int startID, float minPathLength, const Vector &vDirection = vec3_origin);
// --------------------------------
@@ -71,7 +75,7 @@ public:
// --------------------------------
AI_Waypoint_t *BuildRoute( const Vector &vStart, const Vector &vEnd, CBaseEntity *pTarget, float goalTolerance, Navigation_t curNavType = NAV_NONE, bool bLocalSucceedOnWithinTolerance = false );
AI_Waypoint_t *BuildRoute( const Vector &vStart, const Vector &vEnd, CBaseEntity *pTarget, float goalTolerance, Navigation_t curNavType = NAV_NONE, int nBuildFlags = 0 );
void UnlockRouteNodes( AI_Waypoint_t * );
// --------------------------------
@@ -136,11 +140,12 @@ private:
AI_Waypoint_t *BuildGroundRoute( const Vector &vStart, const Vector &vEnd, CBaseEntity const *pTarget, int endFlags, int nodeID, int buildFlags, float flYaw, float goalTolerance );
AI_Waypoint_t *BuildFlyRoute( const Vector &vStart, const Vector &vEnd, CBaseEntity const *pTarget, int endFlags, int nodeID, int buildFlags, float flYaw, float goalTolerance );
AI_Waypoint_t *BuildCrawlRoute( const Vector &vStart, const Vector &vEnd, CBaseEntity const *pTarget, int endFlags, int nodeID, int buildFlags, float flYaw, float goalTolerance );
AI_Waypoint_t *BuildJumpRoute( const Vector &vStart, const Vector &vEnd, CBaseEntity const *pTarget, int endFlags, int nodeID, int buildFlags, float flYaw );
AI_Waypoint_t *BuildClimbRoute( const Vector &vStart, const Vector &vEnd, CBaseEntity const *pTarget, int endFlags, int nodeID, int buildFlags, float flYaw );
// Computes the link type
Navigation_t ComputeWaypointType( CAI_Node **ppNodes, int parentID, int destID );
Navigation_t ComputeWaypointType( bool *pWantsPreciseMovement, CAI_Node **ppNodes, int parentID, int destID );
// --------------------------------