<?xml version="1.0" encoding="utf-8"?>
<Override>
  <Items>
    <!-- EFFECT ITEMS -->
    <Item name="Acid Gases" identifier="wastesporeemitter" Scale="1" category="hidden" nonplayerteaminteractable="True" tags="gas" sonarsize="0" hideinmenus="true" health="10" depth="0.1" isdangerous="true" damagedbyprojectiles="false" damagedbyrepairtools="true" spritecolor="180,230,50,255" hideconditionbar="true">
      <Sprite texture="Content/Particles/ParticleAtlas.png" sourcerect="274,145,95,95" depth="0.55" />
      <Body radius="20" bodytype="kinematic" />
      <Holdable slots="Any" msg="ItemMsgPickUpSelect" />
      <ItemComponent>
        <!-- 	particle emitter -->
        <StatusEffect type="Always" target="This" condition="-1">
          <ParticleEmitter particle="acidmistgrenade" particlespersecond="8" scalemin="0.15" scalemax="0.25" velocitymin="40" velocitymax="60" anglemin="-20" anglemax="200" copyentityangle="false" LifeTimeMultiplier="1" colormultiplier="255,220,0,150" />
          <ParticleEmitter particle="bubbles" particlespersecond="8" scalemin="1" scalemax="1.5" velocitymin="20" velocitymax="50" anglemin="0" anglemax="360" copyentityangle="false" LifeTimeMultiplier="1" />
          <sound file="Content/Items/Alien/AlienPump.ogg" range="700.0" loop="true" volume="2" frequencymultiplier="0.25" />
        </StatusEffect>
        <!-- 	the actual damage emitter, 10 second lifetime, generates stun and slows  -->
        <StatusEffect type="Always" target="This,NearbyCharacters" range="200" disabledeltatime="false">
          <Affliction identifier="acidburn" strength="0.2" dividebylimbcount="true" />
          <Affliction identifier="incrementalstun" strength="20" probability="0.5" />
          <Affliction identifier="slow" strength="2" />
        </StatusEffect>
        <StatusEffect type="NotInWater" target="This,Hull" oxygen="-10000.0" />
        <StatusEffect type="OnFire" target="This" Condition="0.0" delay="0.1" Oneshot="True" IsActive="false" setvalue="true">
          <sound file="Content/Items/Weapons/ExplosionSmall1.ogg" range="2000" />
          <sound file="Content/Items/Weapons/ExplosionSmall2.ogg" range="2000" />
          <sound file="Content/Items/Weapons/ExplosionSmall3.ogg" range="2000" />
          <Explosion range="450.0" ballastfloradamage="100" structuredamage="20" levelwalldamage="50" itemdamage="100" force="8" flames="true" debris="true" applyFireEffects="true" decal="explosion" decalsize="0.5">
            <Affliction identifier="burn" strength="15" />
            <Affliction identifier="stun" strength="3" />
          </Explosion>
        </StatusEffect>
        <StatusEffect type="OnBroken" target="This" delay="0.1">
          <Remove />
        </StatusEffect>
      </ItemComponent>
    </Item>
    <Item name="Wasteprojectile" identifier="wasteprojectile" category="Misc" tags="ignorebyai" Scale="0.5" health="10" sonarsize="20" hideinmenus="true" spritecolor="45,70,45,255">
      <Sprite texture="Content/Particles/ParticleAtlas.png" sourcerect="192,192,20,20" depth="0.55" />
      <DecorativeSprite texture="Content/Particles/ParticleAtlas.png" depth="0.49" sourcerect="0,64,32,32" randomrotation="0,360" randomscale="2,3" origin="0.5,0.5" randomgroupid="1" />
      <DecorativeSprite texture="Content/Particles/ParticleAtlas.png" depth="0.48" sourcerect="32,64,32,32" randomrotation="0,360" randomscale="2,3" origin="0.5,0.5" randomgroupid="1" />
      <DecorativeSprite texture="Content/Particles/ParticleAtlas.png" depth="0.51" sourcerect="64,64,32,32" randomrotation="0,360" randomscale="2,3" origin="0.5,0.5" randomgroupid="1" />
      <DecorativeSprite texture="Content/Particles/ParticleAtlas.png" depth="0.52" sourcerect="96,64,32,32" randomrotation="0,360" randomscale="2,3" origin="0.5,0.5" randomgroupid="1" />
      <DecorativeSprite texture="Content/Particles/ParticleAtlas.png" depth="0.52" sourcerect="128,64,32,32" randomrotation="0,360" randomscale="2,3" origin="0.5,0.5" randomgroupid="1" />
      <Body radius="25" density="12" />
      <LightComponent range="25" castshadows="False" drawbehindsubs="False" ison="True" lightcolor="45,70,45,150" vulnerabletoemp="False" />
      <Projectile characterusable="false" launchimpulse="20" sticktocharacters="false" sticktoitems="false" sticktodoors="false" sticktostructures="true" friendlyfire="false" damagedoors="true">
        <Attack structuredamage="50" itemdamage="15" targetforce="10" severlimbsprobability="0">
          <Affliction identifier="acidburn" strength="15" />
          <Affliction identifier="stun" strength="1" />
        </Attack>
        <!-- uses itself once to trigger projectile -->
        <StatusEffect type="OnNotContained" target="This" Oneshot="true">
          <Use />
        </StatusEffect>
        <StatusEffect type="OnSpawn" target="This,Contained" delay="10" stackable="false">
          <particleemitter particle="brownchunks" drawontop="true" particleamount="10" velocitymin="30" velocitymax="50" anglemin="0" anglemax="360" scalemin="0.3" scalemax="0.5" />
          <Remove />
        </StatusEffect>
        <StatusEffect type="OnActive" target="This" lifetime="0.5">
          <ParticleEmitter particle="ammotrailwater" copyentityangle="true" anglemin="0" anglemax="0" particleamount="10" velocitymin="-10" velocitymax="-100" scalemin="0.5" scalemax="1" />
        </StatusEffect>
      </Projectile>
      <ItemContainer hideitems="true" capacity="1" drawinventory="false" canbeselected="false" spawnwithid="wastesporeemitter"></ItemContainer>
    </Item>
  </Items>
</Override>