- type: entity
  abstract: true
  parent: RMCDropshipAttachmentBase
  id: RMCDropshipAttachmentAmmo
  components:
  - type: Sprite
    sprite: _RMC14/Objects/dropship_ammo.rsi
  - type: DropshipAmmo
    rounds: 400
    maxRounds: 400
  - type: PowerLoaderAttachable
    attachableTypes:
    - RMCDropshipWeaponPoint
  - type: PowerLoaderDetachable
  - type: PowerLoaderGrabbable
    virtualRight: RMCVirtualDropshipAmmoRight
    virtualLeft: RMCVirtualDropshipAmmoLeft
  - type: Appearance

- type: entity
  parent: RMCDropshipAttachmentAmmo
  id: RMCDropshipAttachmentAmmoGAU
  name: PGU-100 Multi-Purpose 30mm ammo crate
  description: "A crate full of PGU-100 30mm Multi-Purpose ammo designed to penetrate light (non reinforced) structures, as well as shred infantry, IAVs, LAVs, IMVs, and MRAPs. Works in large areas for use on Class 4 and superior alien insectoid infestations, as well as fitting within the armaments allowed for use against a tier 4 insurgency as well as higher tiers. However, it lacks armor penetrating capabilities, for which Anti-Tank 30mm ammo is needed. Can be loaded into the GAU-21 30mm cannon."
  components:
  - type: Sprite
    layers:
    - state: 30mm_crate_10
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    ammoType: 30mm_crate
    rounds: 400
    maxRounds: 400
    roundsPerShot: 40
    damage:
      groups:
        Brute: 105
    armorPiercing: 10
    weapon: RMCDropshipAttachmentGau21Cannon
    soundCockpit: /Audio/_RMC14/Dropship/gau_incockpit.ogg
    soundGround: /Audio/_RMC14/Dropship/gau.ogg
    soundImpact:
      path: /Audio/_RMC14/Dropship/gauimpact.ogg
      params:
        volume: -6
    impactEffects:
    - RMCEffectExplosionParticle

- type: entity
  parent: RMCDropshipAttachmentAmmoGAU
  id: RMCDropshipAttachmentAmmoGAUAP
  name: PGU-105 30mm Anti-tank ammo crate
  description: "A crate full of PGU-105 Specialized 30mm APFSDS Titanium-Tungsten alloy penetrators, made for countering peer and near peer APCs, IFVs, and MBTs in CAS support. It is designed to penetrate up to the equivalent 1350mm of RHA when launched from a GAU-21. It is much less effective against soft targets however, in which case 30mm ball ammunition is recommended. WARNING: discarding petals from the ammunition can be harmful if the dropship does not pull out at the needed speeds. Please consult page 3574 of the manual, available for order at any AEGIS store. Can be loaded into the GAU-21 30mm cannon."
  components:
  - type: Sprite
    layers:
    - state: 30mm_crate_hv_10
      map: [ "enum.DropshipAmmoVisuals.Fill" ]
  - type: DropshipAmmo
    ammoType: 30mm_crate_hv
    bulletSpread: 4
    damage:
      groups:
        Brute: 80
    armorPiercing: 40
    travelTime: 6

- type: entity
  id: RMCEffectExplosionParticle
  name: explosion
  components:
  - type: Transform
    anchored: true
  - type: Sprite
    sprite: _RMC14/Effects/effects.rsi
    state: explosion_particle
  - type: TimedDespawn
    lifetime: 0.5
  - type: EffectAlphaAnimation
  - type: PointLight
    enabled: true
    radius: 1
  - type: RMCScorchEffectOnSpawn
    probability: 0.5
    tileLimit: 4
    scatter: true
    randomRotation: true

