#region frame
- type: entity
  abstract: true
  parent: [ NFBaseWeaponEncumbranceLauncher, NFBaseGunMeleeAttackHigh, NFBaseItemWeaponGun ]
  id: NFBaseWeaponFrameLauncher
  suffix: Frontier
  components:
  - type: Wieldable
    unwieldOnUse: false
  - type: GunRequiresWield
  - type: GunWieldBonus
    minAngle: -0 # Set to 0 because GunRequiresWield
    maxAngle: -0
  - type: Gun
    minAngle: 1.4
    maxAngle: 7
    angleIncrease: 5.6
    angleDecay: 3.7
    fireRate: 1
    selectedMode: SemiAuto
    availableModes:
    - SemiAuto
  # - type: CursorOffsetRequiresWield
  # - type: EyeCursorOffset
    # maxOffset: 10
    # pvsIncrease: 1
  - type: StaticPrice
    price: 1500
  - type: NFWeaponDetails
    class: weapon-details-class-launcher

#region manufacturer
- type: entity
  abstract: true
  parent: NFBaseWeaponFrameLauncher
  id: NFBaseWeaponFrameLauncherNanotrasen
  components:
  - type: Gun
    minAngle: 1.6
    maxAngle: 8
    angleIncrease: 6.4
    angleDecay: 4.3
    fireRate: 0.7
  - type: NFWeaponDetails
    manufacturer: weapon-details-manufacturer-nanotrasen-munitions

- type: entity
  abstract: true
  parent: [ BaseC3SyndicateContraband, NFBaseWeaponFrameLauncher ]
  id: NFBaseWeaponFrameLauncherGorlex
  components:
  - type: Gun
    minAngle: 1.5
    maxAngle: 7.5
    angleIncrease: 6
    angleDecay: 4
  - type: NFWeaponDetails
    manufacturer: weapon-details-manufacturer-gorlex-steel-works

- type: entity
  abstract: true
  parent: [ BaseC3PirateContraband, NFBaseWeaponFrameLauncher ]
  id: NFBaseWeaponFrameLauncherSteelbolt
  components:
  - type: Gun
    minAngle: 1.5
    maxAngle: 7.5
    angleIncrease: 6
    angleDecay: 4
  - type: NFWeaponDetails
    manufacturer: weapon-details-manufacturer-steelbolt-tool-forge

#region chamber
- type: entity
  abstract: true
  id: NFBaseWeaponLauncherChamber
  components:
  - type: BallisticAmmoProvider
    soundInsert:
      path: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
    capacity: 1
  - type: ContainerContainer
    containers:
      ballistic-ammo: !type:Container
        ents: []

- type: entity
  abstract: true
  parent: NFBaseWeaponLauncherChamber
  id: NFBaseWeaponLauncherChamber40mmGrenades
  components:
  - type: Gun
    examineCaliber: gun-examine-caliber-40mm-grenade
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/grenade_launcher.ogg
  - type: BallisticAmmoProvider
    whitelist:
      tags:
        - Grenade
    capacity: 3
    proto: NFGrenadeFrag

- type: entity
  abstract: true
  id: NFBaseWeaponLauncherChamber40mmGrenadesNfsdSingleShot
  components:
  - type: Gun
    examineCaliber: gun-examine-caliber-40mm-grenade
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/grenade_launcher.ogg
  - type: ItemSlots
    slots:
      gun_chamber:
        name: Chamber
        startingItem: null
        priority: 1
        whitelist:
          tags:
            - NFTrackingDart
            - NFCartridgeGrenade40mmEmp
            - NFCartridgeGrenade40mmFlash
  - type: ChamberMagazineAmmoProvider
    autoCycle: false
    boltClosed: false
    canRack: false
    soundBoltClosed: /Audio/Weapons/Guns/MagIn/ltrifle_magin.ogg
    soundBoltOpened: /Audio/Weapons/Guns/MagOut/ltrifle_magout.ogg
    soundRack: /Audio/Weapons/Guns/Cock/ltrifle_cock.ogg
  - type: ContainerContainer
    containers:
      gun_chamber: !type:ContainerSlot

- type: entity
  abstract: true
  parent: NFBaseWeaponLauncherChamber
  id: NFBaseWeaponLauncherChamberRockets
  components:
  - type: Gun
    examineCaliber: gun-examine-caliber-rocket
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/rpgfire.ogg
  - type: BallisticAmmoProvider
    whitelist:
      tags:
        - CartridgeRocket
    proto: NFCartridgeRocket
  - type: MagazineVisuals
    magState: mag
    steps: 2
    zeroVisible: false

- type: entity
  abstract: true
  parent: NFBaseWeaponLauncherChamber
  id: NFBaseWeaponLauncherChamberCannonBalls
  components:
  - type: Gun
    examineCaliber: gun-examine-caliber-cannon-ball
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/mateba.ogg
  - type: BallisticAmmoProvider
    whitelist:
      tags:
      - CannonBall
    proto: CannonBall
    soundInsert:
      path: /Audio/Weapons/Guns/Gunshots/grenade_launcher.ogg
