OpenArena Message Boards

OpenArena Contributions => Models => Topic started by: tosk1 on February 17, 2010, 03:11:07 AM



Title: Is there a default AI that bots use?
Post by: tosk1 on February 17, 2010, 03:11:07 AM
Hi! Long time lurker, first time poster...

Followed the link in the useful links section, and added a couple of models from the ioquake website. When I play against bots, the new ones have a tendency to wait in the middle of nowhere for no apparent reason, and only react when I come into their field of view.

It doesn't bother me much, it means I can laugh as I walk up right behind one and blow their head off with a shotgun, and the openarena bots work normally so there's no problem with them (which is the most important thing).

Is this a default AI that models revert to when there's none supplied with the model? Or is it just the AI that was programmed in by the model makers?

I'm not raising an issue with the ioquake models, because I know this isn't the place to ask those questions. I was just curious as to why the models would act like this.


Title: Re: Is there a default AI that bots use?
Post by: tosk1 on February 17, 2010, 05:10:38 AM
Actually I think I may have found the answer. After browsing this forum, it seems Q3 AI doesn't have the ability to use certain OA weapons (missionpack weapons? Or something like that). And while playing I get a lot of "Error: Weapon number out of bounds" (or something like that) messages. So it may be that the models get stuck whenever they encounter a weapon that they can't use.

Does that sound logical? Can anyone confirm for me?

I wonder if I can get round this problem by filling all open slots with bots :) Even if they all have this problem, there will be so many bots blowing each other to kingdom come that as soon as one gets stuck, it will be respawned.



Title: Re: Is there a default AI that bots use?
Post by: Graion Dilach on February 17, 2010, 12:45:44 PM
Actually, you're right that the bot can't use the weapons. But not some weapons became corrupted. All of them, including powerups... everything.

Quake 3 and OpenArena users different names for the items in the botfiles, so to fix that error, you have to rewrite the bot's _w.c and _i.c (plain texts) located under the bot's pk3 (which is just a renamed zip) botfiles\bots folder, using a similar file from the default OA bots as a base (pak6-misc.pk3\botfiles\bots).

The Missionpack entities (chaingun, dom point, whatever) are also missing,you have to come up with their numbers, but the rest are commented enough to understand and see the changes. (For example, W_GRENADELAUNCHER to GLW) etc.

I wouldn't consider this as the model maker's fault, nor anybody elses. It's two different game, thereby it needs a conversion.

Interestingly, they don't stuck without the conversion... they just use the MG and nothing more.