<?xml version="1.0" encoding="utf-8"?>
<Defs>

	<FleckDef ParentName="FleckBase" Name="CE_CasingFleckBase" Abstract="True">
		<fleckSystemClass>FleckSystemThrown</fleckSystemClass>
		<acceleration>(0,0,-5)</acceleration>
	</FleckDef>

	<!--=============== Thrown Bullet Casings ==============-->

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_EmptyCasing</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_BulletCasing</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_PistolAmmoCasings</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_PistolAmmoCasings</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_RifleAmmoCasings_Steel</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_SteelRifleAmmoCasings</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_RifleAmmoCasings_HighCal</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_RifleAmmoCasings_HighCal</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_ShotgunShell</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_ShotgunShell</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_ShotgunCasingImpact</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_ShotgunShell_Green</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_ShotgunShell_Green</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_ShotgunCasingImpact</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_ShotgunShell_White</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_ShotgunShell_White</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_ShotgunCasingImpact</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_ShotgunShell_Black</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_ShotgunShell_Black</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_ShotgunCasingImpact</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_GrenadeLauncherAmmoCasings</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_GrenadeLauncherAmmoCasings</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_CannonShellCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_BigShell</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_BigShell</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_CannonShellCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_GrenadePin</defName>
		<graphicData>
			<texPath>Things/Flecks/Fleck_GrenadePin</texPath>
			<renderInstanced>true</renderInstanced>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Fleck_DisposableLauncherCasing</defName>
		<graphicData>
			<texPath>Things/Filth/Filth_DisposableLauncherCasings/Filth_DisposableLauncherCasings</texPath>
			<renderInstanced>true</renderInstanced>
			<drawSize>(1.5,1.5)</drawSize>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>3.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<!--=============== For 40k Ammo ==============-->

	<!-- === Casings === -->
	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Mote_BolterCasing</defName>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Casings/Mote_CasingBolterSmall</texPath>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>1.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<FleckDef ParentName="CE_CasingFleckBase">
		<defName>Mote_HeavyBolterCasing</defName>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Casings/Mote_CasingBolterLarge</texPath>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<solidTime>1.0</solidTime>
		<fadeOutTime>0.2</fadeOutTime>
		<landSound>C_Impact_BulletCasing</landSound>
		<collide>true</collide>
	</FleckDef>

	<!-- === Melta Gun === -->
	<ThingDef ParentName="MoteBase">
		<defName>Mote_MeltaFlash</defName>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<mote>
			<landSound />
			<solidTime>0.15</solidTime>
			<fadeOutTime>0.2</fadeOutTime>
		</mote>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Projectiles/MeltaProjectile</texPath>
			<shaderType>MoteGlow</shaderType>
		</graphicData>
	</ThingDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CERocketSmoke</defName>
		<graphicData>
			<texPath>Things/Mote/Smoke</texPath>
			<shaderType>Transparent</shaderType>
			<color>(1, 1, 1,0.6)</color>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0.14</fadeInTime>
		<solidTime>0.05</solidTime>
		<fadeOutTime>1.5</fadeOutTime>
		<growthRate>2</growthRate>
	</FleckDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CEBlackpowderSmoke</defName>
		<graphicData>
			<texPath>Things/Mote/Smoke</texPath>
			<shaderType>Transparent</shaderType>
			<color>(1, 1, 1,0.8)</color>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0.14</fadeInTime>
		<solidTime>0.5</solidTime>
		<fadeOutTime>6.5</fadeOutTime>
		<growthRate>0.5</growthRate>
	</FleckDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CEBlackpowderSmokeShort</defName>
		<graphicData>
			<texPath>Things/Mote/Smoke</texPath>
			<shaderType>Transparent</shaderType>
			<color>(1, 1, 1,0.8)</color>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0.14</fadeInTime>
		<solidTime>0.5</solidTime>
		<fadeOutTime>2.5</fadeOutTime>
		<growthRate>0.5</growthRate>
	</FleckDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CERocketSmokeTrail</defName>
		<graphicData>
			<texPath>Things/Mote/Smoke</texPath>
			<shaderType>Transparent</shaderType>
			<color>(1, 1, 1,0.3)</color>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0.14</fadeInTime>
		<solidTime>0.05</solidTime>
		<fadeOutTime>5</fadeOutTime>
		<growthRate>1</growthRate>
	</FleckDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CERocketFlame</defName>
		<graphicData>
			<texPath>Things/Mote/FireGlow</texPath>
			<shaderType>MoteGlow</shaderType>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0</fadeInTime>
		<solidTime>0.03</solidTime>
		<fadeOutTime>0.05</fadeOutTime>
		<growthRate>-5</growthRate>
	</FleckDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CEFlamethrowerTrail</defName>
		<graphicData>
			<texPath>Things/Mote/FireGlow</texPath>
			<shaderType>MoteGlow</shaderType>
			<color>(1, 0.7, 0.7)</color>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0</fadeInTime>
		<solidTime>0.03</solidTime>
		<fadeOutTime>0.25</fadeOutTime>
		<growthRate>0</growthRate>
	</FleckDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CEFlamethrowerSmokeTrail</defName>
		<graphicData>
			<texPath>Things/Mote/Smoke</texPath>
			<shaderType>Transparent</shaderType>
			<color>(0.5, 0.5, 0.5)</color>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0.14</fadeInTime>
		<solidTime>0.05</solidTime>
		<fadeOutTime>2</fadeOutTime>
		<growthRate>-0.15</growthRate>
	</FleckDef>

	<FleckDef ParentName="FleckBase_Thrown">
		<defName>Fleck_CE_BioferriteGlow</defName>
		<graphicData>
			<texPath>Things/Mote/SparkFlash</texPath>
			<shaderType>MoteGlow</shaderType>
			<color>(1, 0.4, 0.4)</color>
		</graphicData>
		<altitudeLayer>MoteOverhead</altitudeLayer>
		<fadeInTime>0</fadeInTime>
		<solidTime>0.03</solidTime>
		<fadeOutTime>0.05</fadeOutTime>
		<growthRate>-5</growthRate>
	</FleckDef>

</Defs>