- type: entity
  parent: CMBeltMarine
  id: AU14BeltMarineUPP
  name: Type 41 pattern ammo load rig
  suffix: AU14
  description: The Type 41 load rig is the standard-issue load-bearing equipment of the UPP military. The primary function of this belt is to provide easy access to mags for the Type 71 during operations. Despite being designed for the Type 71 weapon system, the pouches are modular enough to fit other types of ammo and equipment.
  components:
  - type: Sprite
    sprite: _AU14/Clothing/UPP/belt/ammo.rsi
  - type: Clothing
    sprite: _AU14/Clothing/UPP/belt/ammo.rsi
  - type: ItemCamouflage
    camouflageVariations: {}

- type: entity
  parent: CMBeltMarine
  id: AU14BeltMarineArmyUPP
  suffix: AU14
  name: 6B80 pattern ammo rig
  description: The 6B80 is an outdated but reliable ammo rig, formerly standard for the UPP Army. Its modular belt holds various munitions, still used by UPP security forces and reserves for its rugged design.
  components:
  - type: Sprite
    sprite: _RMC14/Objects/Clothing/Belt/spp_brown.rsi
  - type: Clothing
    sprite: _RMC14/Objects/Clothing/Belt/spp_brown.rsi
  - type: ItemCamouflage
    camouflageVariations: {}

- type: entity
  parent: CMBeltBaseStorage
  id: AU14BeltUtilityGeneralUPP
  name: Type 48-M general utility pouch
  description: A small, lightweight pouch that can be clipped onto U-pattern UPP armor to provide additional storage. The newer 48-M model, while uncomfortable, can also be clipped around the waist.
  components:
  - type: Sprite
    sprite: _AU14/Clothing/UPP/belt/general.rsi
  - type: Clothing
    slots:
    - suitStorage
    - belt
    sprite: _AU14/Clothing/UPP/belt/general.rsi
  - type: ItemCamouflage
    camouflageVariations: {}

- type: entity
  parent: CMBeltMedical
  id: AU14BeltMedicalUPP
  name: Type 41 pattern medical storage rig
  description: The Type 41 is the standard load-bearing equipment of UPP military. It consists of a modular belt with various clips. This version is a less common configuration, designed to transport medical supplies. \nRight click its sprite and click \"toggle belt mode\" to take pills out of bottles by simply clicking them.
  components:
  - type: Sprite
    sprite: _AU14/Clothing/UPP/belt/medical.rsi
  - type: Clothing
    sprite: _AU14/Clothing/UPP/belt/medical.rsi

- type: entity
  parent: RMCM276ShotgunShellLoadingRig
  id: AU14ShotgunShellLoadingRigUPP
  name: Type 42 pattern shotgun shell loading rig
  suffix: AU14
  description: An ammunition belt designed to hold shotgun shells, primarily for the Type 23 shotgun. # or individual bullets. TODO RMC14
  components:
  - type: Sprite
    sprite: _AU14/Clothing/RMC/belt/shotgun.rsi
    layers:
    - state: icon
    - state: sixth
      visible: false
    - state: third
      visible: false
    - state: half
      visible: false
    - state: twothirds
      visible: false
    - state: fivesixths
      visible: false
    - state: full
      visible: false
  - type: Clothing
    sprite: _AU14/Clothing/RMC/belt/shotgun.rsi
  - type: ItemCamouflage
    camouflageVariations: {}

- type: entity
  parent: CMBeltMedicBag
  id: AU14BeltMedicBagUPP
  name: Type 41 pattern lifesaver bag
  suffix: AU14
  description: The Type 41 load rig is the standard load-bearing equipment of the UPP military. This configuration mounts a duffel bag filled with a range of injectors and light medical supplies, and is common among medics.
  components:
  - type: Sprite
    sprite: _AU14/Clothing/RMC/belt/medicbag.rsi
  - type: Clothing
    sprite: _AU14/Clothing/RMC/belt/medicbag.rsi
  - type: ItemCamouflage
    camouflageVariations: {}

