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

	<!--  ==========Guns==========  -->

	<!-- AN-94 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_BurstRifle</defName>
		<statBases>
			<Mass>3.85</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.33</SwayFactor>
			<Bulk>7.28</Bulk>
			<WorkToMake>48000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.29</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_545x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>55</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<soundCast>CEC_AN94Shot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_545x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>true</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- HK G11 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_ClockworkAR</defName>
		<statBases>
			<Bulk>7.50</Bulk>
			<Mass>3.65</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>2.25</SightsEfficiency>
			<SwayFactor>1.15</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<WorkToMake>55000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.30</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_473x33mmCaseless_FMJ</defaultProjectile>
			<warmupTime>1.225</warmupTime>
			<range>48</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
			<soundCast>CEC_G11Shot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>45</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_473x33mmCaseless</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<researchPrerequisite>Fabrication</researchPrerequisite>
	</Operation>

	<!-- AS Val -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_SSRifle</defName>
		<statBases>
			<Mass>2.50</Mass>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.13</SwayFactor>
			<Bulk>6.15</Bulk>
			<WorkToMake>35000</WorkToMake>
		</statBases>
		<Properties>
			<recoilAmount>1.94</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_9x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>48</range>
			<burstShotCount>4</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<soundCast>CEC_SuppressedShot</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<aimedBurstShotCount>2</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- A-545 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_MRS</defName>
		<statBases>
			<Mass>3.30</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.08</ShotSpread>
			<SwayFactor>1.29</SwayFactor>
			<Bulk>7.20</Bulk>
			<WorkToMake>43000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.39</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_545x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>55</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<soundCast>CEC_A545Shot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_545x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- AKS-47UN -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_CompactSR</defName>
		<statBases>
			<Mass>2.49</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>0.98</SwayFactor>
			<Bulk>4.90</Bulk>
			<WorkToMake>28000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.60</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_545x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>31</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<soundCast>CEC_AKS74UShot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_545x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
		<researchPrerequisite>GasOperation</researchPrerequisite>
	</Operation>

	<!-- Zip 22 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_Zipper</defName>
		<statBases>
			<Mass>0.43</Mass>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.28</ShotSpread>
			<SwayFactor>0.76</SwayFactor>
			<Bulk>1.84</Bulk>
			<WorkToMake>3000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_22LR_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</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>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_AI_Pistol</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<!-- Colt Dragoon -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_BigIron</defName>
		<statBases>
			<Mass>1.90</Mass>
			<RangedWeapon_Cooldown>0.88</RangedWeapon_Cooldown>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.15</ShotSpread>
			<SwayFactor>1.88</SwayFactor>
			<Bulk>3.75</Bulk>
			<WorkToMake>6000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_44Magnum_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>CEC_DragoonShot</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>5.1</reloadTime>
			<ammoSet>AmmoSet_44Magnum</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_AI_Pistol</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<!-- THUN-DER! -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_Thunder</defName>
		<statBases>
			<Mass>5.44</Mass>
			<RangedWeapon_Cooldown>0.92</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.10</ShotSpread>
			<SwayFactor>3.25</SwayFactor>
			<Bulk>4.30</Bulk>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_50BMG_FMJ</defaultProjectile>
			<warmupTime>1.85</warmupTime>
			<range>16</range>
			<soundCast>Shot_TurretSniper</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<AmmoGenPerMagOverride>4</AmmoGenPerMagOverride>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_50BMG</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>SimpleGun</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

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

	<!-- FiveSeven -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_FiveSeven</defName>
		<statBases>
			<Mass>0.61</Mass>
			<RangedWeapon_Cooldown>0.836</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.17</ShotSpread>
			<SwayFactor>0.90</SwayFactor>
			<Bulk>2.08</Bulk>
			<WorkToMake>10000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_FN57x28mm_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>18.5</range>
			<soundCast>Shot_MachinePistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_FN57x28mm</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_AI_Pistol</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>BlowbackOperation</researchPrerequisite>
	</Operation>

	<!-- P90 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_PDW</defName>
		<statBases>
			<WorkToMake>34000</WorkToMake>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.12</ShotSpread>
			<SwayFactor>0.93</SwayFactor>
			<Bulk>6.67</Bulk>
			<Mass>2.6</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_FN57x28mm_FMJ</defaultProjectile>
			<warmupTime>0.4</warmupTime>
			<range>15</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<soundCast>Shot_HeavySMG</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
			<recoilAmount>0.66</recoilAmount>
		</Properties>
		<AmmoUser>
			<magazineSize>50</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_FN57x28mm</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>IndustrialGunAdvanced</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>BlowbackOperation</researchPrerequisite>
	</Operation>

	<!-- Suomi KP-31 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_WoodlandSMG</defName>
		<statBases>
			<Mass>4.60</Mass>
			<RangedWeapon_Cooldown>0.6</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.11</ShotSpread>
			<SwayFactor>1.33</SwayFactor>
			<Bulk>8.70</Bulk>
			<WorkToMake>26000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.08</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>20</range>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<soundCast>CEC_SuomiShot</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>36</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>4</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
		<researchPrerequisite>BlowbackOperation</researchPrerequisite>
	</Operation>

	<!-- Skorpion Evo -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_SkorpionEvo</defName>
		<statBases>
			<Mass>2.60</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>0.93</SwayFactor>
			<Bulk>4.10</Bulk>
			<WorkToMake>26000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.44</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>20</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<soundCast>Shot_MachinePistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<researchPrerequisite>BlowbackOperation</researchPrerequisite>
	</Operation>

	<!-- MG-42 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_TMG</defName>
		<statBases>
			<Mass>15.20</Mass>
			<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.06</ShotSpread>
			<SwayFactor>1.67</SwayFactor>
			<Bulk>11.60</Bulk>
			<WorkToMake>18000</WorkToMake>
		</statBases>
		<costList>
			<Steel>140</Steel>
			<ComponentIndustrial>6</ComponentIndustrial>
			<WoodLog>5</WoodLog>
		</costList>
		<Properties>
			<recoilAmount>1.25</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_792x57mmMauser_FMJ</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>65</range>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<burstShotCount>10</burstShotCount>
			<soundCast>CEC_MG42Shot</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
			<recoilPattern>Mounted</recoilPattern>
		</Properties>
		<AmmoUser>
			<magazineSize>50</magazineSize>
			<reloadTime>7.8</reloadTime>
			<ammoSet>AmmoSet_792x57mmMauser</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>5</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>IndustrialGunAdvanced</li>
			<li>Bipod_LMG</li>
		</weaponTags>
		<researchPrerequisite>GasOperation</researchPrerequisite>
	</Operation>

	<!-- LWAMG -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_LWAMG</defName>
		<statBases>
			<Mass>8.20</Mass>
			<RangedWeapon_Cooldown>0.58</RangedWeapon_Cooldown>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.07</ShotSpread>
			<SwayFactor>1.27</SwayFactor>
			<Bulk>13.0</Bulk>
			<WorkToMake>42000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>1.4</recoilAmount>
			<recoilPattern>Mounted</recoilPattern>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>68</range>
			<burstShotCount>10</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<soundCast>CEC_KnightsLWAMGShot</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>7.8</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>5</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_MachineGun</li>
			<li>CE_AI_Suppressive</li>
			<li>Bipod_SAW</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- M14 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_BattleRifle</defName>
		<statBases>
			<Mass>4.10</Mass>
			<RangedWeapon_Cooldown>0.41</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.06</ShotSpread>
			<SwayFactor>1.54</SwayFactor>
			<Bulk>11.26</Bulk>
			<WorkToMake>16000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>3.38</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>59</range>
			<burstShotCount>4</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<soundCast>CEC_M14Shot</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4.0</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>2</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>IndustrialGunAdvanced</li>
			<li>SniperRifle</li>
		</weaponTags>
		<researchPrerequisite>GasOperation</researchPrerequisite>
	</Operation>

	<!-- M200 Intervention -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_Intervention</defName>
		<statBases>
			<Mass>14.10</Mass>
			<RangedWeapon_Cooldown>1.37</RangedWeapon_Cooldown>
			<SightsEfficiency>2.72</SightsEfficiency>
			<ShotSpread>0.02</ShotSpread>
			<SwayFactor>1.98</SwayFactor>
			<Bulk>12.87</Bulk>
			<WorkToMake>59000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_408CheyenneTactical_FMJ</defaultProjectile>
			<warmupTime>1.90</warmupTime>
			<range>75</range>
			<soundCast>CEC_InterventionShot</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>7</magazineSize>
			<reloadTime>4.0</reloadTime>
			<ammoSet>AmmoSet_408CheyenneTactical</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>SniperRifle</li>
			<li>IndustrialGunAdvanced</li>
			<li>Bipod_AMR</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- NTW-20 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_AntiMaterielRifle</defName>
		<statBases>
			<Mass>31.0</Mass>
			<RangedWeapon_Cooldown>1.08</RangedWeapon_Cooldown>
			<SightsEfficiency>2.72</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>3.51</SwayFactor>
			<Bulk>18.95</Bulk>
			<WorkToMake>64000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilPattern>Mounted</recoilPattern>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_20x110mmHispano_AP</defaultProjectile>
			<warmupTime>1.90</warmupTime>
			<range>86</range>
			<soundCast>CEC_NTW20Shot</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<AmmoGenPerMagOverride>3</AmmoGenPerMagOverride>
			<reloadTime>1</reloadTime>
			<ammoSet>AmmoSet_20x110mmHispano</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>SniperRifle</li>
			<li>Bipod_ATR</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- DVL-10 Saboteur -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_DVLTen</defName>
		<statBases>
			<Mass>4.80</Mass>
			<RangedWeapon_Cooldown>1.40</RangedWeapon_Cooldown>
			<SightsEfficiency>2.60</SightsEfficiency>
			<ShotSpread>0.05</ShotSpread>
			<SwayFactor>1.11</SwayFactor>
			<Bulk>11.04</Bulk>
			<WorkToMake>47000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.46</warmupTime>
			<range>75</range>
			<soundCast>CEC_DVL10Shot</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4.0</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>SniperRifle</li>
			<li>Bipod_DMR</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- WA 2000 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_BullpupSniper</defName>
		<statBases>
			<Mass>7.20</Mass>
			<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>
			<SightsEfficiency>2.7</SightsEfficiency>
			<ShotSpread>0.04</ShotSpread>
			<SwayFactor>1.73</SwayFactor>
			<Bulk>9.05</Bulk>
			<WorkToMake>52000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.60</warmupTime>
			<range>75</range>
			<soundCast>CEC_WA2000Shot</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4.5</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>SniperRifle</li>
			<li>Bipod_DMR</li>
		</weaponTags>
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- Super Shorty -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_MuffaloCannon</defName>
		<statBases>
			<Mass>1.80</Mass>
			<RangedWeapon_Cooldown>1.01</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>2.00</SwayFactor>
			<Bulk>4.19</Bulk>
			<WorkToMake>10000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.60</warmupTime>
			<range>12</range>
			<soundCast>CEC_SuperShortyShot</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>2</magazineSize>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
			<reloadOneAtATime>true</reloadOneAtATime>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_AI_Pistol</li>
			<li>IndustrialGunAdvanced</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<!-- UTS-15 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_CombatShotgun</defName>
		<statBases>
			<Mass>3.10</Mass>
			<RangedWeapon_Cooldown>0.99</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.07</ShotSpread>
			<SwayFactor>1.03</SwayFactor>
			<Bulk>7.20</Bulk>
			<WorkToMake>27000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.60</warmupTime>
			<range>16</range>
			<soundCast>CEC_UTS15Shot</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>14</magazineSize>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
			<reloadOneAtATime>true</reloadOneAtATime>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<researchPrerequisite>GasOperation</researchPrerequisite>
	</Operation>

	<!-- PAW-20 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CEC_Neopup</defName>
		<statBases>
			<Mass>5.90</Mass>
			<RangedWeapon_Cooldown>0.41</RangedWeapon_Cooldown>
			<SightsEfficiency>1.10</SightsEfficiency>
			<ShotSpread>0.10</ShotSpread>
			<SwayFactor>1.44</SwayFactor>
			<Bulk>7.70</Bulk>
			<WorkToMake>22000</WorkToMake>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<recoilAmount>0.41</recoilAmount>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_20x42mmGrenade_HE</defaultProjectile>
			<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
			<warmupTime>1</warmupTime>
			<range>62</range>
			<minRange>4</minRange>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
			<soundCast>InfernoCannon_Fire</soundCast>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_20x42mmGrenade</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Launcher</li>
		</weaponTags>
		<researchPrerequisite>CE_Launchers</researchPrerequisite>
	</Operation>

	<!-- Tactical Sledgehammer -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CEC_TacticalSledgeHammer"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1.78</cooldownTime>
					<chanceFactor>0.10</chanceFactor>
					<armorPenetrationBlunt>1.000</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>22</power>
					<cooldownTime>2.36</cooldownTime>
					<chanceFactor>0.30</chanceFactor>
					<armorPenetrationBlunt>12.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CEC_TacticalSledgeHammer"]/statBases/Mass</xpath>
		<value>
			<Mass>5.76</Mass>
			<Bulk>9</Bulk>
			<MeleeCounterParryBonus>0.24</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CEC_TacticalSledgeHammer"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>2.30</MeleeCritChance>
				<MeleeParryChance>0.18</MeleeParryChance>
				<MeleeDodgeChance>0.30</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="CEC_Zipper" or
			defName="CEC_MuffaloCannon" or
			defName="CEC_FiveSeven" or
			defName="CEC_Thunder" or
			defName="CEC_BigIron"
			]/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="CEC_BurstRifle" or
			defName="CEC_ClockworkAR" or
			defName="CEC_MRS" or
			defName="CEC_SSRifle" or
			defName="CEC_CompactSR" or
			defName="CEC_Neopup" or
			defName="CEC_CombatShotgun" or
			defName="CEC_BullpupSniper" or
			defName="CEC_DVLTen" or
			defName="CEC_AntiMaterielRifle" or
			defName="CEC_Intervention" or
			defName="CEC_BattleRifle" or
			defName="CEC_LWAMG" or
			defName="CEC_WoodlandSMG" or
			defName="CEC_PDW" or
			defName="CEC_TMG" or
			defName="CEC_SkorpionEvo"
			]/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>

</Patch>