aliens

Author Topic: How to disable inventory slots in some armours?  (Read 307 times)

Offline Cooper

  • Colonel
  • ****
  • Posts: 157
  • Chryssalids are awesome
    • View Profile
How to disable inventory slots in some armours?
« on: December 09, 2024, 11:32:39 pm »
Hey!
How can I disable some  inventory slots in some armours (or soldier types)? Can't find it in the ruleset reference.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11777
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to disable inventory slots in some armours?
« Reply #1 on: December 09, 2024, 11:52:32 pm »
Technically you can't; how Piratez or XCF do this is placing invisible (just black) items in the respective slots.

Here's an example which "removes" backpack (because it's an astronaut suit with LSS):

Code: [Select]
armors:
  - type: STR_FLYING_SPACE_SUIT_UC
    builtInWeapons:
      - INV_NULL_3X3_BACK_PACK

Code: [Select]
items:
  - type: INV_NULL_3X3_BACK_PACK
    categories: [STR_BLANKS]
    weight: 0
    bigSprite: 442
    invWidth: 3
    invHeight: 3
    fixedWeapon: true
    defaultInventorySlot: STR_BACK_PACK
    recover: false

Bigob attached.

You can do the same thing with other slots, you just need differently shaped black items. If you have X-Com Files, you can look into /Resources/UI/Blanks/ for examples.

Offline Cooper

  • Colonel
  • ****
  • Posts: 157
  • Chryssalids are awesome
    • View Profile
Re: How to disable inventory slots in some armours?
« Reply #2 on: December 10, 2024, 01:57:05 pm »
Alright, clever! Will look into this. Thanks!