aliens

Author Topic: [Suggestion] Restrict certain ARMORS from certain crafts  (Read 59 times)

Online Daev

  • Sergeant
  • **
  • Posts: 47
    • View Profile
[Suggestion] Restrict certain ARMORS from certain crafts
« on: May 14, 2025, 07:23:35 pm »
Hello, I have delved into the ruleset references for crafts, transformations, scripts etc. But I cannot find a way to restrict armor types for certain crafts.

The idea being that Power Armored Soldiers cannot fit on a motor bike or in a small craft like an interceptor.

I know you can restrict by SoldierTypes, but in the mod i am working on, promotions change the soldier type, meaning rookies are completely different from higher ranks, and their stats are much higher as well.

I don't want to restrict the type (or in my case stats/level) of soldier you can bring on a vehicle, but I do want to restrict what armor you can bring on the vehicle, to have tradeoff between fast strike style vehicles and slow troop transports. If you have to travel light and fast, no power armor, but if the mission can wait (Like a sitetype mission) then you can bring the PA on a different vehicle.

This is not a request, but if this is not possible, please move the topic to feature requests.

I hope this makes sense
« Last Edit: May 14, 2025, 10:23:31 pm by Daev »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9562
    • View Profile
Re: Is it possible to restrict certain ARMORS from certain crafts?
« Reply #1 on: May 14, 2025, 09:28:38 pm »
You can't restrict by armor, but you can restrict by armor size (small or large).

This is not a request, but if this is not possible, please move the topic to feature requests.

I hope this makes sense

No, this sentence doesn't make any sense.
Either it is a request or it is not a request.
« Last Edit: May 14, 2025, 09:37:56 pm by Meridian »

Online Daev

  • Sergeant
  • **
  • Posts: 47
    • View Profile
Re: Is it possible to restrict certain ARMORS from certain crafts?
« Reply #2 on: May 14, 2025, 10:22:55 pm »
Yeah my bad, I didn't know if it was possible to restrict by armor or not. If it was then the topic was support/help category, as it was not a Suggestion.

Seeing that it is a Suggestion now, I am curious to know how easy that would be to implement, if you think its worth the gameplay aspect it introduces.

The example i would propose is somthing like this:

Code: [Select]
- type: STR_SKYRANGER
    sprite: 0
    fuelMax: 1500
    damageMax: 150
    speedMax: 760
    accel: 2
    soldiers: 14
    restrictedArmors:
        - STR_POWER_SUIT_UC
        - STR_FLYING_SUIT_UC
    vehicles: 3


Somthing like this, or the reverse would work!
« Last Edit: May 14, 2025, 10:31:13 pm by Daev »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9562
    • View Profile
Re: [Suggestion] Restrict certain ARMORS from certain crafts
« Reply #3 on: May 14, 2025, 10:48:56 pm »
I'd go for `allowedArmorGroups` similar to `allowedSoldierGroups` as described here: https://openxcom.org/forum/index.php?topic=10678.msg161784#msg161784

Not difficult to do.

I don't have any strong opinion on this, but Yankes already voted for this earlier (https://openxcom.org/forum/index.php?topic=10678.msg147883#msg147883) and your two combined votes are enough for me to spend one Monday evening working on it.

Online Daev

  • Sergeant
  • **
  • Posts: 47
    • View Profile
Re: [Suggestion] Restrict certain ARMORS from certain crafts
« Reply #4 on: May 14, 2025, 11:21:27 pm »
Sweet! Thank you Merdian!