Restrict bots' voice chat to The Mission Pack / Team Arena
This commit is contained in:
@@ -2085,8 +2085,13 @@ int FindHumanTeamLeader(bot_state_t *bs) {
|
|||||||
ClientName(i, bs->teamleader, sizeof(bs->teamleader));
|
ClientName(i, bs->teamleader, sizeof(bs->teamleader));
|
||||||
// if not yet ordered to do anything
|
// if not yet ordered to do anything
|
||||||
if ( !BotSetLastOrderedTask(bs) ) {
|
if ( !BotSetLastOrderedTask(bs) ) {
|
||||||
|
#ifdef MISSIONPACK
|
||||||
// go on defense by default
|
// 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;
|
return qtrue;
|
||||||
}
|
}
|
||||||
|
@@ -54,6 +54,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
#include "syn.h" //synonyms
|
#include "syn.h" //synonyms
|
||||||
#include "match.h" //string matching types and vars
|
#include "match.h" //string matching types and vars
|
||||||
|
|
||||||
|
#ifdef MISSIONPACK
|
||||||
// for the voice chats
|
// for the voice chats
|
||||||
#include "../../ui/menudef.h"
|
#include "../../ui/menudef.h"
|
||||||
|
|
||||||
@@ -529,3 +530,4 @@ int BotVoiceChatCommand(bot_state_t *bs, int mode, char *voiceChat) {
|
|||||||
}
|
}
|
||||||
return qfalse;
|
return qfalse;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user