Improved CTF bots
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Improved CTF bots
Anyone who ever played CTF offline knows how bad the iD bots are. This file fixes that. The PK3 contains scripts for the stock iD bots, optimized for CTF play. Just put it in your baseq3, it will take effect next time you start your Quake. Enjoy!
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
I wrote a little script (see below) that parses their item weights and sets the flag weight to the highest of those. This prevents them from becoming suicidal lemmings while still making them much more assertive in CTF. Now nightmare bots with bot_challenge 1 are at least a bit of a challenge. I've tried tweaking other parameters as well, but none have as much effect as this simple fix.
Code: Select all
#!/usr/bin/perl -w
my @lines;
my $highest = 0;
while (<>) {
push @lines, $_;
}
foreach (@lines) {
/\#.*?(\d+)/;
$highest = $1 if ($1 && $1 > $highest);
}
foreach (@lines) {
s/(FLAG_WEIGHT.*?)(\d+)/$1$highest/;
print;
}
Well they still lack a lot of things. :icon32:
[lvlshot]http://s88378813.onlinehome.us/images/games/q3/ctf_bots001.jpg[/lvlshot]
IMHO, good teamplay/ctf bots should have: (I know it's easier said than done)
- Should strafe more like humans to maximize speed (spiterbot does this pretty well, albeit sometimes he does cheat jumps)
- Dodging patterns for rail and other weapons (again spiterbot does it nicely but not great)
- Should try and go for the flag more (they get stranded many a times in middle or in their base, instead of going into the central area and proceeding for the enemy flag)
- When human gets enemy flag, the bots should all (or at least half or more of the team) stop what they are doing and try and pursuse the flag carrier. Even if they where to cheat and see through walls or what-not, but they should concentrate on the lead player with the flag because afterall flag captures are what hurts the weaker teams the most.
Better movement and planning patters could maybe be achieved with a script sort of what the Eraser bots had for Q2. You could script pretty nice patrol routines and movement patterns with it.
[lvlshot]http://s88378813.onlinehome.us/images/games/q3/ctf_bots001.jpg[/lvlshot]
IMHO, good teamplay/ctf bots should have: (I know it's easier said than done)
- Should strafe more like humans to maximize speed (spiterbot does this pretty well, albeit sometimes he does cheat jumps)
- Dodging patterns for rail and other weapons (again spiterbot does it nicely but not great)
- Should try and go for the flag more (they get stranded many a times in middle or in their base, instead of going into the central area and proceeding for the enemy flag)
- When human gets enemy flag, the bots should all (or at least half or more of the team) stop what they are doing and try and pursuse the flag carrier. Even if they where to cheat and see through walls or what-not, but they should concentrate on the lead player with the flag because afterall flag captures are what hurts the weaker teams the most.
Better movement and planning patters could maybe be achieved with a script sort of what the Eraser bots had for Q2. You could script pretty nice patrol routines and movement patterns with it.
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: Improved CTF bots
How do i download the file it goes to this website http://www.savefile.com/files/7155636 and i cant download it 
