Bombers piloted by A.I.

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
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Bombers piloted by A.I.

Post by Marth8880 »

Alright, so I am having really...awkward issues with auto-piloted bombers that I set up. I have flyer splines set up for the bombers to do bombing "swoops" and the bombers follow them correctly (sorta) but odd things are happening (zomg); there's a random spot near the beginning of the spline where the flyers just like to explode for no apparent reason; also, the bombers don't *usually* seem to be aiming at anything when they drop their load, they instead just drop it randomly, usually in one completely random edge of the map where literally nothing exists at ([herp]other than terrain[/derp]).

My ultimate questions are: why do the flyers keep exploding randomly in that one general area, and why do they keep barraging nothing?

Another question: how would I go about making it so the flyers don't randomly go charging into the ground?
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Bombers piloted by A.I.

Post by Bob »

AI controlled flyers will always shoot when ever their weapons are ready, there's no way you could make them aim. But if your'e lucky you can give them a bit of timing by playing around with the weapons overheating and/or shoot delay stuff.

For the random explos check if theres nothing in the way and make sure they aren't to close to the ground, they would destroy themselfes with the explosions of their own bombs.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Bombers piloted by A.I.

Post by DarthD.U.C.K. »

if you wnat them to bomb a certain point, put an invisible object there , give it the healthtype "animal" and in the bombers weaponods, set "AITargetAnimal" to 1 and everything else to zero. then the ai should only aim and shoot at this object.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Bombers piloted by A.I.

Post by Marth8880 »

DarthD.U.C.K. wrote:if you wnat them to bomb a certain point, put an invisible object there , give it the healthtype "animal" and in the bombers weaponods, set "AITargetAnimal" to 1 and everything else to zero. then the ai should only aim and shoot at this object.
Hmm, but wouldn't the invisible object show up on the player's HUD if they happen to point themself in the object's direction?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Bombers piloted by A.I.

Post by AQT »

Add the following parameter to the object's ODF:

Code: Select all

HideHealthBar	      = "1"
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Bombers piloted by A.I.

Post by Marth8880 »

AQT wrote:Add the following parameter to the object's ODF:

Code: Select all

HideHealthBar	      = "1"
Yay! Thanks, AQT and D.U.C.K.!
Post Reply