AI won't use shield weapon [Solved]
Moderator: Moderators
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
AI won't use shield weapon [Solved]
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...
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

- Posts: 1519
- Joined: Fri Dec 18, 2009 8:02 am
- Projects :: CTF Arenas
- Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı
Re: Another question regarding shield (the weapon)
Hmm... Perplexing.
I've never heard of anything like this.
I've never heard of anything like this.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Another question regarding shield (the weapon)
i have the same problem with a unit i gave the droideka shield.
- StarkillerMarek
- Rebel Colonel

- Posts: 611
- Joined: Wed Aug 12, 2009 4:42 pm
- Location: I may be back.
Re: Another question regarding shield (the weapon)
Did you know you could use the MaxShield function in the units odf?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Another question regarding shield (the weapon)
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.
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: Another question regarding shield (the weapon)
Exactly, what makes a droideka (virtually a vehicle) turn on and off shields upon attacking its enemies?
- CodaRez
- 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)
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.vampire_lord wrote:Exactly, what makes a droideka (virtually a vehicle) turn on and off shields upon attacking its enemies?
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)
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: AI won't use shield weapon
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?
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?
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: AI won't use shield weapon
OK, I tried the AITargetStuff but nothing, the AI still refuses to use the shield no matter what kind of unit it faces...
- RED51
- Jedi

- Posts: 1024
- Joined: Sun Sep 07, 2008 6:25 pm
Re: AI won't use shield weapon
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.
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: AI won't use shield weapon
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

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: AI won't use shield weapon
Here is a recently discovered solution to this problem: In the unit's ODF, set:
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.
Code: Select all
HealthType = "droid"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.