- type: entity
  abstract: true
  parent: RMCDropshipAttachmentAmmo
  id: RMCDropshipAttachmentAmmoRocket
  name: abstract rocket
  components:
  - type: Sprite
    sprite: _RMC14/Objects/dropship_ammo_64.rsi
    offset: 0.5, 0.5
    layers:
    - state: single
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.49, -0.49, 1.49, 0.49"
        density: 100
        mask:
        - MachineMask
        layer:
        - MachineLayer
  - type: DropshipAmmo
    rounds: 1
    maxRounds: 1
    roundsPerShot: 1
    targetSpread: 3 # TODO RMC14 max 6 when no longer lased
    bulletSpread: 0
    travelTime: 6
    weapon: RMCDropshipAttachmentGuidedMissileLauncher
    soundCockpit: /Audio/_RMC14/Effects/rocketpod_fire.ogg
    soundMarker: /Audio/_RMC14/Effects/rocketpod_fire.ogg #IncommingRocket.ogg sounds better, and more accurate, but this is what is used in parity, i believe it to be a mistake in the original PR, but we can change it in the future
    deleteOnEmpty: true

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: RMCDropshipAttachmentAmmoRocketWidowmaker
  name: AIM-224B 'Widowmaker'
  description: The AIM-224B missile is a retrofit of the latest in air-to-air missile technology. Earning the nickname of 'Widowmaker' from various dropship pilots after improvements to its guidance warhead prevents it from being jammed leading to its high kill rate. Not well suited for ground bombardment but its high velocity makes it reach its target quickly. This one has been modified to be a free-fall bomb as a result of dropship ammo shortages. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: DropshipAmmo
    travelTime: 3
    explosion:
      total: 3000
      slope: 5.5
      max: 55
- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoRocketWidowmakerDoubleADMIN
  name: "AIM-224A 'Octuple Widow' (DO NOT MAP)"
  description: The AIM-224A missile is a retrofit of the latest in air-to-air missile technology. Earning the nickname of 'Double Widow' due to it being two Widow Makers stacked on top of each other. Both rockets are fired at the same time and are highly unpredictable. Not well suited for ground bombardment but its high velocity makes it reach its target quickly. This one has been modified to be a two round free-fall bomb as a result of dropship ammo shortages. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: double
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    rounds: 8
    maxRounds: 8
    roundsPerShot: 8
    bulletSpread: 30
    travelTime: 3
    explosion:
      total: 3000
      slope: 5.5
      max: 55

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: RMCDropshipAttachmentAmmoRocketKeeper
  name: GBU-67 'Keeper II'
  description: The GBU-67 'Keeper II' is the latest in a generation of laser guided weaponry that spans all the way back to the 20th century. Earning its nickname from a shortening of 'Peacekeeper' which comes from the program that developed its guidance system and the various uses of it during peacekeeping conflicts. Its payload is designed to devastate armored targets. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: paveway
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 2
    explosion:
      total: 905
      slope: 15
      max: 45

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: RMCDropshipAttachmentAmmoRocketNapalm
  name: AGM-99 'Napalm'
  description: The AGM-99 'Napalm' is an incendiary missile used to turn specific targeted areas into giant balls of fire for a long time. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: napalm
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo # TODO RMC14 not usable in fire mission, only direct bombardment
    travelTime: 6
    explosion:
      total: 1780
      slope: 7.2
      max: 50
    fire:
      type: RMCTileFireNapalm
      range: 3
      cardinalRange: 5

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: RMCDropshipAttachmentAmmoRocketHarpoon
  name: AGM-184 'Harpoon II'
  description: The AGM-184 Harpoon II is an Anti-Ship Missile, designed and used to effectively take down enemy ships with a huge blast wave with low explosive power. This one is modified to use ground signals and can be seen as a cheaper alternative to conventional ordnance. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: harpoon
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 5
    explosion:
      total: 1850
      slope: 3.2
      max: 32

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: RMCDropshipAttachmentAmmoRocketThermobaric
  name: BLU-200 'Dragon's Breath'
  description: The BLU-200 'Dragon's Breath' is a thermobaric fuel-air bomb. The aerosolized fuel mixture creates a vacuum when ignited causing serious damage to those in its way. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: fatty
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 5
    implosion:
      pullRange: 5.5
      pullDistance: 3.5
      pullSpeed: 15
    fire:
      type: RMCTileFireThermobaric
      range: 1
      cardinalRange: 3
      ordinalRange: 3
    soundWarning: /Audio/_RMC14/Effects/rocketpod_fire.ogg
    markerWarning: true

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: RMCDropshipAttachmentAmmoRocketBanshee
  name: AGM-227 'Banshee'
  description: The AGM-227 missile is a mainstay of the overhauled dropship fleet against any mobile or armored ground targets. It's earned the nickname of 'Banshee' from the sudden wail that it emits right before hitting a target. Useful to clear out large areas. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: banshee
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 6
    explosion:
      total: 2000
      slope: 5.5
      max: 40
    fire:
      type: RMCTileFireBanshee
      range: 1
      cardinalRange: 3
      ordinalRange: 3

