mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Added new NPC climbing activities and improved climbing navigation AI
This commit is contained in:
@@ -2371,6 +2371,15 @@ void ActivityList_RegisterSharedActivities( void )
|
||||
REGISTER_SHARED_ACTIVITY( ACT_DISARM_RIFLE );
|
||||
#endif
|
||||
|
||||
#ifdef EXPANDED_NAVIGATION_ACTIVITIES
|
||||
REGISTER_SHARED_ACTIVITY( ACT_CLIMB_ALL );
|
||||
REGISTER_SHARED_ACTIVITY( ACT_CLIMB_IDLE );
|
||||
|
||||
REGISTER_SHARED_ACTIVITY( ACT_CLIMB_MOUNT_TOP );
|
||||
REGISTER_SHARED_ACTIVITY( ACT_CLIMB_MOUNT_BOTTOM );
|
||||
REGISTER_SHARED_ACTIVITY( ACT_CLIMB_DISMOUNT_BOTTOM );
|
||||
#endif
|
||||
|
||||
AssertMsg( g_HighestActivity == LAST_SHARED_ACTIVITY - 1, "Not all activities from ai_activity.h registered in activitylist.cpp" );
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,10 @@
|
||||
// This enables a bunch of new activities for Half-Life 2 weapons, including new 357 animations and readiness activities for pistols.
|
||||
#define EXPANDED_HL2_WEAPON_ACTIVITIES 1
|
||||
|
||||
// EXPANDED NAVIGATION ACTIVITIES
|
||||
// This enables some new navigation-related activities.
|
||||
#define EXPANDED_NAVIGATION_ACTIVITIES 1
|
||||
|
||||
#endif
|
||||
|
||||
#define ACTIVITY_NOT_AVAILABLE -1
|
||||
@@ -2243,6 +2247,15 @@ typedef enum
|
||||
ACT_DISARM_RIFLE,
|
||||
#endif
|
||||
|
||||
#ifdef EXPANDED_NAVIGATION_ACTIVITIES
|
||||
ACT_CLIMB_ALL, // An actual blend animation which uses pose parameters for direction
|
||||
ACT_CLIMB_IDLE,
|
||||
|
||||
ACT_CLIMB_MOUNT_TOP,
|
||||
ACT_CLIMB_MOUNT_BOTTOM,
|
||||
ACT_CLIMB_DISMOUNT_BOTTOM,
|
||||
#endif
|
||||
|
||||
// this is the end of the global activities, private per-monster activities start here.
|
||||
LAST_SHARED_ACTIVITY,
|
||||
} Activity;
|
||||
|
||||
Reference in New Issue
Block a user