OpenXcom Forum

Modding => Released Mods => The X-Com Files => Topic started by: Alex_D on November 30, 2018, 10:34:29 pm

Title: Aircraft armanent
Post by: Alex_D on November 30, 2018, 10:34:29 pm
A quick question with regard of a craft mounting hard-points. These can be either gun, light missiles, etc. But is there a entry where a hard point can be multipurpose? Example: The hard point (not the device) can mount a gun, or a missile, or a shield? I was thinking on having one multi-mission hard-point that can fit a wide variety of type of things (e.g. missiles and guns) rather than only one category (e.g. missiles or guns).
Title: Re: Aircraft armanent
Post by: Solarius Scorch on December 01, 2018, 11:41:02 am
A quick question with regard of a craft mounting hard-points. These can be either gun, light missiles, etc. But is there a entry where a hard point can be multipurpose? Example: The hard point (not the device) can mount a gun, or a missile, or a shield? I was thinking on having one multi-mission hard-point that can fit a wide variety of type of things (e.g. missiles and guns) rather than only one category (e.g. missiles or guns).

Yes, it's possible - after all, that's how vanilla works.
Do you have any specific ideas here?
(I'm moving this discussion to a new topic.)
Title: Re: Aircraft armanent
Post by: Alex_D on December 02, 2018, 04:01:57 am
Yes, it's possible - after all, that's how vanilla works.
Do you have any specific ideas here?
(I'm moving this discussion to a new topic.)

Well, it started with the CF-105 and one of its real-life design features that its internal bay is multipurpose. It can be missiles, rockets (nuclear tipped), bombs, more fuel, etc. In real life the space was filled with a sensor pack as part of the avionic studies.
I was thinking into creating a tiny mod about it. But then I researched better interceptors. Thus at the end I moved the plane to a remote arctic base (too keep up with the lore), to be mothballed again for the XCF part 2 (in the 2040s) :)
Title: Re: Aircraft armanent
Post by: Solarius Scorch on December 02, 2018, 01:01:59 pm
The problem is, as usual, my ignorance: I don't know if a hardpoint can be for example cannon or missiles, but not anything else (beam, engine mod etc.). If someone can help, please let me know.
Title: Re: Aircraft armanent
Post by: Meridian on December 02, 2018, 04:32:12 pm
The problem is, as usual, my ignorance: I don't know if a hardpoint can be for example cannon or missiles, but not anything else (beam, engine mod etc.). If someone can help, please let me know.

Yes, I think so.
Title: Re: Aircraft armanent
Post by: ohartenstein23 on December 02, 2018, 05:08:33 pm
Yes, this is possible. From Yankes' documentation:
Code: [Select]
crafts:
  - type: STR_CRAFT_TYPE
    weapons: 4          #weapon number increased to 4.
    weaponTypes:        #definition of allowed weapon types in craft. Max 4 different types per slot.
      - 0               #slot 1 accepts weapons with type 0. This is default.
      - 0               #slot 2 accepts weapons with type 0.
      - [0, 4, 13]      #slot 3 accepts weapons with type 0, 4 and 13.
      - 1               #slot 4 accepts weapons with type 1.

You define multiple types allowed per slot.
Title: Re: Aircraft armanent
Post by: Solarius Scorch on December 02, 2018, 06:50:20 pm
All right, thank you!