mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-25 22:35:31 +03:00
Added proper NPC melee activities
This commit is contained in:
parent
276d9ff24f
commit
67d5d8b20c
@ -2272,6 +2272,9 @@ void CAI_BaseNPC::InitDefaultActivitySR(void)
|
||||
ADD_ACTIVITY_TO_SR( ACT_RANGE_ATTACK_RPG_LOW );
|
||||
ADD_ACTIVITY_TO_SR( ACT_GESTURE_RANGE_ATTACK_RPG );
|
||||
|
||||
ADD_ACTIVITY_TO_SR( ACT_WALK_MELEE );
|
||||
ADD_ACTIVITY_TO_SR( ACT_RUN_MELEE );
|
||||
|
||||
ADD_ACTIVITY_TO_SR( ACT_RUN_PACKAGE );
|
||||
ADD_ACTIVITY_TO_SR( ACT_RUN_SUITCASE );
|
||||
|
||||
|
@ -43,9 +43,8 @@ acttable_t CWeaponCrowbar::m_acttable[] =
|
||||
{ ACT_IDLE, ACT_IDLE_ANGRY_MELEE, false },
|
||||
{ ACT_IDLE_ANGRY, ACT_IDLE_ANGRY_MELEE, false },
|
||||
#ifdef EXPANDED_HL2_WEAPON_ACTIVITIES
|
||||
// Just so we don't have to implement more activities, re-use the MP acts
|
||||
{ ACT_RUN, ACT_MP_RUN_MELEE, false },
|
||||
{ ACT_WALK, ACT_MP_WALK_MELEE, false },
|
||||
{ ACT_RUN, ACT_RUN_MELEE, false },
|
||||
{ ACT_WALK, ACT_WALK_MELEE, false },
|
||||
|
||||
{ ACT_ARM, ACT_ARM_MELEE, false },
|
||||
{ ACT_DISARM, ACT_DISARM_MELEE, false },
|
||||
|
@ -2388,6 +2388,9 @@ void ActivityList_RegisterSharedActivities( void )
|
||||
REGISTER_SHARED_ACTIVITY( ACT_RANGE_ATTACK_RPG_LOW );
|
||||
REGISTER_SHARED_ACTIVITY( ACT_GESTURE_RANGE_ATTACK_RPG );
|
||||
|
||||
REGISTER_SHARED_ACTIVITY( ACT_WALK_MELEE );
|
||||
REGISTER_SHARED_ACTIVITY( ACT_RUN_MELEE );
|
||||
|
||||
REGISTER_SHARED_ACTIVITY( ACT_RUN_PACKAGE );
|
||||
REGISTER_SHARED_ACTIVITY( ACT_RUN_SUITCASE );
|
||||
|
||||
|
@ -2267,6 +2267,10 @@ typedef enum
|
||||
ACT_RANGE_ATTACK_RPG_LOW,
|
||||
ACT_GESTURE_RANGE_ATTACK_RPG,
|
||||
|
||||
// Melee
|
||||
ACT_WALK_MELEE,
|
||||
ACT_RUN_MELEE,
|
||||
|
||||
// Citizen accessories
|
||||
ACT_RUN_PACKAGE,
|
||||
ACT_RUN_SUITCASE,
|
||||
|
@ -82,10 +82,9 @@ acttable_t CWeaponStunStick::m_acttable[] =
|
||||
{ ACT_MELEE_ATTACK1, ACT_MELEE_ATTACK_SWING, true },
|
||||
{ ACT_IDLE_ANGRY, ACT_IDLE_ANGRY_MELEE, true },
|
||||
#ifdef EXPANDED_HL2_WEAPON_ACTIVITIES
|
||||
// Just so we don't have to implement more activities, re-use the MP acts
|
||||
{ ACT_IDLE, ACT_MP_STAND_MELEE, false },
|
||||
{ ACT_RUN, ACT_MP_RUN_MELEE, false },
|
||||
{ ACT_WALK, ACT_MP_WALK_MELEE, false },
|
||||
{ ACT_IDLE, ACT_IDLE_MELEE, false },
|
||||
{ ACT_RUN, ACT_RUN_MELEE, false },
|
||||
{ ACT_WALK, ACT_WALK_MELEE, false },
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user