From a83ed909210065bbb62d41c307b2956af34d4b10 Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Sun, 26 Jan 2025 12:21:11 -0600 Subject: [PATCH] Move E:Z2 player to followup-capable expresser --- sp/src/game/server/ez2/ez2_player.cpp | 2 +- sp/src/game/server/ez2/ez2_player.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sp/src/game/server/ez2/ez2_player.cpp b/sp/src/game/server/ez2/ez2_player.cpp index 3f96e47471f..15808b6f065 100644 --- a/sp/src/game/server/ez2/ez2_player.cpp +++ b/sp/src/game/server/ez2/ez2_player.cpp @@ -1601,7 +1601,7 @@ bool CEZ2_Player::GetGameTextSpeechParams( hudtextparms_t ¶ms ) //----------------------------------------------------------------------------- CAI_Expresser *CEZ2_Player::CreateExpresser(void) { - m_pExpresser = new CAI_Expresser(this); + m_pExpresser = new CAI_ExpresserWithFollowup(this); if (!m_pExpresser) return NULL; diff --git a/sp/src/game/server/ez2/ez2_player.h b/sp/src/game/server/ez2/ez2_player.h index 6374663b16c..e6ead096973 100644 --- a/sp/src/game/server/ez2/ez2_player.h +++ b/sp/src/game/server/ez2/ez2_player.h @@ -126,6 +126,8 @@ class CEZ2_Player : public CAI_ExpresserHost, public CGameEventList virtual CAI_Expresser * CreateExpresser(void); virtual CAI_Expresser * GetExpresser() { return m_pExpresser; } + bool IsAllowedToSpeakFollowup( AIConcept_t concept ) { return IsAllowedToSpeak( concept ); } + bool GetGameTextSpeechParams( hudtextparms_t ¶ms ); void ModifyOrAppendDamageCriteria(AI_CriteriaSet & set, const CTakeDamageInfo & info, bool bPlayer = true);