- type: entity
  name: M492 Smart LMG
  id: WeaponLightMachineGunM492
  parent: [BaseWeaponLightMachineGun, BaseSecurityContraband]
  description: A high tech non-traditional LMG built specifically for combating the big threats among us. Uses .30 ammo.
  components:
  - type: Sprite
    sprite: _Starlight/Objects/Weapons/Guns/LMGs/M492.rsi
    layers:
    - state: base
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-3
      map: ["enum.GunVisualLayers.Mag"]
  - type: Clothing
    sprite: _Starlight/Objects/Weapons/Guns/LMGs/M492.rsi
    quickEquip: false
    slots:
    - Back
    - suitStorage
  - type: GunRequiresWield
  - type: GunWieldBonus
    minAngle: 0
    maxAngle: 0
  - type: MagazineVisuals
    magState: mag
    steps: 4
    zeroVisible: true
  - type: Gun
    minAngle: 10
    maxAngle: 35
    angleIncrease: 0.75
    angleDecay: 15
    fireRate: 6
  - type: Appearance
  # - type: RestrictByEquippedTag # Need Port from starlight #https://github.com/ss14Starlight/space-station-14/pull/1104
  #   requiredTag: "RequiredForLmgTag"
  #   denialMessage: "lmg-restricted-to-hardsuit-message"
  #   denialSound: /Audio/Machines/custom_deny.ogg
  - type: ItemSlots
    slots:
      gun_chamber:
        name: Chamber
        startingItem: CartridgeLightRifleSP
        priority: 1
        whitelist:
          tags:
            - CartridgeLightRifle
      gun_magazine:
        name: Magazine
        startingItem: MagazineLightRifleBeltBox
        whitelist:
          tags:
            - LightRifleHeavy
  - type: Biocode # delete after port
    factions:
    - NanoTrasen
  - type: FactionClothingBlocker

- type: entity
  name: M492 "Incinerator"
  id: WeaponLightMachineGunM492Cburn
  parent: [WeaponLightMachineGunM492, BaseCentcommContraband ]
  description: A modification of the smart machine gun, created specifically for CBURN squads. Uses .30 rounds.
  components:
  - type: Sprite
    sprite: _Starlight/Objects/Weapons/Guns/LMGs/M492_CBURN.rsi
    layers:
    - state: base
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-3
      map: ["enum.GunVisualLayers.Mag"]
  - type: Clothing
    sprite: _Starlight/Objects/Weapons/Guns/LMGs/M492_CBURN.rsi
  - type: ItemSlots
    slots:
      gun_chamber:
        name: Chamber
        startingItem: CartridgeLightRifleIncendiary
        priority: 1
        whitelist:
          tags:
            - CartridgeLightRifle
      gun_magazine:
        name: Magazine
        startingItem: MagazineLightRifleBeltBoxIncendiary
        whitelist:
          tags:
            - LightRifleHeavy

- type: entity
  name: DP-28 LMG
  id: WeaponLightMachineGunDP28
  parent: [BaseWeaponLightMachineGun, BaseMajorContraband] #BaseSovietContraband]
  description: From RA-TA-TA-TA with love. Uses .30 ammo.
  components:
  - type: Sprite
    sprite: _Starlight/Objects/Weapons/Guns/LMGs/DP28.rsi
    layers:
    - state: base
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-0
      map: ["enum.GunVisualLayers.Mag"]
  - type: Clothing
    sprite: _Starlight/Objects/Weapons/Guns/LMGs/DP28.rsi
    quickEquip: false
  - type: ChamberMagazineAmmoProvider
    soundRack:
      path: /Audio/Weapons/Guns/Cock/m41_cock.ogg
    soundBoltClosed:
      path: /Audio/Weapons/Guns/Bolt/lmg_bolt_closed.ogg
    soundBoltOpened:
      path: /Audio/Weapons/Guns/Cock/shotgun_open.ogg
  - type: Appearance
  - type: ItemSlots
    slots:
      gun_magazine:
        name: Magazine
        startingItem: MagazineLightRifleMaxim
        insertSound: /Audio/Weapons/Guns/MagOut/batrifle_magout.ogg
        ejectSound: /Audio/Weapons/Guns/MagIn/rifle_load.ogg
        whitelist:
          tags:
            - MagazineLightRiflePan
      gun_chamber:
        name: Chamber
        startingItem: CartridgeHeavyRifleRFMJ
        priority: 1
        whitelist:
          tags:
            - CartridgeHeavyRifleR
  - type: ClothingSpeedModifier
    walkModifier: 1
    sprintModifier: 0.85
  - type: HeldSpeedModifier
  - type: Gun
    minAngle: 20
    maxAngle: 27
    angleIncrease: 2
    angleDecay: 10
    fireRate: 5
    soundGunshot:
      path: /Audio/_Starlight/Weapons/Guns/Gunshots/dp28.ogg

- type: entity
  id: MagazineLightRifleMaxim
  name: "pan magazine (7.62mmR)"
  parent: BaseMagazineDragunov
  components:
  - type: Tag
    tags:
      - MagazineLightRiflePan
  - type: BallisticAmmoProvider
    proto: CartridgeHeavyRifleRFMJ
    capacity: 47
  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Magazine/LightRifle/maxim.rsi