- type: entity
  abstract: true
  parent: RMCDropshipAttachmentAmmo
  id: RMCDropshipAttachmentAmmoMiniRocket
  components:
  - type: Sprite
    layers:
    - state: minirocket_6
      map: [ "enum.DropshipAmmoVisuals.Fill" ]
  - type: DropshipAmmo
    rounds: 6
    maxRounds: 6
    roundsPerShot: 1
    bulletSpread: 0
    travelTime: 8
    weapon: RMCDropshipAttachmentRocketPod
    soundCockpit: /Audio/_RMC14/Effects/rocketpod_fire.ogg
    soundMarker: /Audio/_RMC14/Effects/rocketpod_fire.ogg
    deleteOnEmpty: true

- type: entity
  parent: RMCDropshipAttachmentAmmoMiniRocket
  id: RMCDropshipAttachmentAmmoRocketMiniMike
  name: AGR-59 'Mini-Mike'
  description: The AGR-59 'Mini-Mike' minirocket is a cheap and efficient means of putting hate down range. Though rockets lack a guidance package, it makes up for it in ammunition count. Can be loaded into the LAU-229 Rocket Pod.
  components:
  - type: DropshipAmmo
    ammoType: minirocket
    explosion:
      total: 850
      slope: 8
      max: 40
    impactEffects:
    - RMCEffectExplosionParticle
    - RMCSmokeExplosionProofSmall

- type: entity
  parent: RMCDropshipAttachmentAmmoRocketMiniMike
  id: RMCDropshipAttachmentAmmoRocketMiniMikeIncendiary
  name: AGR-59-I 'Mini-Mike'
  description: The AGR-59-I 'Mini-Mike' incendiary minirocket is a cheap and efficient means of putting hate down range AND setting them on fire! Though rockets lack a guidance package, it makes up for it in ammunition count. Can be loaded into the LAU-229 Rocket Pod.
  components:
  - type: Sprite
    layers:
    - state: minirocket_inc_6
      map: [ "enum.DropshipAmmoVisuals.Fill" ]
  - type: DropshipAmmo
    ammoType: minirocket_inc
    fire:
      type: RMCTileFireMiniMike
      range: 1
      cardinalRange: 2

- type: entity
  parent: RMCDropshipAttachmentBase
  id: RMCDropshipAttachmentAmmoLaunchableSentry
  name: A/C-49-P Air Deployable Sentry
  description: An omni-directional sentry, capable of defending an area from lightly armored hostile incursion. Can be loaded into the LAG-14 Internal Sentry Launcher.
  components:
  - type: Sprite
    sprite: _RMC14/Objects/dropship_ammo.rsi
    state: launchable_sentry
  - type: DropshipFabricatorPrintable
    cost: 200
  - type: PowerLoaderAttachable
    attachableTypes:
    - RMCDropshipUtilityPoint
  - type: PowerLoaderDetachable
  - type: Appearance
  - type: RMCOrbitalDeployable
    deployPrototype: RMCSentryDropship
    deployBlacklist:
      components:
      - Turret

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoRocketThermobaricTwo
  name: BLU-176 'Overpressure'
  description: The BLU-176 'Overpressure' is a thermobaric fuel-air bomb and the smaller cousin of the BLU-200 'Dragon’s Breath'.  The aerosolized fuel mixture creates a vacuum when ignited, causing severe damage to anything in its path. It can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: chubby
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 5
    implosion:
      pullRange: 4
      pullDistance: 2.5
      pullSpeed: 16
    fire:
      type: RMCTileFireThermobaric
      range: 1
      cardinalRange: 2
      ordinalRange: 2
    soundWarning: /Audio/_RMC14/Effects/rocketpod_fire.ogg
    markerWarning: true
    impactEffects:
    - RMCSmokeExplosionProofSmall

- type: entity
  parent: RMCSmokeExplosionProof
  id: AU14SmokeExplosionProofJDAM
  components:
  - type: EvenSmoke
    spawn: RMCSmoke
    range: 5

