Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Spoon on July 08, 2011, 05:04:28 pm

Title: A.I. Why won't you link your primaries? [Solved]
Post by: Spoon on July 08, 2011, 05:04:28 pm
So maybe somebody can enlighten me on this, I simply just cant seem to convince the a.i. to be link its primary weapons all of the time. As far as I can tell $AI Always Links Energy Weapons: simply does nothing. I've set it to 100, 90, 10, 5, 0. Nothing. The A.i. always picks the third bank (with smart weapon selection on, with smart selection off, it just picks the first one).
$AI Maybe Links Energy Weapons: also doesn't seem to do a lot.

Edit: And this is with
$fix linked primary weapon decision bug:  YES
$allow primaries link delay:    NO
in the ai_profile.tbl set
Title: Re: A.I. Why won't you link your primaries?
Post by: Spoon on July 09, 2011, 01:22:15 pm
Sushi, where are thou?

This ****ty a.i. behavior is driving me nuts!
Title: Re: A.I. Why won't you link your primaries?
Post by: Spoon on July 09, 2011, 07:07:22 pm
Yup, still super sour about this.

A.I. is consistently only using a single bank against enemy fighters, they only link when attacking capital ships.
Title: Re: A.I. Why won't you link your primaries?
Post by: sigtau on July 09, 2011, 07:39:55 pm
This topic was rightfully bumped.  Anyone willing to take up on this?
Title: Re: A.I. Why won't you link your primaries?
Post by: Valathil on July 09, 2011, 09:28:07 pm
Im willing to look into this more closely together with you just because wod is awesome and you seemed so pissed off in irc i tried to go over the function with you but i think we need to get deeper into this with custom debug builds maybe you can find me in irc in about 12 to 14 hours from now and well get to the bottom of this
Title: Re: A.I. Why won't you link your primaries?
Post by: Spoon on July 10, 2011, 11:02:28 am
Valathil: King among men

Turns out the wiki derped and herped hard. The flag is suppose to be $allow primary link delay:
The wiki had it listed as $allow primaries link delay:

Again, many thanks to Valathil for figuring this out.
Title: Re: A.I. Why won't you link your primaries? [Solved]
Post by: Nuke on July 10, 2011, 02:31:23 pm
just goes to show you sometimes its the wiki that has the bugs
Title: Re: A.I. Why won't you link your primaries? [Solved]
Post by: Valathil on July 11, 2011, 12:09:55 am
Np Spoon, now get back working on WoD2 goddamnit i want my fix.