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

	<!--===== Melee Tools =====-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Gun_LightSMG" or
			defName="Gun_LightAutopistol" or
			defName="Gun_HeavyAutopistol" or
			defName="Gun_VarmitPistol" or
			defName="Gun_AdvancedRevolver" or
			defName="Gun_Snubby" or
			defName="Gun_Magnum" or
			defName="Gun_SawnoffPumpShotgun" or
			defName="Gun_BreacherShotgun" or
			defName="Gun_BreacherShotgunSemi" or
			defName="Gun_AdvancedAutopistol"
			]/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>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Gun_ServiceRifle" or
			defName="Gun_BattleRifle" or
			defName="Gun_BattleDMR" or
			defName="Gun_HeavySniperRifle" or
			defName="Gun_VarmitRifle" or
			defName="Gun_DMR" or
			defName="Gun_CombatShotgun" or
			defName="Gun_CrudeRifle" or
			defName="Gun_EBR" or
			defName="Gun_AdvancedShotgun" or
			defName="ThogsGun_AdvancedAssaultRifle" or
			defName="Gun_AutomaticShotgun" or
			defName="Gun_ServiceSAW" or
			defName="Gun_PDW" or
			defName="Gun_ServiceDMR" or
			defName="Gun_ServiceCarbine" or
			defName="Gun_SMG" or
			defName="Gun_BattleCarbine" or
			defName="Gun_CrudeSMG" or
			defName="Gun_Carbine" or
			defName="Gun_AdvancedPDW" or
			defName="Gun_HMG" or
			defName="Gun_SAW" or
			defName="Gun_LightMinigun" or
			defName="Gun_CrudeLMG" or
			defName="Gun_ServiceHMG" or
			defName="Gun_ThogsAntiMaterialRifle"
			]/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>

	<!--===== Bayonet =====-->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Gun_CarbineBayonet" or defName="Gun_ServiceCarbineBayonet" or defName="Gun_CrudeCarbine"]/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.5</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>

	<!--== Combat Extended duplicate removal on mods part ==-->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Gun_IAW"]</xpath>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Gun_GrenadeLauncher"]</xpath>
	</Operation>

	<!--=== Removing dart rifles entirely until properly patched ===-->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Gun_AnestheticDartRifle" or defName="Gun_ToxicDartRifle"]</xpath>
	</Operation>

	<!--==== Varmit Rifle ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_VarmitRifle</defName>
		<statBases>
			<SightsEfficiency>1.24</SightsEfficiency>
			<ShotSpread>0.08</ShotSpread>
			<SwayFactor>1.17</SwayFactor>
			<Bulk>9.40</Bulk>
			<Mass>2.30</Mass>
			<RangedWeapon_Cooldown>0.67</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_22LR_FMJ</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>21</range>
			<soundCast>Shot_MachinePistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_22LR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Varmit Pistol ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_VarmitPistol</defName>
		<statBases>
			<WorkToMake>6000</WorkToMake>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.10</ShotSpread>
			<SwayFactor>1.10</SwayFactor>
			<Bulk>0.75</Bulk>
			<Mass>0.80</Mass>
			<RangedWeapon_Cooldown>0.47</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_22LR_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>22</range>
			<soundCast>Shot_MachinePistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_22LR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== .38 Snubby Revolver ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Snubby</defName>
		<statBases>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.20</ShotSpread>
			<SwayFactor>0.56</SwayFactor>
			<Bulk>1.70</Bulk>
			<Mass>0.79</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_38Special_FMJ</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>11</range>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_38Special</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== SMG ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_SMG</defName>
		<statBases>
			<Mass>3.00</Mass>
			<RangedWeapon_Cooldown>0.26</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>0.95</SwayFactor>
			<Bulk>4.20</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.34</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>21</range>
			<burstShotCount>8</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>32</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<aimedBurstShotCount>4</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>CE_SMG</li>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== SAW ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ServiceSAW</defName>
		<statBases>
			<Mass>4.80</Mass>
			<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.05</ShotSpread>
			<SwayFactor>1.06</SwayFactor>
			<Bulk>11.40</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.51</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_545x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>75</range>
			<burstShotCount>10</burstShotCount>
			<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>75</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_545x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>5</aimedBurstShotCount>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_MachineGun</li>
			<li>CE_AI_Suppressive</li>
		</weaponTags>
	</Operation>

	<!--==== Service Rifle ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ServiceRifle</defName>
		<statBases>
			<Mass>3.30</Mass>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.21</SwayFactor>
			<Bulk>8.80</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.87</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>0.8</warmupTime>
			<range>55</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Service HMG ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ServiceHMG</defName>
		<statBases>
			<Mass>10.72</Mass>
			<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.05</ShotSpread>
			<SwayFactor>1.06</SwayFactor>
			<Bulk>11.40</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.88</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>1.75</warmupTime>
			<range>49</range>
			<burstShotCount>20</burstShotCount>
			<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>10</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_MachineGun</li>
			<li>CE_AI_Suppressive</li>
		</weaponTags>
	</Operation>

	<!--==== Service DMR ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ServiceDMR</defName>
		<statBases>
			<Mass>4.72</Mass>
			<RangedWeapon_Cooldown>0.66</RangedWeapon_Cooldown>
			<SightsEfficiency>1.86</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.76</SwayFactor>
			<Bulk>10.87</Bulk>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x54mmR_FMJ</defaultProjectile>
			<warmupTime>1.4</warmupTime>
			<range>67</range>
			<soundCast>Shot_SniperRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_762x54mmR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Service Carbine w/ Bayonet ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ServiceCarbineBayonet</defName>
		<statBases>
			<Mass>3.16</Mass>
			<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			<SightsEfficiency>0.9</SightsEfficiency>
			<ShotSpread>0.13</ShotSpread>
			<SwayFactor>0.73</SwayFactor>
			<Bulk>8.03</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.37</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_545x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>45</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_545x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>4</aimedBurstShotCount>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

	<!--==== Service Carbine ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ServiceCarbine</defName>
		<statBases>
			<Mass>3.12</Mass>
			<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			<SightsEfficiency>0.9</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>0.70</SwayFactor>
			<Bulk>7.98</Bulk>
			<WorkToMake>3000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.37</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_545x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>45</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_545x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>4</aimedBurstShotCount>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== SAW ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_SAW</defName>
		<statBases>
			<Mass>6.23</Mass>
			<RangedWeapon_Cooldown>2.75</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.18</ShotSpread>
			<SwayFactor>1.29</SwayFactor>
			<Bulk>11.42</Bulk>
			<WorkToMake>40000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.8</warmupTime>
			<range>55</range>
			<burstShotCount>15</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>50</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>10</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Suppressive</li>
			<li>CE_MachineGun</li>
		</weaponTags>
	</Operation>

	<!--==== PDW ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_PDW</defName>
		<statBases>
			<Mass>2.15</Mass>
			<RangedWeapon_Cooldown>1.75</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.67</ShotSpread>
			<SwayFactor>0.79</SwayFactor>
			<Bulk>4.57</Bulk>
			<WorkToMake>9000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.3</warmupTime>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<range>22</range>
			<soundCast>Shot_MachinePistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>CE_SMG</li>
			<li>CE_Sidearm</li>
		</weaponTags>
	</Operation>

	<!--==== S&W 500 ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Magnum</defName>
		<statBases>
			<Mass>2.4</Mass>
			<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.17</ShotSpread>
			<SwayFactor>1.12</SwayFactor>
			<Bulk>1.08</Bulk>
			<WorkToMake>5000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_44Magnum_FMJ</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>24</range>
			<soundCast>Shot_Revolver</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_44Magnum</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Light SMG ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_LightSMG</defName>
		<statBases>
			<Mass>2.67</Mass>
			<RangedWeapon_Cooldown>1.3</RangedWeapon_Cooldown>
			<SightsEfficiency>.8</SightsEfficiency>
			<ShotSpread>1.66</ShotSpread>
			<SwayFactor>0.76</SwayFactor>
			<Bulk>3.89</Bulk>
			<WorkToMake>6000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.11</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.8</warmupTime>
			<range>20</range>
			<burstShotCount>8</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>Shot_Minigun</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>32</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>4</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>CE_SMG</li>
		</weaponTags>
	</Operation>

	<!--==== Light Minigun ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_LightMinigun</defName>
		<statBases>
			<Mass>12.57</Mass>
			<RangedWeapon_Cooldown>3.7</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>1.67</ShotSpread>
			<SwayFactor>2.43</SwayFactor>
			<Bulk>13.23</Bulk>
			<WorkToMake>12500</WorkToMake>
		</statBases>
		<Properties>
			<burstShotCount>20</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
			<warmupTime>2</warmupTime>
			<range>59</range>
			<soundCast>Shot_Minigun</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>250</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>15</aimedBurstShotCount>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Suppressive</li>
			<li>CE_MachineGun</li>
		</weaponTags>
	</Operation>

	<!--==== HMG ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_HMG</defName>
		<statBases>
			<Mass>17</Mass>
			<RangedWeapon_Cooldown>5.4</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>.23</ShotSpread>
			<SwayFactor>1.67</SwayFactor>
			<Bulk>12.24</Bulk>
			<WorkToMake>38000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_145x114mm_FMJ</defaultProjectile>
			<warmupTime>2.8</warmupTime>
			<range>57</range>
			<minRange>2</minRange>
			<burstShotCount>20</burstShotCount>
			<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
			<soundCast>Shot_Minigun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_145x114mm</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>10</aimedBurstShotCount>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Suppressive</li>
			<li>CE_MachineGun</li>
		</weaponTags>
	</Operation>

	<!--==== AWP ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_HeavySniperRifle</defName>
		<statBases>
			<Mass>6.22</Mass>
			<RangedWeapon_Cooldown>3.2</RangedWeapon_Cooldown>
			<SightsEfficiency>2.6</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>0.75</SwayFactor>
			<Bulk>11.64</Bulk>
			<WorkToMake>50000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_338Lapua_FMJ</defaultProjectile>
			<warmupTime>3.8</warmupTime>
			<range>75</range>
			<minRange>3</minRange>
			<soundCast>Shot_SniperRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>7</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_338Lapua</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Desert Eagle ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_HeavyAutopistol</defName>
		<statBases>
			<Mass>2.6</Mass>
			<RangedWeapon_Cooldown>0.78</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.19</ShotSpread>
			<SwayFactor>1.12</SwayFactor>
			<Bulk>1.03</Bulk>
			<WorkToMake>6000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_44Magnum_FMJ</defaultProjectile>
			<warmupTime>0.425</warmupTime>
			<range>23</range>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_44Magnum</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== EBR ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_EBR</defName>
		<statBases>
			<Mass>5.36</Mass>
			<RangedWeapon_Cooldown>0.7</RangedWeapon_Cooldown>
			<SightsEfficiency>1.7</SightsEfficiency>
			<ShotSpread>0.32</ShotSpread>
			<SwayFactor>0.49</SwayFactor>
			<Bulk>7.21</Bulk>
			<WorkToMake>46000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>64</range>
			<soundCast>Shot_BoltActionRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>25</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!--==== Crude SMG ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_CrudeSMG</defName>
		<statBases>
			<Mass>4.26</Mass>
			<RangedWeapon_Cooldown>0.65</RangedWeapon_Cooldown>
			<SightsEfficiency>0.8</SightsEfficiency>
			<ShotSpread>0.20</ShotSpread>
			<SwayFactor>0.43</SwayFactor>
			<Bulk>3.54</Bulk>
			<WorkToMake>8000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.78</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>11</ticksBetweenBurstShots>
			<defaultProjectile>Bullet_45ACP_FMJ</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>24</range>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>25</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_45ACP</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== DMR ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_DMR</defName>
		<statBases>
			<Mass>3.85</Mass>
			<RangedWeapon_Cooldown>0.7</RangedWeapon_Cooldown>
			<SightsEfficiency>1.5</SightsEfficiency>
			<ShotSpread>0.54</ShotSpread>
			<SwayFactor>0.36</SwayFactor>
			<Bulk>6.43</Bulk>
			<WorkToMake>46000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_3006Springfield_FMJ</defaultProjectile>
			<warmupTime>1.4</warmupTime>
			<range>60</range>
			<soundCast>Shot_BoltActionRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_3006Springfield</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Crude Rifle ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_CrudeRifle</defName>
		<statBases>
			<Mass>3.24</Mass>
			<RangedWeapon_Cooldown>2.1</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.12</ShotSpread>
			<SwayFactor>0.24</SwayFactor>
			<Bulk>6.89</Bulk>
			<WorkToMake>6000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x54mmR_FMJ</defaultProjectile>
			<warmupTime>1.7</warmupTime>
			<range>45</range>
			<soundCast>Shot_BoltActionRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>0.90</reloadTime>
			<reloadOneAtATime>true</reloadOneAtATime>
			<ammoSet>AmmoSet_762x54mmR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Crude LMG ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_CrudeLMG</defName>
		<statBases>
			<Mass>8.89</Mass>
			<RangedWeapon_Cooldown>2.7</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.21</ShotSpread>
			<SwayFactor>1.23</SwayFactor>
			<Bulk>12.76</Bulk>
			<WorkToMake>32000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.78</recoilAmount>
			<burstShotCount>12</burstShotCount>
			<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>2.2</warmupTime>
			<range>47</range>
			<soundCast>Shot_Minigun</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>5</aimedBurstShotCount>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Suppressive</li>
			<li>CE_Machinegun</li>
		</weaponTags>
	</Operation>

	<!--==== Crude Carbine ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_CrudeCarbine</defName>
		<statBases>
			<Mass>3.85</Mass>
			<RangedWeapon_Cooldown>1.2</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.35</ShotSpread>
			<SwayFactor>0.23</SwayFactor>
			<Bulk>9.78</Bulk>
			<WorkToMake>8500</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>57</range>
			<soundCast>Shot_BoltActionRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

	<!--==== Combat Shotgun ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_CombatShotgun</defName>
		<statBases>
			<Mass>4.99</Mass>
			<RangedWeapon_Cooldown>1.5</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.22</SwayFactor>
			<Bulk>10.75</Bulk>
			<WorkToMake>15000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>26</range>
			<soundCast>Shot_Shotgun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>8</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Carbine w/ bayonet ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_CarbineBayonet</defName>
		<statBases>
			<Mass>2.75</Mass>
			<RangedWeapon_Cooldown>1.6</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.15</ShotSpread>
			<SwayFactor>1.13</SwayFactor>
			<Bulk>7.67</Bulk>
			<WorkToMake>40000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.53</recoilAmount>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
			<warmupTime>0.8</warmupTime>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<range>45</range>
			<soundCast>GunShotA</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

	<!--==== Carbine ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Carbine</defName>
		<statBases>
			<Mass>2.70</Mass>
			<RangedWeapon_Cooldown>1.6</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.12</ShotSpread>
			<SwayFactor>1.13</SwayFactor>
			<Bulk>7.62</Bulk>
			<WorkToMake>40000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.53</recoilAmount>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
			<warmupTime>0.8</warmupTime>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<range>45</range>
			<soundCast>GunShotA</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Shorty Shotgun ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_SawnoffPumpShotgun</defName>
		<statBases>
			<Mass>2.84</Mass>
			<RangedWeapon_Cooldown>1.25</RangedWeapon_Cooldown>
			<SightsEfficiency>0.8</SightsEfficiency>
			<ShotSpread>0.12</ShotSpread>
			<SwayFactor>0.34</SwayFactor>
			<Bulk>6.10</Bulk>
			<WorkToMake>2000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>14</range>
			<soundCast>Shot_Shotgun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Light Autopistol ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_LightAutopistol</defName>
		<statBases>
			<Mass>0.7</Mass>
			<RangedWeapon_Cooldown>0.5</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.10</ShotSpread>
			<SwayFactor>0.89</SwayFactor>
			<Bulk>1</Bulk>
			<WorkToMake>50000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.25</warmupTime>
			<range>11</range>
			<soundCast>Shot_MachinePistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>17</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Breaching Shotgun ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_BreacherShotgunSemi</defName>
		<statBases>
			<Mass>2.87</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
			<ShotSpread>0.19</ShotSpread>
			<SwayFactor>0.96</SwayFactor>
			<Bulk>5.75</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>15000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.75</warmupTime>
			<range>11</range>
			<soundCast>Shot_Shotgun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>10</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Battle Rifle ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_BattleRifle</defName>
		<statBases>
			<Mass>4.45</Mass>
			<RangedWeapon_Cooldown>2.25</RangedWeapon_Cooldown>
			<ShotSpread>0.10</ShotSpread>
			<SwayFactor>1.47</SwayFactor>
			<Bulk>11.67</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>44000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.67</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.2</warmupTime>
			<range>61</range>
			<burstShotCount>4</burstShotCount>
			<ticksBetweenBurstShots>11</ticksBetweenBurstShots>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>2</aimedBurstShotCount>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Breacher Shotgun ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_BreacherShotgun</defName>
		<statBases>
			<Mass>3.50</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
			<ShotSpread>0.15</ShotSpread>
			<SwayFactor>1.26</SwayFactor>
			<Bulk>6.7</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>2500</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>16</range>
			<soundCast>Shot_Shotgun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<ticksBetweenBurstShots>15</ticksBetweenBurstShots>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== DMR ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_BattleDMR</defName>
		<statBases>
			<Mass>4.70</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.51</SwayFactor>
			<Bulk>11.79</Bulk>
			<SightsEfficiency>1.9</SightsEfficiency>
			<WorkToMake>50000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.5</warmupTime>
			<range>72</range>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Battle Carbine ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_BattleCarbine</defName>
		<statBases>
			<Mass>3.90</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
			<ShotSpread>0.17</ShotSpread>
			<SwayFactor>0.89</SwayFactor>
			<Bulk>9.76</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>41000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.87</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>54</range>
			<burstShotCount>4</burstShotCount>
			<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>2</aimedBurstShotCount>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<!--==== Auto Shotgun ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_AutomaticShotgun</defName>
		<statBases>
			<Mass>3.90</Mass>
			<RangedWeapon_Cooldown>2.39</RangedWeapon_Cooldown>
			<ShotSpread>0.19</ShotSpread>
			<SwayFactor>1.29</SwayFactor>
			<Bulk>9.7</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>15000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>17</range>
			<soundCast>Shot_Shotgun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>9</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Advanced Shotgun ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_AdvancedShotgun</defName>
		<statBases>
			<Mass>4.70</Mass>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
			<ShotSpread>0.19</ShotSpread>
			<SwayFactor>1.08</SwayFactor>
			<Bulk>8.7</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>20000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>2.16</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>21</range>
			<burstShotCount>2</burstShotCount>
			<soundCast>Shot_Shotgun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>14</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.50</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Advanced Revolver ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_AdvancedRevolver</defName>
		<statBases>
			<Mass>1.6</Mass>
			<RangedWeapon_Cooldown>1.4</RangedWeapon_Cooldown>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.31</SwayFactor>
			<Bulk>2.7</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>5800</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_357Magnum_FMJ</defaultProjectile>
			<warmupTime>0.2</warmupTime>
			<range>19</range>
			<soundCast>Shot_Revolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_357Magnum</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!--==== Advanced PDW ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_AdvancedPDW</defName>
		<statBases>
			<Mass>2.5</Mass>
			<RangedWeapon_Cooldown>2.3</RangedWeapon_Cooldown>
			<ShotSpread>0.19</ShotSpread>
			<SwayFactor>0.89</SwayFactor>
			<Bulk>7.7</Bulk>
			<SightsEfficiency>1.2</SightsEfficiency>
			<WorkToMake>25000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>0.97</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>19</range>
			<burstShotCount>10</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>50</magazineSize>
			<reloadTime>4.9</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>5</aimedBurstShotCount>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>CE_SMG</li>
		</weaponTags>
	</Operation>

	<!-- ========== Advanced Auto Pistol ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_AdvancedAutopistol</defName>
		<statBases>
			<WorkToMake>7000</WorkToMake>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.17</ShotSpread>
			<SwayFactor>0.88</SwayFactor>
			<Bulk>1.86</Bulk>
			<Mass>0.78</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>2.74</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>12</range>
			<burstShotCount>3</burstShotCount>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>
		<AmmoUser>
			<magazineSize>17</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- ========== Anti-Material Rifle ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ThogsAntiMaterialRifle</defName>
		<statBases>
			<Mass>13.50</Mass>
			<RangedWeapon_Cooldown>0.58</RangedWeapon_Cooldown>
			<SightsEfficiency>2.84</SightsEfficiency>
			<ShotSpread>0.07</ShotSpread>
			<SwayFactor>1.87</SwayFactor>
			<Bulk>13.00</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>2.49</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_50BMG_FMJ</defaultProjectile>
			<warmupTime>3.3</warmupTime>
			<range>126</range>
			<soundCast>RNShot50Cal</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Mounted</recoilPattern>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_50BMG</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!--==== Advanced Assault Rifle ====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ThogsGun_AdvancedAssaultRifle</defName>
		<statBases>
			<Mass>3.67</Mass>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
			<ShotSpread>0.17</ShotSpread>
			<SwayFactor>0.79</SwayFactor>
			<Bulk>9.7</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
			<WorkToMake>42000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.23</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>58</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>10</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>
</Patch>