More help on making the AI not quite so stupid

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

More help on making the AI not quite so stupid

Post by jangoisbaddest »

I'm making (among other things) a map that has both ground and air vehicles in it. The only problem is that the fighters keep attacking the ground vehicles. This wouldn't be such a problem, except that two things happen that I do not want:

*There are no dogfights
*The AI crashes into the terrain

If there is a way to have them target aircraft only, that would be great (all I see is AITargetVehicle = 0 or 1).
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

Offtopic: Lower the avatar size(width), or it'll be removed.
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Post by jangoisbaddest »

There. Now could someone please help me out? Is there some way of designating seprate types of vehicles to the AI?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

a: need alot of fighters for dog fights to happen
b: make flyer paths around the place, and also place danger regions around big objects that are in the way
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Post by jangoisbaddest »

psych0fred wrote:To keep AI from crashing into the ground use aiflyerheight in your luas.
Neato! I had no idea this function existed! I looked at the space template LUA and sure enough, those functions are there. Thanks!
psych0fred wrote:If you don't want the flyers to target the soldiers you'll probably have to set up new flyers and flag their odfs so they do not target soldiers. Also making sure your ODfs are set up with the correct soldiertype and vehicletype.
I figured there was some way to do that - though you misunderstand. The flyers aren't targeting soldiers, they're targeting ground vehicles - walkers and the like. I saw lines in the ODF that look like they control what tyoe of object the AI chooses to shoot at, but the only one for vehicles is for ALL vehicles. But if there's some way to distinguish from flyers and speeders/walkers (as un using the specific object type, like walker, to be exempt from the AI's targeting), then that'd be great! Cause I have a feeling that if/when I can get them not to attack the ground vehicles, only flyers, then most of my problems will be solved.
busterkinkade

Post by busterkinkade »

I'm just curious, is the AI system for normal soldiers in SWBF II different then it was in SWBF, if so, is there anyway you could change it back?
Post Reply