- type: entity
  id: LightFighterOrdinanceGPOProjectile
  name: GPO-L 50kg Unguided Bomb
  description: Just passing by.
  parent: BaseBulletTrigger
  categories: [ HideSpawnMenu ]
  components:
  - type: Projectile
    damage:
      types:
        Structural: 100
        Blunt: 50
        Heat: 50
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/GPO.rsi
    layers:
    - state: GPO
    scale: 1, 1
  - type: Ammo
    muzzleFlash: null
  - type: ShipWeaponProjectile
  - type: RadarBlip
    radarColor: "#ffff00"
    scale: 2
    requireNoGrid: true
    shape: square
  - type: TimedDespawn
    lifetime: 30
  - type: ExplodeOnTrigger
  - type: Explosive
    explosionType: HardBombShipGun
    totalIntensity: 2000
    intensitySlope: 30
    maxIntensity: 1500
  - type: MiningGatheringSoft
  - type: MiningGatheringHard
  # destructible components below
  - type: Physics
    bodyType: Dynamic
  - type: Fixtures
    fixtures:
      projectile:
        shape:
          !type:PhysShapeCircle
          radius: 0.4
        density: 50
        layer:
        - WallLayer
        mask:
        - MachineMask
  - type: Damageable
    damageContainer: Inorganic
    damageModifierSet: Metallic
  - type: Meteor
    damageTypes:
      types:
        Blunt: 1
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 250
      behaviors:
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
      - !type:ExplodeBehavior
      - !type:PlaySoundBehavior
        sound:
          collection: MetalBreak

- type: entity
  id: LightFighterOrdinanceGPOItem
  name: GPO-L 50kg Unguided Bomb
  description: A fairly durable and relatively high yield explosive payload. Rarely seen in conventional space combat and a remnant of ground-based warfare, bombs can deal devastating damage... if they manage to hit their target. It can fit in a light GPOL housing.
  parent: BaseGrenade
  components:
  - type: Tag
    tags:
    - LightFighterOrdinance
  - type: Item
    size: Huge
  - type: CartridgeAmmo
    proto: LightFighterOrdinanceGPOProjectile
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/GPO.rsi
    layers:
    - state: GPO
      map: ["enum.AmmoVisualLayers.Base"]
    scale: 1, 1
  - type: Appearance
  - type: SpentAmmoVisuals
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 250
      behaviors:
      - !type:DoActsBehavior
        acts: ["Destruction"]
      - !type:ExplodeBehavior
  - type: ExplodeOnTrigger
  - type: Explosive
    explosionType: Default
    maxIntensity: 100
    intensitySlope: 3
    totalIntensity: 50

# Unguided 50kg bomb end

- type: entity
  id: LightFighterOrdinanceZenithProjectile
  name: ASM(LF) "Zenith" Anti-Ship Warhead
  parent: BaseBulletTrigger
  categories: [ HideSpawnMenu ]
  components:
  - type: Projectile
    damage:
      types:
        Structural: 500
        Blunt: 50
        Heat: 50
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/zenith.rsi
    layers:
    - state: zenith
    scale: 1, 1
  - type: Ammo
    muzzleFlash: MuzzleFlashEffectSmall
  - type: ShipWeaponProjectile
  - type: RadarBlip
    radarColor: "#ffff00"
    scale: 2
    requireNoGrid: true
    shape: triangle
  - type: TimedDespawn
    lifetime: 10
  - type: PointLight
    radius: 5
    color: orange
    energy: 2
  - type: ExplodeOnTrigger
  - type: Explosive
    explosionType: HardBombShipGun
    totalIntensity: 100
    intensitySlope: 10
    maxIntensity: 150
  - type: MiningGatheringSoft
  - type: MiningGatheringHard
  - type: TargetSeeking
    acceleration: 15
    detectionRange: 750
    scanArc: 35
    launchSpeed: 20
    maxSpeed: 70
    trackDelay: 0.5
  # destructible components below
  - type: Physics
    bodyType: Dynamic
  - type: Fixtures
    fixtures:
      projectile:
        shape:
          !type:PhysShapeCircle
          radius: 0.4
        density: 10
        layer:
        - WallLayer
        mask:
        - MachineMask
  - type: Damageable
    damageContainer: Inorganic
    damageModifierSet: Metallic
  - type: Meteor
    damageTypes:
      types:
        Blunt: 0.5
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 120
      behaviors:
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
      - !type:ExplodeBehavior
      - !type:PlaySoundBehavior
        sound:
          collection: MetalBreak

- type: entity
  id: LightFighterOrdinanceZenithItem
  name: ASM(LF)5 "Zenith" Anti-Ship Warhead
  description: A military-grade guided missile usually deployed by light spacecraft. Capable of significant damage and more easy to hit targets with than a bomb, the Zenith is accurate and fast, but not durable. It can fit in a light GPOL housing.
  parent: BaseGrenade
  components:
  - type: Tag
    tags:
    - LightFighterOrdinance
  - type: Item
    size: Huge
  - type: CartridgeAmmo
    proto: LightFighterOrdinanceZenithProjectile
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/zenith.rsi
    layers:
    - state: zenith
      map: ["enum.AmmoVisualLayers.Base"]
    scale: 1.3, 1
  - type: Appearance
  - type: SpentAmmoVisuals
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 250
      behaviors:
      - !type:DoActsBehavior
        acts: ["Destruction"]
      - !type:ExplodeBehavior
  - type: ExplodeOnTrigger
  - type: Explosive
    explosionType: Default
    maxIntensity: 100
    intensitySlope: 3
    totalIntensity: 20

# Zenith end

- type: entity
  id: LightFighterOrdinanceQuasarProjectile
  name: QUASAR hyperpenetrator
  parent: BaseBulletTrigger
  categories: [ HideSpawnMenu ]
  components:
  - type: Projectile
    damage:
      types:
        Structural: 15000
        Piercing: 1500
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/quasar.rsi
    layers:
    - state: quasarshot
    scale: 0.7, 0.7
  - type: Ammo
    muzzleFlash: MuzzleFlashEffectSmall
  - type: ShipWeaponProjectile
  - type: RadarBlip
    radarColor: "#CF0E0E"
    scale: 2
    requireNoGrid: true
    shape: triangle
  - type: TimedDespawn
    lifetime: 0.8
  - type: PointLight
    radius: 5
    color: green
    energy: 2
  - type: ExplodeOnTrigger
  - type: Explosive
    explosionType: HardBombShipGun
    maxIntensity: 25
    intensitySlope: 1000
    totalIntensity: 25
  - type: MiningGatheringSoft
  - type: MiningGatheringHard
  - type: TargetSeeking
    acceleration: 200
    detectionRange: 1
    scanArc: 1
    launchSpeed: 500
    maxSpeed: 500
    trackDelay: 1

- type: entity
  id: LightFighterOrdinanceQuasarItem
  name: AD-901 "QUASAR" disposable hyperpenetrator
  description: A costly and experimental foray into the minification of hyperaccelerator technologies for use on smaller spaceframes, the QUASAR hyperpenetrator is a relatively weak, but fast-moving munition impervious to most anti-munition weapons. It can fit in a light GPOL housing.
  parent: BaseGrenade
  components:
  - type: Tag
    tags:
    - LightFighterOrdinance
  - type: Item
    size: Huge
  - type: CartridgeAmmo
    proto: LightFighterOrdinanceQuasarProjectile
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/quasar.rsi
    layers:
    - state: quasar
      map: ["enum.AmmoVisualLayers.Base"]
    scale: 1, 1
  - type: Appearance
  - type: SpentAmmoVisuals
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 250
      behaviors:
      - !type:DoActsBehavior
        acts: ["Destruction"]
      - !type:ExplodeBehavior
  - type: ExplodeOnTrigger
  - type: Explosive
    explosionType: Default
    maxIntensity: 100
    intensitySlope: 3
    totalIntensity: 10

# Quasar end
