Fix TLK_NEW_ENEMY not playing on headcrabs or zombies

This commit is contained in:
ALLEN-PC\acj30 2024-01-05 13:26:47 -06:00
parent e1c890a011
commit 7c5c90ebeb

View File

@ -680,7 +680,8 @@ void CNPC_PlayerCompanion::DoCustomSpeechAI( void )
SpeakIfAllowed( "TLK_SPOTTED_ZOMBIE_WAKEUP" ); SpeakIfAllowed( "TLK_SPOTTED_ZOMBIE_WAKEUP" );
} }
} }
else if ( gpGlobals->curtime - GetEnemies()->TimeAtFirstHand( GetEnemy() ) <= 1.0f && nClass != CLASS_BULLSEYE )
if ( gpGlobals->curtime - GetEnemies()->TimeAtFirstHand( GetEnemy() ) <= 1.0f && nClass != CLASS_BULLSEYE )
{ {
// New concept which did not originate from Alyx, but is in the same category as the above concepts. // New concept which did not originate from Alyx, but is in the same category as the above concepts.
// This is meant to be used when a new enemy enters the arena while combat is already in progress. // This is meant to be used when a new enemy enters the arena while combat is already in progress.