- type: entity
  parent: BaseWeaponBallisticTurret
  id: WeaponTurretPirate
  suffix: Pirate
  components:
  - type: NpcFactionMember
    factions:
    - Pirate
  - type: Gun
    burstFireRate: 8
    shotsPerBurst: 5
    burstCooldown: 0.3
    minAngle: 1
    maxAngle: 30
    angleIncrease: 5
    angleDecay: 8
    selectedMode: Burst
    availableModes:
    - Burst
    soundGunshot: /Audio/Weapons/Guns/Gunshots/gun_sentry.ogg
  - type: BallisticAmmoProvider
    proto: CartridgePistol40SP
    capacity: 250
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 600
      behaviors:
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
      - !type:PlaySoundBehavior
        sound:
          collection: MetalGlassBreak
      - !type:SpawnEntitiesBehavior
        spawn:
          WeaponTurretSyndicateBroken:
            min: 1
            max: 1
    - trigger:
        !type:DamageTrigger
        damage: 300
      behaviors:
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
      - !type:PlaySoundBehavior
        sound:
          collection: MetalGlassBreak
      - !type:SpawnEntitiesBehavior
        spawn:
          WeaponTurretSyndicateBroken:
            min: 1
            max: 1
          SheetSteel1:
            min: 3
            max: 5

- type: entity
  parent: BaseWeaponBallisticTurret
  id: WeaponTurretPirateDisposable
  name: disposable ballistic turret
  suffix: Pirate, Disposable
  components:
  - type: NpcFactionMember
    factions:
    - Pirate
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 600
      behaviors:
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
    - trigger:
        !type:DamageTrigger
        damage: 200
      behaviors:
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
      - !type:TriggerBehavior
  - type: Gun
    burstFireRate: 13
    shotsPerBurst: 10
    burstCooldown: 1.2
    minAngle: 5
    maxAngle: 30
    angleIncrease: 1
    angleDecay: 10
    selectedMode: Burst
    availableModes:
    - Burst
    soundGunshot: /Audio/Weapons/Guns/Gunshots/gun_sentry.ogg
  - type: BallisticAmmoProvider
    proto: CartridgePistolImprovisedMech
    capacity: 142
  - type: Construction
    deconstructionTarget: null
    graph: WeaponTurretSyndicateDisposable
    node: disposableTurret
  - type: Repairable
    qualityNeeded: "Anchoring"
    doAfterDelay: 3
  - type: TriggerOnEmptyGunshot
  - type: ExplodeOnTrigger
  - type: Explosive
    explosionType: Default
    maxIntensity: 10
    intensitySlope: 1.5
    totalIntensity: 30
    canCreateVacuum: false
