Getting Frikbots to ignore team-specific waypoints?

Discuss Artificial Intelligence and Bot programming.
Post Reply
Orion
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Getting Frikbots to ignore team-specific waypoints?

Post by Orion »

Well, I've adapted Frikbots to play TF, and many maps have these doors or elevators that only work for one team. I've added two new b_aiflags to the waypoints (AI_BLUE_ONLY/RED_ONLY) and set the priority to zero on priority_for_thing() if the teams don't match, but it wasn't enough. I guess I have to do something on their route finding code, and I'm having a little trouble understanding that code, how can I make the bots take another route if on the route they're trying to go has team-specific waypoints for the enemy team? This happens everytime on the wall map, the huge map with two bridges on the outside, and near the flagroom has two elevators... the bots have trouble when they get the enemy flag and try to use the elevators and get stuck there until they get killed.
Is there a way to modify this? Any help appreciated. :smile:
frag.machine
Posts: 2126
Joined: Sat Nov 25, 2006 1:49 pm

Re: Getting Frikbots to ignore team-specific waypoints?

Post by frag.machine »

What is the priority if the teams do match ? Try cranking it up so it becomes an obvious choice.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
Orion
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Re: Getting Frikbots to ignore team-specific waypoints?

Post by Orion »

Was 30, I tried 99999 bit it didn't work. :sad:
Post Reply