Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Admiral Nelson on February 18, 2017, 06:55:44 am

Title: iff_defs.tbl and orders
Post by: Admiral Nelson on February 18, 2017, 06:55:44 am
I'm seeing an issue wherein in iff_defs.tbl the original campaign creator has created multiple entries for things like "GTA" and "PVN" and such to indicate which "faction," so to speak, different ships belong.  The trouble with this is that one can't seen to issue "protect my target" orders when targeting a ship with a different but non-hostile iff setting.  Is there a way to permit this?  I do see a flag called "support allowed" but the function of this flag is not documented.
Title: Re: iff_defs.tbl and orders
Post by: Dragon on February 18, 2017, 06:44:41 pm
This flag probably has something to do with the support ship.

It'd definitely be a good idea to give some control over which IFFs count as "friendly" for AI orders purposes.
Title: Re: iff_defs.tbl and orders
Post by: The E on February 19, 2017, 06:50:03 am
I've added some explanations for the flags to the wiki.

The "Support Allowed" flag means that ships with this IFF can call a support ship when they are disabled; under normal circumstances, disabled ships in a wing self-destruct after a while in order to allow follow-on waves to spawn.
Title: Re: iff_defs.tbl and orders
Post by: Admiral Nelson on February 19, 2017, 07:47:22 am
Thank you for the wiki updates.  Is it correct to say that not being able to issue "Protect my target" orders to friendly but different IFFs is a quirk of its current implementation?  If so, I'll just a note to the campaign calling it out as a known issue.