[ioquake3] 16/34: Make bots only use q3tourney6 crusher to kill their enemy
Simon McVittie
smcv at debian.org
Fri Sep 8 10:33:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag debian/1.36+u20170908+dfsg1-1
in repository ioquake3.
commit c3e64d380685419f96f71035c961907b9dc09a9a
Author: Zack Middleton <zack at cloemail.com>
Date: Sat Aug 26 23:22:54 2017 -0500
Make bots only use q3tourney6 crusher to kill their enemy
Only use the crusher for killing the bot's enemy. This doesn't
affect 1v1 very much but prevents the whole team of bots in CTF
from suddenly shooting at the crusher button. Entering the crusher
bounds was basically instant death.
---
code/game/ai_dmq3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/game/ai_dmq3.c b/code/game/ai_dmq3.c
index 1a6a665..fdd598a 100644
--- a/code/game/ai_dmq3.c
+++ b/code/game/ai_dmq3.c
@@ -3733,7 +3733,7 @@ void BotMapScripts(bot_state_t *bs) {
shootbutton = qfalse;
break;
}
- else {
+ else if (bs->enemy == i) {
shootbutton = qtrue;
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list