<?xml version="1.0" encoding="utf-8"?>
<Items>
  <!-- -->
  <Item name="" identifier="minigun1" category="Equipment" cargocontaineridentifier="metalcrate" tags="weapon,gun,backpack" Scale="0.12" impactsoundtag="impact_metal_heavy" description="">
    <Price baseprice="1000">
      <Price locationtype="outpost" multiplier="2" minavailable="0" />
      <Price locationtype="city" multiplier="1" minavailable="0" />
      <Price locationtype="research" multiplier="1.25" minavailable="0" />
      <Price locationtype="military" multiplier="0.9" minavailable="1" />
      <Price locationtype="mine" multiplier="1.25" minavailable="0" />
    </Price>
    <Deconstruct time="60">
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="fpgacircuit" />
      <Item identifier="fpgacircuit" />
      <Item identifier="fpgacircuit" />
      <Item identifier="fpgacircuit" />
      <Item identifier="batterycell" />
      <Item identifier="batterycell" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="120">
      <RequiredSkill identifier="weapons" level="80" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="fpgacircuit" />
      <RequiredItem identifier="fpgacircuit" />
      <RequiredItem identifier="fpgacircuit" />
      <RequiredItem identifier="fpgacircuit" />
      <RequiredItem identifier="batterycell" />
      <RequiredItem identifier="batterycell" />
    </Fabricate>
    <Sprite texture="%ModDir%/Backpack Belt-Fed Minigun/Backpack Belt-Fed Minigun.png" sourcerect="3,10,1151,438" depth="0.55" origin="0.5,1" />
    <Body width="220" height="120" density="50" />
    <Holdable slots="RightHand+LeftHand" controlpose="true" holdpos="70,-80" aimpos="70,-80" handle1="-520,325" handle2="0,300" holdangle="1" msg="ItemMsgPickUpSelect">
      <StatusEffect type="OnWearing" target="Character" SpeedMultiplier="0.75" setvalue="true" />
      <StatusEffect type="OnUse" target="Character" SpeedMultiplier="0.25" setvalue="true" />
    </Holdable>
    <RangedWeapon reload="0.01" maxchargetime="0.02" barrelpos="460,300" spread="3" unskilledspread="30" combatPriority="800" drawhudwhenequipped="true" crosshairscale="0.01">
      <Crosshair texture="Content/Items/Weapons/Crosshairs.png" sourcerect="0,256,256,256" />
      <CrosshairPointer texture="Content/Items/Weapons/Crosshairs.png" sourcerect="256,256,256,256" />
      <ParticleEmitter particle="muzzleflash" particleamount="1" velocitymin="0" velocitymax="0" />
      <Sound file="%ModDir%/Backpack Belt-Fed Minigun/Backpack Belt-Fed Minigun - Shot.ogg" type="OnUse" range="3000" />
      <Crosshair texture="Content/Items/Weapons/Crosshairs.png" sourcerect="256,0,256,256" />
      <CrosshairPointer texture="Content/Items/Weapons/Crosshairs.png" sourcerect="0,0,256,256" />
      <StatusEffect type="OnUse">
        <Explosion range="500.0" force="0.1" shockwave="false" smoke="false" flames="false" sparks="false" underwaterbubble="false" camerashake="10.0" />
      </StatusEffect>
      <StatusEffect type="OnUse" target="This" condition="-0.2" disabledeltatime="true">
        <SpawnItem identifiers="minigunround1" spawnposition="ThisInventory" />
      </StatusEffect>
      <RequiredSkill identifier="weapons" level="80" />
    </RangedWeapon>
    <ItemContainer hideitems="true" capacity="1" drawinventory="false" SpawnWithId="minigunround1" removecontaineditemsondeconstruct="true" canbeselected="false">
      <Containable items="minigunround1" />
    </ItemContainer>
    <aitarget sightrange="2000" soundrange="4000" fadeouttime="5" />
    <Quality>
      <QualityStat stattype="AttackMultiplier" value="0.1" />
    </Quality>
  </Item>
  <!-- -->
  <Item name="" identifier="minigunammunitiontank" category="Equipment" tags="mediumitem" fireproof="true" waterproof="true" cargocontaineridentifier="metalcrate" scale="0.5" impactsoundtag="impact_metal_heavy" description="">
    <Price baseprice="500">
      <Price locationtype="outpost" multiplier="2" minavailable="0" />
      <Price locationtype="city" multiplier="1" minavailable="1" />
      <Price locationtype="research" multiplier="1.25" minavailable="0" />
      <Price locationtype="military" multiplier="0.75" minavailable="1" />
      <Price locationtype="mine" multiplier="1.25" minavailable="0" />
    </Price>
    <Deconstruct time="60">
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="titaniumaluminiumalloy" />
      <Item identifier="lead" copycondition="true" />
      <Item identifier="lead" copycondition="true" />
      <Item identifier="magnesium" copycondition="true" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="60">
      <RequiredSkill identifier="mechanical" level="60" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="titaniumaluminiumalloy" />
      <RequiredItem identifier="lead" copycondition="true" />
      <RequiredItem identifier="lead" copycondition="true" />
      <RequiredItem identifier="magnesium" copycondition="true" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" displayname="recycleitem" requiredtime="60">
      <RequiredSkill identifier="mechanical" level="50" />
      <RequiredItem identifier="lead" />
      <RequiredItem identifier="lead" />
      <RequiredItem identifier="magnesium" />
      <RequiredItem identifier="minigunammunitiontank" mincondition="0.0" maxcondition="0.0" usecondition="false" />
    </Fabricate>
    <InventoryIcon texture="%ModDir%/Backpack Belt-Fed Minigun/Backpack Belt-Fed Minigun 2.png" sourcerect="8,0,204,154" />
    <Sprite texture="%ModDir%/Backpack Belt-Fed Minigun/Backpack Belt-Fed Minigun 2.png" sourcerect="8,0,204,154" depth="0.6" origin="0.5,0.65" />
    <Body width="100" height="60" density="30" />
    <Wearable slots="Bag" msg="ItemMsgPickUpSelect">
      <damagemodifier afflictiontypes="burn" armorsector="0.0,360.0" damagemultiplier="0.9" />
      <damagemodifier afflictionidentifiers="blunttrauma,lacerations,gunshotwound" armorsector="0.0,360.0" damagemultiplier="0.2" damagesound="LimbArmor" deflectprojectiles="true" />
      <damagemodifier afflictionidentifiers="bitewounds" armorsector="0.0,360.0" damagemultiplier="0.3" damagesound="LimbArmor" deflectprojectiles="true" />
      <damagemodifier afflictiontypes="bleeding" armorsector="0.0,360.0" damagemultiplier="0.1" damagesound="LimbArmor" deflectprojectiles="true" />
      <sprite name="Backpack on character" texture="%ModDir%/Backpack Belt-Fed Minigun/Backpack Belt-Fed Minigun 2.png" canbehiddenbyotherwearables="false" limb="Torso" depth="0.001" inheritlimbdepth="true" hidelimb="false" inherittexturescale="true" origin="0.75,0.5" sourcerect="8,0,204,154" />
      <StatusEffect type="Always" targettype="Contained" targets="minigun1" Condition="8">
        <Conditional condition="gt 1" targetcontainer="true" />
      </StatusEffect>
      <StatusEffect type="Always" target="This" condition="-2.0">
        <RequiredItem item="minigun1" type="Contained" />
      </StatusEffect>
      <StatusEffect type="OnWearing" target="Character" SpeedMultiplier="0.6" setvalue="true" />
    </Wearable>
    <Holdable slots="RightHand+LeftHand" controlpose="true" holdpos="120,-35" aimpos="35,-35" handle1="-15,15" handle2="26,20" holdangle="1" msg="ItemMsgPickUpSelect">
      <Upgrade gameversion="0.1401.0.0" msg="ItemMsgPickUpUse" />
    </Holdable>
    <ItemContainer hideitems="true" capacity="1" drawinventory="true" canbeselected="false" ShowConditionInContainedStateIndicator="false" removecontaineditemsondeconstruct="false">
      <Containable items="minigun1">
        <Conditional condition="lt 100" />
      </Containable>
    </ItemContainer>
  </Item>
  <Item name="Minigun Round" identifier="minigunround1" category="Equipment" interactthroughwalls="true" cargocontaineridentifier="metalcrate" tags="smallitem" impactsoundtag="impact_metal_light" hideinmenus="true" scale="0.5">
    <InventoryIcon texture="Content/Items/InventoryIconAtlas.png" sourcerect="896,960,64,64" origin="0.5,0.5" />
    <Sprite texture="Content/Items/Weapons/weapons_new.png" sourcerect="195,282,17,6" depth="0.55" origin="0.5,0.5" />
    <Body width="40" height="14" density="40" />
    <Pickable slots="Any" msg="ItemMsgPickUpSelect" />
    <Projectile characterusable="false" hitscan="true" removeonhit="true">
      <ParticleEmitter particle="tracerfirearm" particleamount="1" velocitymin="0" velocitymax="0" colormultiplier="255,255,115,175" scalemultiplier="1,0.6" />
      <Attack structuredamage="5" targetforce="5" itemdamage="5" severlimbsprobability="0.5">
        <Affliction identifier="bleeding" strength="2.5" />
        <Affliction identifier="gunshotwound" strength="2.5" />
        <Affliction identifier="stun" strength="0.1" />
      </Attack>
      <StatusEffect type="OnImpact" target="UseTarget">
        <ParticleEmitter particle="impactfirearm" particleamount="1" velocitymin="0" velocitymax="0" />
      </StatusEffect>
      <StatusEffect type="OnImpact" target="UseTarget">
        <Conditional entitytype="eq Structure" />
        <Conditional hastag="eq door" />
        <ParticleEmitter particle="spark" copyentityangle="true" anglemin="-10" anglemax="10" particleamount="5" velocitymin="-10" velocitymax="-200" scalemin="0.5" scalemax="1" />
      </StatusEffect>
    </Projectile>
    <Upgrade gameversion="0.10.0.0" scale="0.5" />
  </Item>
</Items>