From cd3654a21f7cf427c7566102ca7e6bb1209d1763 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 18 Jun 2012 20:11:09 +0000 Subject: [PATCH] Only have bots issue vtaunt commands in Team Arena. --- code/game/ai_chat.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/game/ai_chat.c b/code/game/ai_chat.c index 3a5928b5..57166482 100644 --- a/code/game/ai_chat.c +++ b/code/game/ai_chat.c @@ -488,7 +488,9 @@ int BotChat_StartLevel(bot_state_t *bs) { if (bs->lastchat_time > FloatTime() - TIME_BETWEENCHATTING) return qfalse; //don't chat in teamplay if (TeamPlayIsOn()) { +#ifdef MISSIONPACK trap_EA_Command(bs->client, "vtaunt"); +#endif return qfalse; } // don't chat in tournament mode @@ -521,9 +523,11 @@ int BotChat_EndLevel(bot_state_t *bs) { // teamplay if (TeamPlayIsOn()) { +#ifdef MISSIONPACK if (BotIsFirstInRankings(bs)) { trap_EA_Command(bs->client, "vtaunt"); } +#endif return qtrue; } // don't chat in tournament mode @@ -600,7 +604,9 @@ int BotChat_Death(bot_state_t *bs) { { //teamplay if (TeamPlayIsOn()) { +#ifdef MISSIONPACK trap_EA_Command(bs->client, "vtaunt"); +#endif return qtrue; } // @@ -702,7 +708,9 @@ int BotChat_Kill(bot_state_t *bs) { { //don't chat in teamplay if (TeamPlayIsOn()) { +#ifdef MISSIONPACK trap_EA_Command(bs->client, "vtaunt"); +#endif return qfalse; // don't wait } // @@ -925,7 +933,9 @@ int BotChat_Random(bot_state_t *bs) { EasyClientName(bs->lastkilledplayer, name, sizeof(name)); } if (TeamPlayIsOn()) { +#ifdef MISSIONPACK trap_EA_Command(bs->client, "vtaunt"); +#endif return qfalse; // don't wait } //