mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
Only have bots issue vtaunt commands in Team Arena.
This commit is contained in:
parent
f40042113a
commit
cd3654a21f
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue