#Light Weapons
- type: entity
  id: LightMechaAutocannon
  name: LAC-29 20mm autocannon
  description: The everyman's mecha rifle. Chambered in 20mm, with balanced stats to tackle both Armored Frames and do light damage against ships. Fits on Light Hardpoints.
  suffix: Mech Weapon, Gun, Combat, Rifle
  parent: [ BaseMechWeaponRange, LightMechMountEquipment ]
  components:
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: assaultrifle64x32
  - type: Gun
    projectileSpeed: 110
    fireRate: 5
    minAngle: 0
    maxAngle: 20
    angleIncrease: 4
    angleDecay: 20
    selectedMode: FullAuto
    availableModes:
      - FullAuto
    soundGunshot:
      path: /Audio/_Mono/Weapons/Guns/Gunshots/slammer.ogg
  - type: Battery
    maxCharge: 180
  - type: ProjectileBatteryAmmoProvider
    proto: 20mmBullet
    fireCost: 60
  - type: Appearance
  - type: AmmoCounter

- type: entity
  id: LightMechaSMG
  name: RAC-6 .45 ACP rotary machine gun
  description: An uncommon choice of weaponry, it consists of a 6 barrelled gatling gun, chambered in .45 ACP. Overwhelms mecha with sheer firerate. Good for CQC. Fits on Light Hardpoints.
  suffix: Mech Weapon, Gun, Combat, SMG
  parent: [ BaseMechWeaponRange, LightMechMountEquipment ]
  components:
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: smg64x32
  - type: Gun
    projectileSpeed: 70
    fireRate: 14
    minAngle: 0
    maxAngle: 20
    angleIncrease: 2
    angleDecay: 20
    selectedMode: FullAuto
    availableModes:
      - FullAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/minigun.ogg
  - type: Battery
    maxCharge: 100
  - type: ProjectileBatteryAmmoProvider
    proto: Bullet45_ACPFMJ_Mech
    fireCost: 20

  - type: Appearance
  - type: AmmoCounter


- type: entity
  id: LightMechaShotgun
  name: SH-0.5 shotgun
  description: A large mech-grade shotgun chambered in 0.5 gauge shells, perfect for CQC combat, the firerate leaves much to be desired however. Fits on Light Hardpoints.
  suffix: Mech Weapon, Gun, Combat, Shotgun
  parent: [ BaseMechWeaponRange, LightMechMountEquipment ]
  components:
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: shotgun64x32
  - type: Gun
    projectileSpeed: 70
    fireRate: 3
    minAngle: 0
    maxAngle: 30
    angleIncrease: 10
    angleDecay: 5
    selectedMode: FullAuto
    availableModes:
      - FullAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/lmg.ogg
  - type: Battery
    maxCharge: 100
  - type: ProjectileBatteryAmmoProvider
    proto: MechPelletShotgunSpread
    fireCost: 100
  - type: Appearance
  - type: AmmoCounter

