From 7c5c90ebeb2bd028fa13409b385a94519b305d26 Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Fri, 5 Jan 2024 13:26:47 -0600 Subject: [PATCH] Fix TLK_NEW_ENEMY not playing on headcrabs or zombies --- sp/src/game/server/hl2/npc_playercompanion.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sp/src/game/server/hl2/npc_playercompanion.cpp b/sp/src/game/server/hl2/npc_playercompanion.cpp index 37246915..660cb218 100644 --- a/sp/src/game/server/hl2/npc_playercompanion.cpp +++ b/sp/src/game/server/hl2/npc_playercompanion.cpp @@ -680,7 +680,8 @@ void CNPC_PlayerCompanion::DoCustomSpeechAI( void ) 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. // This is meant to be used when a new enemy enters the arena while combat is already in progress.