Only have bots issue vtaunt commands in Team Arena.

This commit is contained in:
Zack Middleton 2012-06-18 20:11:09 +00:00
parent f40042113a
commit cd3654a21f

View file

@ -488,7 +488,9 @@ int BotChat_StartLevel(bot_state_t *bs) {
if (bs->lastchat_time > FloatTime() - TIME_BETWEENCHATTING) return qfalse; if (bs->lastchat_time > FloatTime() - TIME_BETWEENCHATTING) return qfalse;
//don't chat in teamplay //don't chat in teamplay
if (TeamPlayIsOn()) { if (TeamPlayIsOn()) {
#ifdef MISSIONPACK
trap_EA_Command(bs->client, "vtaunt"); trap_EA_Command(bs->client, "vtaunt");
#endif
return qfalse; return qfalse;
} }
// don't chat in tournament mode // don't chat in tournament mode
@ -521,9 +523,11 @@ int BotChat_EndLevel(bot_state_t *bs) {
// teamplay // teamplay
if (TeamPlayIsOn()) if (TeamPlayIsOn())
{ {
#ifdef MISSIONPACK
if (BotIsFirstInRankings(bs)) { if (BotIsFirstInRankings(bs)) {
trap_EA_Command(bs->client, "vtaunt"); trap_EA_Command(bs->client, "vtaunt");
} }
#endif
return qtrue; return qtrue;
} }
// don't chat in tournament mode // don't chat in tournament mode
@ -600,7 +604,9 @@ int BotChat_Death(bot_state_t *bs) {
{ {
//teamplay //teamplay
if (TeamPlayIsOn()) { if (TeamPlayIsOn()) {
#ifdef MISSIONPACK
trap_EA_Command(bs->client, "vtaunt"); trap_EA_Command(bs->client, "vtaunt");
#endif
return qtrue; return qtrue;
} }
// //
@ -702,7 +708,9 @@ int BotChat_Kill(bot_state_t *bs) {
{ {
//don't chat in teamplay //don't chat in teamplay
if (TeamPlayIsOn()) { if (TeamPlayIsOn()) {
#ifdef MISSIONPACK
trap_EA_Command(bs->client, "vtaunt"); trap_EA_Command(bs->client, "vtaunt");
#endif
return qfalse; // don't wait return qfalse; // don't wait
} }
// //
@ -925,7 +933,9 @@ int BotChat_Random(bot_state_t *bs) {
EasyClientName(bs->lastkilledplayer, name, sizeof(name)); EasyClientName(bs->lastkilledplayer, name, sizeof(name));
} }
if (TeamPlayIsOn()) { if (TeamPlayIsOn()) {
#ifdef MISSIONPACK
trap_EA_Command(bs->client, "vtaunt"); trap_EA_Command(bs->client, "vtaunt");
#endif
return qfalse; // don't wait return qfalse; // don't wait
} }
// //