- type: entity
  parent: [ CMBaseWeaponRifle, RMCBaseWeaponMagazineVisuals ]
  id: RMCWeaponRifleL24B
  name: L23B 'Breacher' assault rifle
  description: Pulse action 8.8x51mm caseless assault rifle of the Royal Marine Commandos, personal friend of any Marine Commando. Comes with semi-auto and burst-fire firemodes and features an integrated 30mm grenade launcher that can hold two grenades on backup with one in the chamber
  components:
  - type: Sprite
    sprite: _AU14/Weapons/Guns/RMC/L23.rsi
    layers:
    - state: base
      map: [ "enum.GunVisualLayers.Base" ]
    - state: mag-0
      map: [ "enum.GunVisualLayers.Mag" ]
  - type: Clothing
    sprite: _AU14/Weapons/Guns/RMC/L23.rsi
  - type: Gun
    shotsPerBurst: 3
    selectedMode: FullAuto
    availableModes:
    - SemiAuto
    - Burst
    - FullAuto
    soundGunshot:
      collection: RMCSSG45Shoot
  - type: RMCSelectiveFire
    baseFireModes:
    - SemiAuto
    - Burst
    - FullAuto
    recoilWielded: 2
    recoilUnwielded: 0.5
    scatterWielded: 3
    scatterUnwielded: 10
    baseFireRate: 3.5
    burstScatterMult: 1
    modifiers:
      Burst:
        fireDelay: 0.08
        maxScatterModifier: 4
        useBurstScatterMult: true
        unwieldedScatterMultiplier: 2
        shotsToMaxScatter: 3
      FullAuto:
        fireDelay: 0
        maxScatterModifier: 6
        useBurstScatterMult: true
        unwieldedScatterMultiplier: 2
        shotsToMaxScatter: 4
  - type: RMCWeaponAccuracy
    accuracyMultiplier: 1.3
    accuracyMultiplierUnwielded: 0.90
  - type: MagazineAmmoProvider
    autoEject: false
    soundAutoEject: null
  - type: ItemSlots
    slots:
      gun_magazine:
        name: Magazine
        startingItem: RMCMagazineRifleL24
        insertSound: /Audio/_RMC14/Weapons/Guns/Reload/m41_reload.ogg
        ejectSound: /Audio/_RMC14/Weapons/Guns/Reload/m41_unload.ogg
        priority: 2
        whitelist:
          tags:
          - RMCMagazineRifleL24
          - RMCMagazineRifleL24AP
          - RMCMagazineRifleL24Extended
          - RMCMagazineRifleL24HEAP
          - RMCMagazineRifleL24Incendiary
  - type: GunDamageModifier
    multiplier: 1
  - type: AttachableHolder
    slots:
      rmc-aslot-barrel:
        whitelist:
          tags:
          - RMCM5Bayonet
      rmc-aslot-rail:
        whitelist:
          tags:
          - RMCAttachmentRailFlashlight
          - RMCAttachmentS5RedDotSight
          - RMCAttachmentS6ReflexSight
          - RMCAttachmentS42xTelescopicMiniscope
      rmc-aslot-stock:
        locked: true
        startingAttachable: RMCAttachmentL24Stock
        whitelist:
          tags:
          - RMCAttachmentL24Stock
      rmc-aslot-underbarrel:
        locked: true
        startingAttachable: RMCAttachmentU7UnderbarrelShotgun
        whitelist:
          tags:
          - RMCAttachmentU7UnderbarrelShotgun
  - type: AttachableHolderVisuals
    offsets:
      rmc-aslot-barrel: 0.8, -0.03
      rmc-aslot-rail: -0.0175, 0.12
      rmc-aslot-stock: -0.5, -0.1
      rmc-aslot-underbarrel: 0.31375, -0.315


- type: Tag
  id: RMCWeaponRifleL24B