#Medium Weapons
- type: entity
  id: MediumMechDMR
  name: DMR-90mm autocannon
  description: A heavy duty autocannon chambered in 90mm. General purpose Medium Hardpoint gun.
  suffix: Mech Weapon, Gun, Combat, Cannon
  parent: [ BaseMechWeaponRange, MediumMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: sniper64x32
  - type: Gun
    projectileSpeed: 160
    fireRate: 2
    minAngle: 0
    maxAngle: 10
    angleIncrease: 2
    angleDecay: 10
    selectedMode: FullAuto
    availableModes:
      - FullAuto
    soundGunshot:
      path: /Audio/_Mono/Weapons/Guns/Gunshots/uaf_57mm.ogg
  - type: Battery
    maxCharge: 200
  - type: ProjectileBatteryAmmoProvider
    proto: Mech90mmBullet
    fireCost: 200
  - type: Appearance
  - type: AmmoCounter

- type: entity
  id: MediumMechCoilgun
  name: CL-03 EMP coilgun
  description: A medium-sized coilgun chambered in 3cm sabots. Inflicts minor damage, however spreads the dreaded EMP effect across an area. Needs a Medium Hardpoint.
  suffix: Mech Weapon, Gun, Combat, Cannon
  parent: [ BaseMechWeaponRange, MediumMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: laserrifle64x32
  - type: Gun
    projectileSpeed: 150
    fireRate: 1
    selectedMode: SemiAuto
    availableModes:
      - SemiAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/ship_perforator.ogg
  - type: Battery
    maxCharge: 400
  - type: ProjectileBatteryAmmoProvider
    proto: MechCoilgunSabot
    fireCost: 400
  - type: Appearance
  - type: AmmoCounter

- type: entity
  id: MediumMechTOW
  name: ASM-55 TOW anti-tank missile gantry
  description: Repurposed anti-tank missile. Wire guided computer is exchanged for a much more sophisticated targetting system, but the mobility leaves much to be desired. Fits in Medium Hardpoints.
  suffix: Mech Weapon, Gun, Combat, Cannon
  parent: [ BaseMechWeaponRange, MediumMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: tow64x32
  - type: Gun
    projectileSpeed: 50
    fireRate: 1.25
    selectedMode: SemiAuto
    availableModes:
      - SemiAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/lmg.ogg
  - type: Battery
    maxCharge: 500
  - type: ProjectileBatteryAmmoProvider
    proto: ShipMissileASM302
    fireCost: 500
  - type: Appearance
  - type: AmmoCounter

#Heavy Weapons
- type: entity
  id: HeavyMechRPG
  name: R3 "Bazooka" rocket system
  description: Ground based cruise missile launcher repurposed for mech usage. Guidance systems are all but removed to reduce the size, making the munitions glorified rockets. Mounts on Heavy Hardpoints.
  suffix: Mech Weapon, Gun, Combat, Missile
  parent: [ BaseMechWeaponRange, HeavyMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: rpg64x32
  - type: Gun
    fireRate: 0.25
    selectedMode: SemiAuto
    availableModes:
      - SemiAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/lmg.ogg
  - type: Battery
    maxCharge: 1000
  - type: ProjectileBatteryAmmoProvider
    proto: 280mmRocket
    fireCost: 500
  - type: Appearance
  - type: AmmoCounter

- type: entity
  id: HeavyMechCannon
  name: 220mm "Metronome" heavy burst autocannon
  description: A burst fire 220mm cannon, relatively inaccurate, but much longer ranged than the "Bazooka". Mounts on Heavy Hardpoints.
  suffix: Mech Weapon, Gun, Combat, Cannon
  parent: [ BaseMechWeaponRange, HeavyMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: heavycannon64x32
  - type: Gun
    projectileSpeed: 175
    fireRate: 3
    burstFireRate: 3
    shotsPerBurst: 3
    burstCooldown: 5
    minAngle: 0
    maxAngle: 15
    angleIncrease: 10
    angleDecay: 20
    selectedMode: Burst
    availableModes:
      - Burst
    soundGunshot:
      path: /Audio/_Mono/Weapons/Guns/Gunshots/120mm_mortar.ogg
  - type: Battery
    maxCharge: 300
  - type: ProjectileBatteryAmmoProvider
    proto: 120mmBulletHE
    fireCost: 100
  - type: Appearance
  - type: AmmoCounter

- type: entity
  id: HeavyMechProjector
  name: RAVAGER-type Plasma Cannon
  description: Based on the MARAUDER, the Ravager sacrifices range for rate of fire. Extremely inaccurate, and subpar lensing causes the projectiles to dissipate only a few seconds away. Devastating up close. Fits on Large Hardpoints.
  suffix: Mech Weapon, Gun, Combat, EnergyCannon
  parent: [ BaseMechWeaponRange, HeavyMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: _Mono/Objects/Specific/Mech/tgmc_mecha_weapons.rsi
    state: flamer64x32
  - type: Gun
    projectileSpeed: 80 # marauder is slow dingus... not inaccurate
    minAngle: 0
    maxAngle: 30
    fireRate: 3
    angleIncrease: 3
    angleDecay: 15
    selectedMode: FullAuto
    availableModes:
      - FullAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/laser_cannon2.ogg
  - type: Battery
    maxCharge: 300
  - type: ProjectileBatteryAmmoProvider
    proto: MechMediumPlasmaProjectile
    fireCost: 70
  - type: Appearance
  - type: AmmoCounter

#Misc Weapons
- type: entity
  id: EWACMechaJammer
  name: E-58 "Blanket" jammer
  description: An extremely specialized jamming tool, fires a volley of flares with extremely large jamming signals to screen an advance. Fits on EWAR Hardpoints.
  suffix: Mech Weapon, Gun, Combat, EWAR
  parent: [ BaseMechWeaponRange, EWARMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: Objects/Specific/Mech/mecha_equipment.rsi
    state: tesla
  - type: Gun
    projectileSpeed: 20
    fireRate: 0.1
    selectedMode: FullAuto
    availableModes:
      - FullAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/lmg.ogg
  - type: Battery
    maxCharge: 500
  - type: ProjectileBatteryAmmoProvider
    proto: BlanketFlare
    fireCost: 500
  - type: Appearance
  - type: AmmoCounter

- type: entity
  id: EWACMechaFlares
  name: E-58 "Spark" jammer
  description: A cheaper alternative to the Blanket, this emitter launches a volley of 5 flares to confuse enemy gunners. Fits on EWAR Hardpoints.
  suffix: Mech Weapon, Gun, Combat, EWAR
  parent: [ BaseMechWeaponRange, EWARMechMountEquipment ]
  components:
  - type: MechEquipment
    preventFireOnGrid: true
  - type: Sprite
    sprite: Objects/Specific/Mech/mecha_equipment.rsi
    state: tesla
  - type: Gun
    projectileSpeed: 20
    fireRate: 20
    shotsPerBurst: 6
    burstCooldown: 15
    selectedMode: Burst
    availableModes:
      - Burst
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/lmg.ogg
  - type: Battery
    maxCharge: 100
  - type: ProjectileBatteryAmmoProvider
    proto: SparkFlare
    fireCost: 10
  - type: Appearance
  - type: AmmoCounter
