AI Won't use shields [Solved]

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
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

AI Won't use shields [Solved]

Post by DarthXeon »

1 Quick Question: How do you make the ai use the shields?
thanks
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Ai Wont Use Shields

Post by Noobasaurus »

If they're secondary they should automatically use them...such as the droideka.
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: Ai Wont Use Shields

Post by Marth8880 »

Take a peek at the ODF for the Droideka's shield.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Ai Wont Use Shields

Post by THEWULFMAN »

It's been months, but I think I remember solving this issue by changing the unit's healthtype to a droid. Put this in your unit's main ODF.

Code: Select all

HealthType          = "droid"
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Ai Wont Use Shields

Post by AQT »

That doesn't seem to be the case anymore. I've fixed my solution here.
User avatar
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

Re: Ai Wont Use Shields

Post by DarthXeon »

that helps thanks,
btw how do you change max unit count?
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: Ai Wont Use Shields

Post by Marth8880 »

Code: Select all

SetupTeams{
		all = {
			team = ALL,
			units = 20,			-- Determines max unit count
			reinforcements = 150,	-- Determines default ticket count threshold
			soldier	= { "all_inf_rifleman_snow",9, 25}, -- First number determines minimum amount of A.I. to spawn as this unit; second number determines max amount of A.I. for this unit
			assault	= { "all_inf_rocketeer_snow",1,4},
			engineer = { "all_inf_engineer_snow",1,4},
			sniper	= { "all_inf_sniper_snow",1,4},
			officer	= { "all_inf_officer_snow",1,4},
			special	= { "all_inf_wookiee_snow",1,4},

		},
		imp = {
			team = IMP,
			units = 20,
			reinforcements = 150,
			soldier	= { "imp_inf_rifleman_snow",9, 25},
			assault	= { "imp_inf_rocketeer_snow",1,4},
			engineer = { "imp_inf_engineer_snow",1,4},
			sniper	= { "imp_inf_sniper_snow",1,4},
			officer	= { "imp_inf_officer_snow",1,4},
			special	= { "imp_inf_dark_trooper",1,4},
		},
	}
EDIT:

I may be wrong about what the second number does, I can't remember. :?
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Ai Wont Use Shields

Post by Webster27 »

Marth8880 wrote:I may be wrong about what the second number does, I can't remember. :?
Sounds correct to me. :yes:
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: Ai Wont Use Shields

Post by DarthD.U.C.K. »

make sure to also add the enable ubermode line like in this tutorial: Enabling Ubermode (Or: How to have more than 32 AI at once)
Post Reply