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

	<!--===== Melee Attacks =====-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
		defName="GW_SM_Gun_Flamer" or 
		defName="GW_AOD_Gun_HeavyFlamer" or
		defName="GW_SM_Gun_Burner"
		]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>3</power>
					<cooldownTime>2.4</cooldownTime>
					<armorPenetrationBlunt>1.7</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
	
	<!--===== Flamer =====-->
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_SM_Gun_Flamer"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_SM_Gun_Flamer"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_SM_Gun_Flamer</defName>
		<statBases>
			<Mass>38.6</Mass>
			<RangedWeapon_Cooldown>0.98</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>4.0</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>19.8</Bulk>
			<WorkToMake>38000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>20</range>
			<minRange>4</minRange>
			<burstShotCount>6</burstShotCount>
			<soundCast>GW_SM_Flamer_Sound</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>0.4</recoilAmount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
		</Properties>
		<AmmoUser>
			<magazineSize>60</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<noSingleShot>true</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>
	
	<!--===== Heavy Flamer =====-->
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_AOD_Gun_HeavyFlamer"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_AOD_Gun_HeavyFlamer"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_AOD_Gun_HeavyFlamer</defName>
		<statBases>
			<Mass>50.6</Mass>
			<RangedWeapon_Cooldown>0.98</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>6.0</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>21.4</Bulk>
			<WorkToMake>38000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>28</range>
			<minRange>3</minRange>
			<burstShotCount>12</burstShotCount>
			<soundCast>GW_SM_Flamer_Sound</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>0.4</recoilAmount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
		</Properties>
		<AmmoUser>
			<magazineSize>120</magazineSize>
			<reloadTime>6</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<noSingleShot>true</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>
	
	<!--===== Burner =====-->
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_SM_Gun_Burner"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_SM_Gun_Burner"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_SM_Gun_Burner</defName>
		<statBases>
			<Mass>8.4</Mass>
			<RangedWeapon_Cooldown>0.98</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>5.4</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>12.2</Bulk>
			<WorkToMake>32000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>15</range>
			<minRange>1</minRange>
			<burstShotCount>2</burstShotCount>
			<soundCast>GW_SM_Flamer_Sound</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>0.4</recoilAmount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
		</Properties>
		<AmmoUser>
			<magazineSize>8</magazineSize>
			<reloadTime>2</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<noSingleShot>true</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>
	
</Patch>