<Items>
  <Item
    name="Railgun"
    focusonselected="true"
    offsetonselected="700"
    linkable="true"
    pickdistance="150">

    <Sprite texture ="railgunbase.png"/>

    <Turret barrelsprite="railgunbarrel.png" canbeselected = "true" linkable="true" origin="0.5, 0.85" barrelpos="128, 128" 
            rotationlimits="180,360"
            powerconsumption="500.0">
      <StatusEffect type="OnUse" target="This" sound="Content/Items/Weapons/railgun.ogg">
        <Explosion range="10.0" structuredamage="0" force="0.05"/>
      </StatusEffect>
    </Turret>

    <ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver,Wire" type="Equipped"/>
      <input name="power_in"/>
      <input name="position_in"/>
      <input name="trigger_in"/>
    </ConnectionPanel>
  </Item>

  <Item
    name="Railgun Controller"
    type="Controller"
    linkable="true"
    pickdistance="150">

    <Sprite texture ="railguncontroller.png" depth="0.8"/>
    
    <Controller userpos="-1" direction ="Right" canbeselected = "true">
      <limbposition limb="Head" position="0,-124"/>
      <limbposition limb="LeftHand" position="38,-125"/>
      <limbposition limb="RightHand" position="38,-125"/>
    </Controller>

    <ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver,Wire" type="Equipped"/>
      <input name="power_in"/>
      <output name="position_out"/>
      <output name="trigger_out"/>
    </ConnectionPanel>
  </Item>

  <Item
    name="Railgun Loader"
    linkable="true"
    pickdistance="150">

    <Sprite texture ="railgunloader.png" depth =" 0.8"/>

    <ItemContainer hideitems="false" drawinventory="true" capacity="5" itempos="54,-61" iteminterval="40,0" itemrotation="90" canbeselected = "true">
      <Containable name="Railgun Shell"/>
    </ItemContainer>
      
  </Item>
  
  <Item
    name="Railgun Shell"
    pickdistance="200">

    <Sprite texture ="railgunshell.png" depth ="0.5"/>

    <Body width="87" height="18"/>

    <Holdable slots="BothHands" holdpos="0,-50" handle1="-10,0" handle2="10,0" aimable="false"/>
    
    <Projectile launchimpulse="80.0">
      <Attack damage="100" bleedingdamage="10" structuredamage="200" damagetype="Blunt"/>
    </Projectile>

    <ItemContainer hideitems="true" capacity="1" canbeselected = "true">
      <Containable name="smallitem"/>
    </ItemContainer>    
  </Item>
</Items>

