Minor ODF question - AI Weapon usage

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:

Minor ODF question - AI Weapon usage

Post by vampire_lord »

I have modified some weapons on my sides to work slightly different from the shipped ones, for example, Chainguns have ammo (large clip and slow reloading) and grenade launchers have only one shot per clip (fast reloading), but when I test my map they always change their weapons after the first clip, my officers just warm up their chainguns and go for pistols; this is something I always noted in some shipped classes (officers mainly), is there a way to have them use a designated weapon more often?
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Minor ODF question - AI Weapon usage

Post by bobfinkl »

If you change the Minimal Optimal and Maximum ranges of a weapon around it can get them to use that weapon more or if you edit it the other way around less.
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: Minor ODF question - AI Weapon usage

Post by vampire_lord »

Thanks, btw, how about aggressiveness? sometimes the units shot some bursts, then stop even if you are in front of them...
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Minor ODF question - AI Weapon usage

Post by Fiodis »

FAQ Thread link:
Yep, it's in the FAQ.
Grev's post, the third one, has what you need.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Units only use pistol

Post by genaral_mitch »

I am giving my clones a DC-15A rifle and a DC-17 pistol but when they see an enemy, they drop the rifle and go for the pistol. I saw Vampire Lord's thread about this, but Bobfinkl's answer didn't make sense.

Topics merged, -Staff
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: Minor ODF question - AI Weapon usage

Post by DarthD.U.C.K. »

which exact part of the answer didnt you understand?
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Minor ODF question - AI Weapon usage

Post by SW_elite »

@ Fodis

Was that part of script from the unit odf?
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: Minor ODF question - AI Weapon usage

Post by DarthD.U.C.K. »

if you referring to grevs post to which fiodis referred: no, its in the weapon odf
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Minor ODF question - AI Weapon usage

Post by SW_elite »

Yeah, thats the one, but I can't find the barrage part.

EDIT: Do you add it in yourself?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Minor ODF question - AI Weapon usage

Post by Fiodis »

Why not try it out instead of posting for an answer? It takes all of half a minute to edit and munge.
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Minor ODF question - AI Weapon usage

Post by SW_elite »

I would but me comp aint that fast :lol:
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: Minor ODF question - AI Weapon usage

Post by DarthD.U.C.K. »

that is a pretty lame excuse, munging odfs takes a few seconds
Post Reply