- type: entity
  parent: CMBeltMarine
  id: AU14BeltSmartGunOperatorUPP
  name: Type 90 pattern machinegunner belt
  suffix: AU14
  description: Recently adopted by UPP military, this belt allows machinegunners to carry more ammo boxes into battle. It also found use with SOF breachers using Type 23 shotguns.
  components:
  - type: Sprite
    sprite: _AU14/Clothing/UPP/belt/machinegun.rsi
  - type: Clothing
    sprite: _AU14/Clothing/UPP/belt/machinegun.rsi
  - type: Storage
    maxItemSize: Normal
    grid:
    - 0,0,13,1 # 7 slots
    whitelist:
      tags:
      - CMMagazinePistol
      - CMMagazineRifle
      - RMCMagazineShotgun
      - CMMagazineSmg
      - CMMagazineSniper
      - RMCMagazineLMGQYJ72
      - RMCShellShotgun
      - Flare
  - type: FixedItemSizeStorage
  - type: IgnoreContentsSize
    items:
      tags:
      - RMCMagazineLMGQYJ72
  - type: ItemCamouflage
    camouflageVariations: {}

- type: entity
  parent: CMBeltMarine
  id: AU14BeltSmartGunOperatorPistolUPP
  suffix: AU14
  name: Type 92 pattern machinegunner sidearm rig
  description: Type 92 is an experimental ammo-carrying rig issued to UPP machinegunners which combines a sidearm holster with box-shaped pouches for limited storage.
  components:
  - type: Sprite
    sprite: _AU14/Clothing/UPP/belt/machinegun_pistol.rsi
    layers:
    - state: icon
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: m1984 # TODO RMC14 per-gun underlay
      offset: 0.15625, 0.0
      map: [ "enum.CMHolsterLayers.Fill" ]
      visible: false
    - sprite: _AU14/Clothing/UPP/belt/machinegun_pistol.rsi
      state: icon-front
    - state: half
      map: [ "openLayer" ]
    - state: full
      map: [ "closedLayer" ]
  - type: Clothing
    sprite: _AU14/Clothing/UPP/belt/machinegun_pistol.rsi
  - type: Storage   # Holds up to 4 drums/magazines and 1 sidearm
    maxItemSize: Normal
    grid:
    - 0,0,9,1 # 5 slots
    whitelist:
      tags:
      - Sidearm
      - CMMagazinePistol
      - RMCMagazineRevolver
      - RMCMagazineLMGQYJ72
      - Flare
  - type: FixedItemSizeStorage
  - type: IgnoreContentsSize
    items:
      tags:
      - RMCMagazineLMGQYJ72
  - type: LimitedStorage
    limits:
    - popup: rmc-storage-limit-one-gun
      whitelist:
        tags:
        - Sidearm
    - popup: rmc-storage-limit-max-ammo
      count: 4
      whitelist:
        tags:
        - CMMagazinePistol
        - RMCMagazineRevolver
        - RMCMagazineLMGQYJ72
  - type: CMHolster
    whitelist:
      tags:
      - Sidearm
  - type: Tag
    tags:
    - RMCSmartGunSidearmHolster
  - type: ItemCamouflage
    camouflageVariations: { }

- type: entity
  parent: RMCBeltHolsterPistol
  id: AU14BeltHolsterPistolUPP
  suffix: AU14
  name: Type 47 pistol holster rig
  description: This UPP-designed sidearm rig can very snugly and securely fit a Type-73, NP92, or a ZHNK-72, and their magazines or speedloaders. However, it lacks versatility in stored weaponry.
  components:
  - type: Sprite
    sprite: _AU14/Clothing/UPP/belt/holster.rsi
    layers:
    - state: icon
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: _m77
      map: [ "_m77_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: m1984
      map: [ "m1984_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: mk80
      map: [ "mk80_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: b92fs
      map: [ "b92fs_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: m13
      map: [ "m13_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: highpower
      map: [ "mk45_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: tt
      map: [ "t73_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: l54
      map: [ "l54_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: deagle
      map: [ "handcannon_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: g_deagle
      map: [ "g_handcannon_fill" ]
    - sprite: _RMC14/Objects/Weapons/Guns/gun_underlays.rsi
      state: c_deagle
      map: [ "co_handcannon_fill" ]
    - state: icon-front
      map: [ "holstered" ]
    - state: half
      map: [ "openLayer" ]
    - state: full
      map: [ "closedLayer" ]
  - type: Clothing
    sprite: _AU14/Clothing/UPP/belt/holster.rsi
    slots:
    - suitStorage
    - belt
  - type: ItemCamouflage
    camouflageVariations: {}
