Author Topic: IFF colors or rather iff_defs expansion request  (Read 1979 times)

0 Members and 1 Guest are viewing this topic.

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
IFF colors or rather iff_defs expansion request
I have been playing with an idea of having different IFF colors on a same team. So that you could highlight mission critical ships for example.. step above escort list in function. Wing Commander Saga could use such feature for setting capships IFF colors separate from fighters or BTRL to mark the civilian fleet with a single color, battlestarts on another to make the radar much, much more useful. Or like in normal FS 2 campaign you could mark critical ships with alternate color to make them stand out.

However using iff_defs.tbl for this atm is very useful as the ships which have different IFF colors still belong to separate teams. This causes problems for example with fred as it freaks out when ordeting ship to escort 'non-hostile' ship, but also as the friendly but not same iff ships do not follow 'normal rules'. On my tests escorting fighters sometimes attacked the ship they were supposed to escort, no traitor or friendly fire warnings were given nor did the 'non-hostile' ship care if you blew it away. Also missiles could be locked to the 'non-hostiles'.

So fooling around with current IFF defs table doesn't seem to help much here. So i originally though of if IFF color could be made sexp toggleable but after brief consultation this doesnt seem to be a good idea.. However.. would it be possible to expand iff_defs.tbl to accept sort of 'same team' flags or identifiers (sort of like inverse of what the current $Attacks: entry does). So that certain IFFs would actually function as a single 'IFF entity'.

Or even better to allow modders (and fredders) to define IFF relations even more closely.. so that if wanted it could be made even more complex so that you can choose what Team A can do to Team B, i.e Team A can order Team B but Team B can't order Team A etc. which would probably make fredders happy.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: IFF colors or rather iff_defs expansion request
Instead of requesting a brand new feature, let's fix the one we already have. :blah:

Can you write up some detailed reports about the bugs you've been having, and post them on Mantis, along with your full IFF table?  Ships with different IFFs are still supposed to cooperate if they're not overtly hostile.

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: IFF colors or rather iff_defs expansion request
Ok, i'll post a report there..

I just thought that as this might be changing existing behavior (however bugged it may or may not have been) so it would count as a 'feature' instead of being a 'bug'
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: IFF colors or rather iff_defs expansion request
Instead of requesting a brand new feature, let's fix the one we already have. :blah:

I don't think Wanderer was just asking for bug fixes. Some of this stuff is more of an extension of the functionality of the system. For instance sometimes I'd want to trigger the traitor behaviour if I shoot a friendly team. Other times I'd want to be able to define a new IFF def specifically so that I could shoot it without turning traitor. Similarly I may or may not want to be able to lock missiles, give orders or a whole bunch of other things.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: IFF colors or rather iff_defs expansion request
Okay, I see.  Well, we can probably add flags and stuff for that.  The bugs ought to be fixed; the extra features can hopefully be added without too much trouble. :)