From 9fbc74e5cf0d7d7754367ad8a46fe0222c5ace82 Mon Sep 17 00:00:00 2001 From: Izuru Yakumo Date: Tue, 15 Jul 2025 17:52:16 -0300 Subject: [PATCH] Restrict bots' voice chat to The Mission Pack / Team Arena --- code/game/ai_team.c | 7 ++++++- code/game/ai_vcmd.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/code/game/ai_team.c b/code/game/ai_team.c index c1d0394..823f8f3 100644 --- a/code/game/ai_team.c +++ b/code/game/ai_team.c @@ -2085,8 +2085,13 @@ int FindHumanTeamLeader(bot_state_t *bs) { ClientName(i, bs->teamleader, sizeof(bs->teamleader)); // if not yet ordered to do anything if ( !BotSetLastOrderedTask(bs) ) { +#ifdef MISSIONPACK // go on defense by default - if (bot_nochat.integer<3)BotVoiceChat_Defend(bs, i, SAY_TELL); + BotVoiceChat_Defend(bs, i, SAY_TELL); +#else + // Nothing! + return qfalse; +#endif } return qtrue; } diff --git a/code/game/ai_vcmd.c b/code/game/ai_vcmd.c index d8cd903..41bd7f6 100644 --- a/code/game/ai_vcmd.c +++ b/code/game/ai_vcmd.c @@ -54,6 +54,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "syn.h" //synonyms #include "match.h" //string matching types and vars +#ifdef MISSIONPACK // for the voice chats #include "../../ui/menudef.h" @@ -529,3 +530,4 @@ int BotVoiceChatCommand(bot_state_t *bs, int mode, char *voiceChat) { } return qfalse; } +#endif