Restored unused port of Alyx combat AI speech concepts for all player companions

This commit is contained in:
Blixibon 2021-04-22 01:39:59 -05:00
parent 0b14f5fbcc
commit ebec14d2b6

View File

@ -4223,17 +4223,10 @@ void CNPC_PlayerCompanion::Event_KilledOther( CBaseEntity *pVictim, const CTakeD
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: Handles stuff ported from Alyx. // Purpose: Handles custom combat speech stuff ported from Alyx.
//
// For some reason, I thought Alyx's mobbed AI was used to measure enemy count for criteria stuff, which I wanted citizens to use.
// Now that I realize enemy counting for criteria is elsewhere and this is used for just mobbing in general, I deactivated it
// since it would barely be used and I don't know what kind of an impact it has on performance.
//
// If you want to use it, feel free to re-activate.
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void CNPC_PlayerCompanion::DoCustomCombatAI( void ) void CNPC_PlayerCompanion::DoCustomCombatAI( void )
{ {
/*
#define COMPANION_MIN_MOB_DIST_SQR Square(120) // Any enemy closer than this adds to the 'mob' #define COMPANION_MIN_MOB_DIST_SQR Square(120) // Any enemy closer than this adds to the 'mob'
#define COMPANION_MIN_CONSIDER_DIST Square(1200) // Only enemies within this range are counted and considered to generate AI speech #define COMPANION_MIN_CONSIDER_DIST Square(1200) // Only enemies within this range are counted and considered to generate AI speech
@ -4296,7 +4289,6 @@ void CNPC_PlayerCompanion::DoCustomCombatAI( void )
{ {
SpeakIfAllowed( TLK_MANY_ENEMIES ); SpeakIfAllowed( TLK_MANY_ENEMIES );
} }
*/
} }
#endif #endif