Restrict bots' voice chat to The Mission Pack / Team Arena

This commit is contained in:
2025-07-15 17:52:16 -03:00
parent afa6c2bca8
commit 9fbc74e5cf
2 changed files with 8 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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