View Full Version : Silly question. Selecting the teams for bots
legacy-danilojo
07-03-2003, 11:36 PM
Hello my team are making a mod, and until now our nbots always worked separately, we wanted to work like that. Now we have been a lot of time without changing things of the code and now we want to add the behaviour of team to the bots.
The thing Is that we have found that we do not know how to assign the blue team to all the bots, and the red team to the player.
Do you know where in the code I must assign the team to a bot, or is it in the editor?
Thanks in advance!
legacy-JaFO(JBE)
07-04-2003, 04:05 PM
There are no teams like you had them in UT'99.
At best there's the teamrosters and the 'preferred' team for the (human) players.
There is also the TeamAi-class which is used to 'fill' the teams and coordinate the bots on a single team (it creates squads of bots that get an objective to attack/defend using squadAi ).
For each team in a gametype there is one TeamAi.
So if you really wanted to make 'red' for humans and 'blue' for bots then all you'd need to do is to make sure that the humans can't join in the blue teamAi-instance and the bots can't join the other team.
You'd need to explore the code and sites such as http://wiki.beyondunreal.com to learn how it works.
legacy-danilojo
07-04-2003, 10:57 PM
Well we are trying to make something like a single player mod.
The thing is that we want in a certain moment some bots (our enemies) to work as a team. I mean something like 4 enemies trying to kill you. I have explored wiki, and it does explain something but I don't find a way to use the squad variable that has the bots. Notice that what I need is that 4 enemies of our mod will work as a team, the rest not (well maybe those four are the only enemies we have)
I see that teamAI has a lot of information of linking bots in a team. But I don't find the way to insert that in our game.
I think I should do something with the ReplicationInfoClasses.
I have been looking in the wiki's page, and I find some information but all the information is very abstract. I think I understand a little the mechanism, what i need is the little step that will be to know how to make all the bots be in the blue team in a normal game, so I will try to adapt that thing to our mod.
Powered by vBulletin® Version 4.1.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.