Author Topic: New feature: iff_defs.tbl  (Read 3141 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
New feature: iff_defs.tbl
Just like species_defs.tbl, so now you can play with who shoots whom. :) This, by the way, is the cause of all those bugs that suddenly showed up around January 9th.  I think I've gotten them all ironed out, so have at it. :)

Here's the Wiki entry.  Many thanks to Wanderer for filling in the sections I was too lazy to add myself. :)

 

Offline FireCrack

  • 210
  • meh...
Re: New feature: iff_defs.tbl
Goob is on a FEATURE ATTACK!

Awesome job, i can see this one being usefull for campaigns.
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 
Re: New feature: iff_defs.tbl
Hooray, finally we can have 'friendly' ships blowing seven shades of **** out of each other. :D

EDIT: I think you should add two more flags though - targetable by enemy key, and targetable by friendly key. Just in case you want to make neutrals or unknowns not show up as enemies, say, if you wanted to make a civilian IFF.
« Last Edit: February 13, 2006, 05:30:38 am by SadisticSid »

  

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: New feature: iff_defs.tbl
EDIT: I think you should add two more flags though - targetable by enemy key, and targetable by friendly key. Just in case you want to make neutrals or unknowns not show up as enemies, say, if you wanted to make a civilian IFF.

Key as in keyboard?  I'm not sure what you mean here.

 
Re: New feature: iff_defs.tbl
Yes, by the H key and F key, respectively.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: New feature: iff_defs.tbl
Makes sense.

Suppose you make a force who are have a green iff. You want them to attack friendlies halfway through the mission but you want them to be targetable with the F key right at the start so you can't tell them apart from actual friendlies.

Can you do that with the current code or will F always target only ships with the same IFF as you?
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: New feature: iff_defs.tbl
The way it probably should be (I'm not exactly sure how it is now) is that F targets ships on your own team and H targets ships you attack.

Another possibility is to have F targets ships you don't attack and H target ships you do attack.  But this opens up messy possibilities with Unknown and Neutral, etc.

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: New feature: iff_defs.tbl
Civil war anybody? :D
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Re: New feature: iff_defs.tbl
Ah! This could do what I always wanted to do! Make traitors become allies of the hostiles! :D
Freelance Modeler | Amateur Artist

 

Offline FireCrack

  • 210
  • meh...
Re: New feature: iff_defs.tbl
^ gonna make custom debreifings for that?

Quote
SCREEE!!!!
Though your previous attack destroyed two of the sathanas's beam cannons you in the end managed to disarm the colossus leading to it's destruction, for this i bestow upon you the order of shiva, a rare honour to those of your species.
SCCCRREEEEEEEEEEEEE!!!!!!!!!!!
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 
Re: New feature: iff_defs.tbl
Makes sense.

Suppose you make a force who are have a green iff. You want them to attack friendlies halfway through the mission but you want them to be targetable with the F key right at the start so you can't tell them apart from actual friendlies.

Can you do that with the current code or will F always target only ships with the same IFF as you?

Yeah, this is exactly what I was thinking. But then presumably one would have the problem of being able to order his wingmen to attack the 'fake friendly' IFF ships, unless Goob's code makes provision for that.

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: New feature: iff_defs.tbl
Wouldnt that be a just a bit illogical? Like if player turns into a traitor his IFF status is swapped immediately. Wouldnt command map in similar way just about any attacking ship as hostile and assign new IFF to it on the instant they are recognized as such
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: New feature: iff_defs.tbl
What if you're on a mission like Lion's Den where there is no contact with Command? What if you wanted a few seconds of confusion before the IFF changes?
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: New feature: iff_defs.tbl
Yeah, this is exactly what I was thinking. But then presumably one would have the problem of being able to order his wingmen to attack the 'fake friendly' IFF ships, unless Goob's code makes provision for that.

You can only give orders to ships on your own team.  And I think you can only order them to attack teams specified as such in the table.