AI won't use shield weapon [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
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

AI won't use shield weapon [Solved]

Post by vampire_lord »

Well, I found the T1-B very useful for my upcoming map, but I have one little big problem, the AI never uses its Shield (secondary weapon), I checked the Droideka shield and the Droideka unit to see if there was some kind of parameter to make them activate shields but nothing, anyone here with an answer? you know, it would not be cool to have only human players activate shielding on these kind of situation.

EDIT: Errata, I mean, the AI never uses the shield...
Last edited by vampire_lord on Tue Apr 13, 2010 4:14 pm, edited 2 times in total.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Another question regarding shield (the weapon)

Post by CressAlbane »

Hmm... Perplexing.
I've never heard of anything like this.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Another question regarding shield (the weapon)

Post by skelltor »

i have the same problem with a unit i gave the droideka shield.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Another question regarding shield (the weapon)

Post by StarkillerMarek »

Did you know you could use the MaxShield function in the units odf?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Another question regarding shield (the weapon)

Post by AQT »

The thing with that is a unit would not be able to turn the shield on or off. This is where setting it up as a weapon, or ODF, serves that purpose.
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

Re: Another question regarding shield (the weapon)

Post by vampire_lord »

Exactly, what makes a droideka (virtually a vehicle) turn on and off shields upon attacking its enemies?
User avatar
CodaRez
Field Commander
Field Commander
Posts: 940
Joined: Mon May 25, 2009 6:49 am
Projects :: I would like one.....
Location: Ride around the world! And I won't give you anything :P

Re: Another question regarding shield (the weapon)

Post by CodaRez »

vampire_lord wrote:Exactly, what makes a droideka (virtually a vehicle) turn on and off shields upon attacking its enemies?
Notice that once turned on it never turns them off. The only time a *deka* stops the shield is when it returns to ball mode, or when there are no more hostiles around, which is then swiftly followed by switching to ball mode again anyway.

The other time is when everyone around it depletes its shield. The *deka* only knows how to "on" the shield, characterized by how after a certain time after depletion shields go back up.


You have better luck rigging the vehicle to have auto-shield. (of course make sure it doesn't constantly recharge after full depletion)
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: AI won't use shield weapon

Post by lucasfart »

Maybe try this line:
AITargetVehicle = 1
there are a whole stack of things it can target, try adding that to the weapons odf. Or do those lines only work for vehicles and units?
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

Re: AI won't use shield weapon

Post by vampire_lord »

OK, I tried the AITargetStuff but nothing, the AI still refuses to use the shield no matter what kind of unit it faces...
User avatar
RED51
Jedi
Jedi
Posts: 1024
Joined: Sun Sep 07, 2008 6:25 pm
Games I'm Playing :: SWBFII

Re: AI won't use shield weapon

Post by RED51 »

You time with this is a waste sadly. That model may have been ripped from another mod without permission, so I suggest you remove it from your map.
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

Re: AI won't use shield weapon

Post by vampire_lord »

Already done, but the topic is still something to think about, just in case someone makes any similar vehicle or something (i would prefer a T2-B), now my problem is making some AAC-1 missiles to lock on, and nope, lock on stuff doesn't work...
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: AI won't use shield weapon

Post by AQT »

Here is a recently discovered solution to this problem: In the unit's ODF, set:

Code: Select all

HealthType = "droid"
And the AI will use the shield weapon. I found this out by accident; THEWULFMAN suggested perhaps because the HealthType of the unit that activated the weapon was droid, and that seems to be very reasonable.

EDIT
It seems the ability for a unit to use a shield weapon is hardcoded to the CIS team, as with shooting dead bodies is hardcoded to the ALL team.
Post Reply