Deploy AI controlled droids

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
Delta-1035
Sith Master
Sith Master
Posts: 2651
Joined: Mon Aug 04, 2008 10:32 am
Projects :: TOR GCWII GCW1035 BF1035
xbox live or psn: Johnny_Sciroppo
Location: Pizza Land

Deploy AI controlled droids

Post by Delta-1035 »

Hello guys,

I'd like to know if it's possible to make something like a recon droid that is controlled by the AI.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Deploy AI controlled droids

Post by Anakin »

i tried, but wasn't successful.
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Deploy AI controlled droids

Post by giftheck »

I don't know if this applies to SWBF2 but I tried this in the first game. The droid will just tail you and won't do anything else, not even fire at enemies.
User avatar
Delta-1035
Sith Master
Sith Master
Posts: 2651
Joined: Mon Aug 04, 2008 10:32 am
Projects :: TOR GCWII GCW1035 BF1035
xbox live or psn: Johnny_Sciroppo
Location: Pizza Land

Re: Deploy AI controlled droids

Post by Delta-1035 »

ggctuk wrote:I don't know if this applies to SWBF2 but I tried this in the first game. The droid will just tail you and won't do anything else, not even fire at enemies.
How did you do that? It could work if we can make an autoturret to follow the player, idk.
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: Deploy AI controlled droids

Post by giftheck »

I made the weapon dispenser class and put 'Autopilot = "self"' in the actual probe droid ODF.

As I said, it follows but doesn't do anything else.
Last edited by giftheck on Fri Apr 22, 2016 2:49 am, edited 1 time in total.
Samee3
First Lance Corporal
First Lance Corporal
Posts: 123
Joined: Sun Jul 05, 2015 5:07 pm
Projects :: BF2 Refresh Mod
Games I'm Playing :: Empire at War
xbox live or psn: VaporousFern310
Location: California, USA

Re: Deploy AI controlled droids

Post by Samee3 »

Somewhat off topic, somewhat on topic:

I have made a weapon that allows you to drop vehicles onto the battlefield, just like auto-turrets and probe droids. The problem I ran into is that for some odd reason, you can't drop things like tanks and speeder bikes, but you can drop things like Starfighters and air-speeders. I once thought: 'wouldn't it be nice to be able to drop and AI controlled gunship', and promptly added PilotType = "self" to the flyers odf. However, when I tested it in the game, the flyer just sat there, doing nothing for 15 minutes.



So the point of this post is that if someone knows how to make the AI actually take off, or how make the dispenser drop ground vehicles, you could have the answer to the original question.

Any suggestions?
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Deploy AI controlled droids

Post by Anakin »

Dropping a speeder is possible. I did it for a unit weapon. Just use the speeder odf for ordnance of a mine or health dispenser.
User avatar
Delta-1035
Sith Master
Sith Master
Posts: 2651
Joined: Mon Aug 04, 2008 10:32 am
Projects :: TOR GCWII GCW1035 BF1035
xbox live or psn: Johnny_Sciroppo
Location: Pizza Land

Re: Deploy AI controlled droids

Post by Delta-1035 »

I did something like that back in the days, with the LAAT. I noticed that the player must get it first and then the AI units will do the same; but if you don't, they will not.

Weird.
Samee3
First Lance Corporal
First Lance Corporal
Posts: 123
Joined: Sun Jul 05, 2015 5:07 pm
Projects :: BF2 Refresh Mod
Games I'm Playing :: Empire at War
xbox live or psn: VaporousFern310
Location: California, USA

Re: Deploy AI controlled droids

Post by Samee3 »

Actually I found time to re-test the vehicle dispenser, and I found out that if you want ground vehicles to work, you must add the desired vehicle to the LUA file on the map you wish to use it on. Also, whenever I tried to give a ground vehicle PilotType = self, it crashed immediately upon deploying. If anyone has a suggestion on that head.....
Anyway, at this point, I don't think there is a way to get AI controlled vehicles without some scripting, which I am not and expert at.
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: Deploy AI controlled droids

Post by Locutus »

Huh, it's been a while since I was around.
I'm not really modding SBF2 actively anymore but as far as I can remember PilotType = self will always crash for hover vehicles.
Scripting (as in spawning via matrix) vehicles doesn't work either; you'd have to rely on vehicle spawners.
Post Reply