mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-12-11 21:21:32 +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;
|
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
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue