- type: entity
  parent: CMBaseWeaponRifle
  name: M75A MAS
  id: AUWeaponRifleM75AMAS
  description: The M75A MAS is Armat Battlefield Systems newest modular weapons platform, intended to replace the aging M41 MK1 Pulse Rifle. The weapon is still in limited field testing among select CCAF infantry units.
  components:
  - type: Sprite
    sprite: _AU14/Weapons/Guns/CCAF/M75AMAS.rsi
    layers:
    - state: base
      map: [ "enum.GunVisualLayers.Base" ]
    - state: mag-0
      map: [ "enum.GunVisualLayers.Mag" ]
  - type: Clothing
    sprite: _AU14/Weapons/Guns/CCAF/M75AMAS.rsi
  - type: ContainerContainer
    containers:
      gun_magazine: !type:ContainerSlot
      gun_chamber: !type:ContainerSlot
  - type: Gun
    selectedMode: FullAuto
    availableModes:
    - SemiAuto
    - Burst
    - FullAuto
    soundGunshot:
      collection: CMM54CShoot
  - type: RMCSelectiveFire
    baseFireModes:
    - SemiAuto
    - Burst
    - FullAuto
    recoilUnwielded: 4
    scatterWielded: 6
    scatterUnwielded: 20
    baseFireRate: 4
    burstScatterMult: 1
  - type: RMCWeaponAccuracy
    accuracyMultiplier: 1.3
    accuracyMultiplierUnwielded: 0.65
  - type: ItemSlots
    slots:
      gun_magazine:
        name: Magazine
        insertSound: /Audio/_RMC14/Weapons/Guns/Reload/m41_reload.ogg
        ejectSound: /Audio/_RMC14/Weapons/Guns/Reload/m41_unload.ogg
        priority: 2
        whitelist:
          tags:
          - AU14MagazineRifleM75AMAS
  - type: AttachableHolder
    slots:
      rmc-aslot-barrel:
        whitelist:
          tags:
          - RMCAttachmentExtendedBarrel
          - RMCAttachmentExtendedCompensator
          - RMCAttachmentSuppressor
          - RMCM5Bayonet
      rmc-aslot-rail:
        whitelist:
          tags:
          - RMCAttachmentRailFlashlight
          - RMCAttachmentMagneticHarness
          - RMCAttachmentS5MicroRedDotSight
          - RMCAttachmentS5RedDotSight
          - RMCAttachmentS6ReflexSight
          - RMCAttachmentS84xTelescopicScope
          - RMCAttachmentS42xTelescopicMiniscope
      rmc-aslot-stock:
        startingAttachable: RMCAttachmentM54CStockCollapsible
        whitelist:
          tags:
          - RMCAttachmentM54CStockCollapsible # old meets new
      rmc-aslot-underbarrel:
        startingAttachable: RMCAttachmentMK1GrenadeLauncher
        whitelist:
          tags:
          - RMCAttachmentAngledGrip
          - RMCAttachmentVerticalGrip
          - RMCAttachmentFlashlightGrip
          - RMCAttachmentGyroscopicStabilizer
          - RMCAttachmentBipod
          - RMCAttachmentBurstFireAssembly
          - RMCAttachmentExtinguisher
          - RMCAttachmentFlamer
          - RMCAttachmentMK1GrenadeLauncher
          - RMCAttachmentLaserSight
  - type: AttachableHolderVisuals
    offsets:
      rmc-aslot-barrel: 0.67, -0.063
      rmc-aslot-rail: -0.18, 0.09
      rmc-aslot-stock: -0.81, -0.076
      rmc-aslot-underbarrel: 0.27, -0.38

- type: entity
  parent: CMMagazineRifleBase
  id: AU14MagazineRifleM75AMAS
  name: "M75AMAS Magazine (10x24mm)"
  components:
  - type: Tag
    tags:
    - CMMagazineRifle
    - AU14MagazineRifleM75AMAS
  - type: BallisticAmmoProvider
    mayTransfer: True
    whitelist:
      tags:
      - AU14MagazineRifleM75AMAS
    proto: AU14CartridgeRifleM75AMAS
    capacity: 20
  - type: Sprite
    sprite: _AU14/Weapons/Guns/Ammo/Magazines/CCAF/m75amasmagazine.rsi
    layers:
    - state: base
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-1
      map: ["enum.GunVisualLayers.Mag"]
  - type: Appearance

- type: entity
  parent: CMBaseCartridgeRifle
  id: AU14CartridgeRifleM75AMAS
  name: Cartridge (10x24mm)
  description: A 10x24mm rifle cartridge
  components:
  - type: Tag
    tags:
    - Cartridge
    - AU14CartridgeRifleM75AMAS
  - type: CartridgeAmmo
    proto: BulletRifleAR10

- type: entity
  parent: RMCBaseBullet
  id: AU14BulletRifleM75AMAS
  categories: [ HideSpawnMenu ]
  components:
  - type: Projectile
    damage:
      types:
        Piercing: 40
  - type: CMArmorPiercing
    amount: 5
  - type: RMCProjectileDamageFalloff
    thresholds:
    - range: 24
      falloff: 9999
      ignoreModifiers: true
    - range: 7
      falloff: 4
  - type: RMCProjectileAccuracy
    accuracy: 105
    thresholds:
    - range: 16
      falloff: 10

- type: Tag
  id: AU14MagazineRifleM75AMAS

- type: Tag
  id: AU14CartridgeRifleM75AMAS