- type: entity
  id: AU14EffectExplosionParticleJDAM
  name: explosion
  components:
  - type: Transform
    anchored: true
  - type: Sprite
    sprite: _RMC14/Effects/effects.rsi
    state: explosion_particle
  - type: TimedDespawn
    lifetime: 0.5
  - type: EffectAlphaAnimation
  - type: PointLight
    enabled: true
    radius: 7
  - type: RMCScorchEffectOnSpawn
    probability: 0.9
    tileLimit: 10
    scatter: true
    randomRotation: true

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoMk102JDAM
  name: GBU-89B 'Postman'
  description: The GBU-89B Joint Direct Attack Munition is an old but reliable large guided munition. It has an excessively long travel time, but can level entire buildings. It can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: jdam
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 12
    explosion:
      total: 10000
      slope: 4.5
      max: 100000000
    impactEffects:
    - AU14EffectExplosionParticleJDAM

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoGBU89I
  name: GBU-89C/N 'Burning Postman'
  description: The GBU-89B/Napalm Joint Direct Attack Munition is an old but reliable large guided munition. It has an excessively long travel time, but can level and set alight entire buildings. It can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: jdami
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 11
    explosion:
      total: 10000
      slope: 4.5
      max: 100000000
    fire:
      type: RMCTileFireNapalm
      range: 3
      cardinalRange: 5
    impactEffects:
    - AU14EffectExplosionParticleJDAM
    - AU14SmokeExplosionProofJDAM

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoCBU250
  name: CBU-250 'Dinner Spread'
  description: The CBU-250 'Dinner Spread' is a cluster munition designed for use against lightly armored vehicles and enemy infantry. Upon deployment, the munition separates into twelve low-yield bomblets, dispersing them unevenly across a wide area. It can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: cluster
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 6
    rounds: 12
    maxRounds: 12
    roundsPerShot: 12
    bulletSpread: 17
    explosion:
      total: 110
      slope: 4
      max: 8
    impactEffects:
    - RMCEffectExplosionParticle
    - RMCSmokeExplosionProofSmall

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoRocketWidowmakerDouble
  name: AIM-224B 'Double Widow' Rack
  description: A two round launch rack of the AIM-224B missile. Earning the nickname of 'Double Widow' due to it being two Widow Makers stacked on top of each other. Both rockets are fired at the same time and are highly unpredictable. Not well suited for ground bombardment but its high velocity makes it reach its target quickly. This one has been modified to be a two round free-fall bomb as a result of dropship ammo shortages. Can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: double
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    rounds: 2
    maxRounds: 2
    roundsPerShot: 2
    bulletSpread: 9
    travelTime: 3
    explosion:
      total: 3000
      slope: 5.5
      max: 55

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoRocketBansheeHorde
  name: AIM-207 'Cutlass' Rack
  description: A four-round launch rack of AIM-207 “Cutlass” missiles modified for ground strikes. Originally an air-to-air missile, the Cutlass was adapted with a simplified guidance package and a proximity-fused warhead, allowing the rack to disperse all four rockets in a wide saturation pattern over a designated target area. It can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: bansheem
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    rounds: 4
    maxRounds: 4
    roundsPerShot: 4
    bulletSpread: 5
    travelTime: 6
    explosion:
      total: 190
      slope: 11
      max: 78
    impactEffects:
    - RMCEffectExplosionParticle
    - RMCSmokeExplosionProofSmall

- type: entity
  parent: RMCDropshipAttachmentAmmoRocket
  id: AU14DropshipAttachmentAmmoCBU607
  name: CBU-607 'Skeet Shooter' Rack
  description: The CBU-607 'Skeet Shooter' is a four missile cluster munition rack designed for use against medium armored vehicles and enemy infantry. Upon deployment, each munition separates into two mid-yield bomblets, dispersing them tightly across a small area. It can be loaded into the LAU-444 Guided Missile Launcher.
  components:
  - type: Sprite
    layers:
    - state: sgw
      map: [ "enum.DropshipAmmoVisuals.Fill"]
  - type: DropshipAmmo
    travelTime: 4
    rounds: 6
    maxRounds: 6
    roundsPerShot: 6
    bulletSpread: 5
    explosion:
      total: 100
      slope: 12
      max: 11
    impactEffects:
    - RMCEffectExplosionParticle
    - RMCSmokeExplosionProofSmall
