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

	<!-- Melee Tools - Pistols -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
		defName="GW_BP_Autopistol" or
		defName="GW_BP_Laspistol" or
		defName="GW_BP_PlasmaPistol"
		]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.54</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>0.555</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.54</cooldownTime>
					<armorPenetrationBlunt>0.555</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Melee Tools - Rifles (No Bayonet) -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="GW_BP_Autocarbine" or
			defName="GW_BP_longLasgun" or
			defName="GW_BP_PlasmaGun"
			]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>2.02</cooldownTime>
					<armorPenetrationBlunt>1.630</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Melee Tools - Rifles (Bayonet) -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_BP_Gun_Flashlight" or defName="GW_BP_Autogun"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>bayonet</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>17</power>
					<cooldownTime>2.14</cooldownTime>
					<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
					<armorPenetrationSharp>0.17</armorPenetrationSharp>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>bayonet</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.49</cooldownTime>
					<armorPenetrationBlunt>2.16</armorPenetrationBlunt>
					<armorPenetrationSharp>1.44</armorPenetrationSharp>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Melee Tools - Heavy Weapons -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="GW_BP_Heavystubber" or
			defName="GW_BP_MissileLauncher" or
			defName="GW_BP_Flamer"
			]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2.44</cooldownTime>
					<armorPenetrationBlunt>3.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Blood Pact Autopistol -->

	<Operation Class="PatchOperationConditional">
			<xpath>Defs/ThingDef[defName="GW_BP_Autopistol"]/weaponTags</xpath>
			<nomatch Class="PatchOperationAdd">
				<xpath>Defs/ThingDef[defName="GW_BP_Autopistol"]</xpath>
				<value>
					<weaponTags />
				</value>
			</nomatch>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Autopistol</defName>
		<statBases>
			<Bulk>1.8</Bulk>
			<Mass>0.80</Mass>
			<RangedWeapon_Cooldown>0.41</RangedWeapon_Cooldown>
			<SightsEfficiency>0.7</SightsEfficiency>
			<SwayFactor>0.26</SwayFactor>
			<ShotSpread>0.19</ShotSpread>
		</statBases>
		<Properties>
			<recoilAmount>3.35</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_45ACP_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<burstShotCount>10</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_45ACP</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- Blood Pact Las -->
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_Gun_Flashlight"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_Gun_Flashlight"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Gun_Flashlight</defName>
		<statBases>
			<Mass>5</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>1.8</SightsEfficiency>
			<ShotSpread>0.04</ShotSpread>
			<SwayFactor>1.4</SwayFactor>
			<Bulk>10</Bulk>
			<WorkToMake>20000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>52</range>
			<burstShotCount>5</burstShotCount>
			<soundCast>GW_AM_Gun_Kantrael</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>2.0</recoilAmount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>60</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>AdvancedGun</li>
			<li>CE_AI_SR</li>
		</weaponTags>
	</Operation>

	<!-- BP Longlas -->
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_longLasgun"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_longLasgun"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_longLasgun</defName>
		<statBases>
			<Mass>6</Mass>
			<RangedWeapon_Cooldown>1.28</RangedWeapon_Cooldown>
			<SightsEfficiency>3.9</SightsEfficiency>
			<ShotSpread>0.07</ShotSpread>
			<SwayFactor>1.9</SwayFactor>
			<Bulk>12</Bulk>
			<WorkToMake>22000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_HellGun</defaultProjectile>
			<warmupTime>1.8</warmupTime>
			<range>75</range>
			<burstShotCount>1</burstShotCount>
			<soundCast>GW_AM_Gun_Longlas</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>1.45</recoilAmount>
			<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>8</magazineSize>
			<reloadTime>4.5</reloadTime>
			<ammoSet>AmmoSet_Lasgun_HellGun</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>AdvancedGun</li>
			<li>CE_AI_SR</li>
		</weaponTags>
	</Operation>

	<!-- Blood Pact Autogun -->
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_Autogun"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_Autogun"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Autogun</defName>
		<statBases>
			<Mass>2</Mass>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.34</SwayFactor>
			<Bulk>5</Bulk>
			<WorkToMake>41000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_825mmLong_FMJ</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>55</range>
			<burstShotCount>8</burstShotCount>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilAmount>1.45</recoilAmount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>40</magazineSize>
			<reloadTime>3.5</reloadTime>
			<ammoSet>AmmoSet_825mmLong</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>4</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AR</li>
			<li>AssaultRifle</li>
		</weaponTags>
	</Operation>

	<!-- BP Autocarbine -->
					
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_Autocarbine"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_Autocarbine"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Autocarbine</defName>
		<statBases>
			<Mass>2</Mass>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.21</ShotSpread>
			<SwayFactor>1.6</SwayFactor>
			<Bulk>3</Bulk>
			<WorkToMake>39000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_825mmLong_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>25</range>
			<burstShotCount>8</burstShotCount>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilAmount>1.7</recoilAmount>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>60</magazineSize>
			<reloadTime>3.5</reloadTime>
			<ammoSet>AmmoSet_825mmLong</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>4</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_BROOM</li>
			<li>CE_SMG</li>
			<li>ShortShots</li>
		</weaponTags>
	</Operation>

	<!-- BP Heavy Stubber -->
					
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_Heavystubber"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_Heavystubber"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Heavystubber</defName>
		<statBases>
			<Mass>12.0</Mass>
			<RangedWeapon_Cooldown>0.55</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.12</ShotSpread>
			<SwayFactor>2.89</SwayFactor>
			<Bulk>15</Bulk>
			<WorkToMake>38000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_3006Springfield_FMJ</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>62</range>
			<burstShotCount>12</burstShotCount>
			<soundCast>GW_AM_Gun_Hiveworldautopistol</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilAmount>1.45</recoilAmount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>120</magazineSize>
			<reloadTime>7.9</reloadTime>
			<ammoSet>AmmoSet_3006Springfield</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>6</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_MachineGun</li>
			<li>CE_AI_LMG</li>
		</weaponTags>
	</Operation>

	
	<!-- Blood Pact Laspistol -->
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_Laspistol"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_Laspistol"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Laspistol</defName>
		<statBases>
			<Mass>1.6</Mass>
			<RangedWeapon_Cooldown>0.32</RangedWeapon_Cooldown>
			<SightsEfficiency>1.05</SightsEfficiency>
			<ShotSpread>0.18</ShotSpread>
			<SwayFactor>1.14</SwayFactor>
			<Bulk>2</Bulk>
			<WorkToMake>14000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Pistol</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<burstShotCount>6</burstShotCount>
			<soundCast>GW_AM_Gun_Kantraeldefender</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilAmount>2.7</recoilAmount>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>36</magazineSize>
			<reloadTime>3.5</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Pistol</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_OneHandedWeapon</li>
			<li>CE_Sidearm</li>
			<li>AdvancedGun</li>
			<li>Autopistol</li>
		</weaponTags>
	</Operation>

	<!--===== BP Missile Launcher =====-->
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_MissileLauncher"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_MissileLauncher"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_MissileLauncher</defName>
		<statBases>
			<Mass>3.5</Mass>
			<RangedWeapon_Cooldown>1.2</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>11.8</Bulk>
			<WorkToMake>34000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_84x246mmR_HEAT</defaultProjectile>
			<warmupTime>4.2</warmupTime>
			<range>46</range>
			<burstShotCount>1</burstShotCount>
			<soundCast>InfernoCannon_Fire</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>15</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>7.8</reloadTime>
			<ammoSet>AmmoSet_84x246mmR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>true</noSnapshot>
		</FireModes>
	</Operation>

	<!-- Plasma Gun -->

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_PlasmaGun"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_PlasmaGun"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_PlasmaGun</defName>
		<statBases>
			<Mass>18.4</Mass>
			<RangedWeapon_Cooldown>1.04</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>0.05</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>12</Bulk>
			<WorkToMake>38000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_PlasmaRifle</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>62</range>
			<burstShotCount>1</burstShotCount>
			<soundCast>HP_AM_Plasma_Gun_Sound</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>0.8</recoilAmount>
			<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_PlasmaCanister_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>AdvancedGun</li>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--===== BP Plasma Pistol =====-->
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_PlasmaPistol"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_PlasmaPistol"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_PlasmaPistol</defName>
		<statBases>
			<Mass>8.6</Mass>
			<RangedWeapon_Cooldown>0.98</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>0.05</ShotSpread>
			<SwayFactor>2.1</SwayFactor>
			<Bulk>6.8</Bulk>
			<WorkToMake>32000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_PlasmaPistol</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>27</range>
			<burstShotCount>1</burstShotCount>
			<soundCast>HP_AM_Plasma_Gun_Sound</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>0.8</recoilAmount>
			<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>4</magazineSize>
			<reloadTime>2.4</reloadTime>
			<ammoSet>AmmoSet_PlasmaCanister_Pistol</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>AdvancedGun</li>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!-- Melta Gun -->

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_Melta"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_Melta"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Melta</defName>
		<statBases>
			<Mass>19.8</Mass>
			<RangedWeapon_Cooldown>2.0</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>0.07</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>12</Bulk>
			<WorkToMake>25000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Laser_MeltaCharge</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>22</range>
			<burstShotCount>1</burstShotCount>
			<soundCast>HP_AM_Melta_Gun_Sound</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>2.7</recoilAmount>
			<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_MeltaCharge</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>AdvancedGun</li>
			<li>CE_AI_BROOM</li>
		</weaponTags>
	</Operation>

	<!--===== Flamer =====-->
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_Flamer"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_Flamer"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_BP_Flamer</defName>
		<statBases>
			<Mass>26.2</Mass>
			<RangedWeapon_Cooldown>0.98</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>4.5</ShotSpread>
			<SwayFactor>1.8</SwayFactor>
			<Bulk>16.4</Bulk>
			<WorkToMake>36000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>18</range>
			<minRange>2</minRange>
			<burstShotCount>6</burstShotCount>
			<soundCast>GW_AM_Flamer_Sound</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>0.4</recoilAmount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>40</magazineSize>
			<reloadTime>2.6</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<noSingleShot>true</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

</Patch>