
- type: entity
  name: MG-100 Vindicator Minigun
  parent: BaseItem
  id: WeaponMinigunMG100
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: _Sunrise/Objects/Weapons/Guns/HMGs/minigun/big.rsi
    state: icon
  - type: Item
    sprite: _Sunrise/Objects/Weapons/Guns/HMGs/minigun/tiny.rsi
    size: Ginormous
  - type: Gun
    minAngle: 10
    maxAngle: 120
    angleIncrease: 1 #3 секунды стрельбы до точности имперского штурмовика =3
    angleDecay: 40
    fireRate: 12
    selectedMode: FullAuto
    availableModes:
    - FullAuto
    soundGunshot:
      path: /Audio/_Sunrise/Weapons/Guns/HMGs/minigun_shot.ogg
  - type: ClothingSlotAmmoProvider
  - type: SlotBasedConnectedContainer
    targetSlot: BACK
    containerWhitelist:
      tags:
      - PowerpackMinigunMG100
  - type: Appearance
  - type: Wieldable
  - type: UseDelay
    delay: 1
  - type: GunRequiresWield

- type: entity
  id: PowerpackMinigunMG100
  parent: [ BasePowerpackMG100, ClothingBackpack ]
  components:
  - type: Item
    size: Ginormous
  - type: BallisticAmmoProvider
    mayTransfer: True
    proto: CartridgeRifleSP
  - type: Storage
    maxItemSize: Huge
    grid:
    - 0,0,5,3
  - type: ExplosionResistance
    damageCoefficient: 0.1
  - type: ItemSlots
    slots:
      weapon_slot:
        ejectOnInteract: true
        whitelist:
          components:
          - ClothingSlotAmmoProvider
  - type: ContainerFill
    containers:
      weapon_slot:
      - WeaponMinigunMG100

- type: entity
  id: PowerpackMinigunMG100Incendiary
  parent: PowerpackMinigunMG100
  components:
  - type: BallisticAmmoProvider
    proto: CartridgeRifleIncendiary

- type: entity
  id: PowerpackMinigunMG100Improvised
  parent: PowerpackMinigunMG100
  components:
  - type: BallisticAmmoProvider
    proto: CartridgeRifleImprovised

- type: entity
  id: BasePowerpackMG100
  parent: BaseItem
  abstract: true
  components:
  - type: Tag
    tags:
    - PowerpackMinigunMG100
  - type: Clothing
    slots: BACK
    sprite: _Sunrise/Objects/Weapons/Guns/Powerpacks/Powerpacks/backpack.rsi
  - type: BallisticAmmoProvider
    mayTransfer: true
    whitelist:
      tags:
      - CartridgeLightRifle
    capacity: 1600
  - type: ClothingSpeedModifier
    walkModifier: 0.5
    sprintModifier: 0.5
  - type: ContainerContainer
    containers:
      ballistic-ammo: !type:Container
      storagebase: !type:Container
      weapon_slot: !type:ContainerSlot
  - type: Sprite
    sprite: _Sunrise/Objects/Weapons/Guns/Powerpacks/Powerpacks/backpack.rsi
    layers:
    - state: mag-0
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-3
      map: ["enum.GunVisualLayers.Mag"]
  - type: MagazineVisuals
    magState: mag
    steps: 4
    zeroVisible: false
  - type: Appearance

- type: entity
  name: DL6902 machine gun
  parent: BaseItem
  id: WeaponDL6902PowerPack
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: _Sunrise/Objects/Weapons/Guns/LMGs/dl6902_feed.rsi
    state: icon
  - type: Item
    sprite: _Sunrise/Objects/Weapons/Guns/LMGs/dl6902_feed.rsi
    size: Huge
    shape:
    - 0,0,6,4
  - type: Gun
    minAngle: 5
    maxAngle: 80
    angleIncrease: 1.5
    angleDecay: 40
    fireRate: 8
    selectedMode: FullAuto
    availableModes:
    - FullAuto
    soundGunshot:
      collection: m249
      params:
        volume: 10
  - type: ClothingSlotAmmoProvider
  - type: SlotBasedConnectedContainer
    targetSlot: BACK
    containerWhitelist:
      tags:
      - PowerpackDL6902
  - type: Appearance
  - type: Wieldable
  - type: UseDelay
    delay: 0.5
  - type: GunRequiresWield
  - type: SpeedModifiedOnWield
    walkModifier: 0.9
    sprintModifier: 0.9
  - type: StaticPrice
    price: 7500
  - type: DisarmMalus
    malus: 0

- type: entity
  name: DL6902 Powerpack
  id: PowerpackDL6902
  parent: [ BasePowerpackMG100, ClothingBackpack ]
  components:
  - type: Item
    size: Ginormous
  - type: Clothing
    slots: BACK
    sprite: _Sunrise/Objects/Weapons/Guns/Powerpacks/Powerpacks/syndie_backpack.rsi
  - type: Sprite
    sprite: _Sunrise/Objects/Weapons/Guns/Powerpacks/Powerpacks/syndie_backpack.rsi
    layers:
    - state: mag-0
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-1
      map: ["enum.GunVisualLayers.Mag"]
  - type: MagazineVisuals
    magState: mag
    steps: 2
    zeroVisible: false
  - type: Appearance
  - type: BallisticAmmoProvider
    mayTransfer: true
    whitelist:
      tags:
      - CartridgeLightRifle
    proto: CartridgeLightRifleFMJ
    capacity: 900
  - type: ClothingSpeedModifier
    walkModifier: 0.85
    sprintModifier: 0.85
  - type: Storage
    maxItemSize: Huge
    grid:
    - 0,0,6,4
  - type: ExplosionResistance
    damageCoefficient: 0.1
  - type: EntityTableContainerFill
    containers:
      storagebase: !type:AllSelector
        children:
        - id: CrazyGlue
      weapon_slot: !type:AllSelector
        children:
        - id: WeaponDL6902PowerPack
  - type: ItemSlots
    slots:
      weapon_slot:
        ejectOnInteract: true
        whitelist:
          components:
          - ClothingSlotAmmoProvider
  - type: StaticPrice
    price: 5500
  - type: Tag
    tags:
    - PowerpackDL6902
