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

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

	<!-- Heavy Weapons -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceRocketLauncher"]/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>

	<!-- ========== Weapons ========== -->

	<!-- Webley Mk VI -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceRevolver"]</xpath>
		<value>
			<statBases>
				<SightsEfficiency>0.7</SightsEfficiency>
				<ShotSpread>0.18</ShotSpread>
				<SwayFactor>1.2</SwayFactor>
				<Bulk>2.2</Bulk>
				<Mass>1.1</Mass>
				<RangedWeapon_Cooldown>0.50</RangedWeapon_Cooldown>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.57</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_455Webley_FMJ</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>12</range>
					<soundCast>Shot_Revolver</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>6</magazineSize>
					<reloadTime>4</reloadTime>
					<ammoSet>AmmoSet_455Webley</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- Enfield No. 2 Revolver -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceRevolverB"]</xpath>
		<value>
			<statBases>
				<SightsEfficiency>0.7</SightsEfficiency>
				<ShotSpread>0.18</ShotSpread>
				<SwayFactor>1.2</SwayFactor>
				<Bulk>2.2</Bulk>
				<Mass>1.1</Mass>
				<RangedWeapon_Cooldown>0.50</RangedWeapon_Cooldown>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.62</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_38SW_FMJ</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>12</range>
					<soundCast>Shot_Revolver</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>6</magazineSize>
					<reloadTime>4</reloadTime>
					<ammoSet>AmmoSet_38SW</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- Lee Enfield No. 4 Mk I-->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceRifle"]</xpath>
		<value>
			<statBases>
				<Mass>4.19</Mass>
				<RangedWeapon_Cooldown>1.17</RangedWeapon_Cooldown>
				<SightsEfficiency>1</SightsEfficiency>
				<ShotSpread>0.02</ShotSpread>
				<SwayFactor>1.68</SwayFactor>
				<Bulk>12.60</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.04</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_303British_FMJ</defaultProjectile>
					<warmupTime>1.1</warmupTime>
					<range>55</range>
					<soundCast>Shot_BoltActionRifle</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>10</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_303British</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- Lee Enfield No. 4 Mk I with Bayonet-->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceRifleBayonet"]</xpath>
		<value>
			<statBases>
				<Mass>4.30</Mass>
				<RangedWeapon_Cooldown>1.17</RangedWeapon_Cooldown>
				<SightsEfficiency>1</SightsEfficiency>
				<ShotSpread>0.02</ShotSpread>
				<SwayFactor>1.74</SwayFactor>
				<Bulk>12.80</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.03</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_303British_FMJ</defaultProjectile>
					<warmupTime>1.1</warmupTime>
					<range>55</range>
					<soundCast>Shot_BoltActionRifle</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>10</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_303British</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- Lanchester SMG -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceSMG"]</xpath>
		<value>
			<statBases>
				<Mass>4.3</Mass>
				<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
				<SightsEfficiency>1.00</SightsEfficiency>
				<ShotSpread>0.14</ShotSpread>
				<SwayFactor>1.21</SwayFactor>
				<Bulk>8.43</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>0.95</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>24</range>
					<burstShotCount>5</burstShotCount>
					<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
					<soundCast>Shot_HeavySMG</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>32</magazineSize>
					<reloadTime>4</reloadTime>
					<ammoSet>AmmoSet_9x19mmPara</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>Snapshot</aiAimMode>
					<aimedBurstShotCount>4</aimedBurstShotCount>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- Sten Mk II SMG -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceSMGB"]</xpath>
		<value>
			<statBases>
				<Mass>4.3</Mass>
				<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
				<SightsEfficiency>1.00</SightsEfficiency>
				<ShotSpread>0.16</ShotSpread>
				<SwayFactor>0.80</SwayFactor>
				<Bulk>8.43</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>0.95</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>24</range>
					<burstShotCount>5</burstShotCount>
					<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
					<soundCast>Shot_HeavySMG</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>32</magazineSize>
					<reloadTime>4</reloadTime>
					<ammoSet>AmmoSet_9x19mmPara</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>Snapshot</aiAimMode>
					<aimedBurstShotCount>4</aimedBurstShotCount>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- Bren Mk IV LMG -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceLMG"]</xpath>
		<value>
			<statBases>
				<Mass>8.7</Mass>
				<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
				<SightsEfficiency>1</SightsEfficiency>
				<ShotSpread>0.05</ShotSpread>
				<SwayFactor>1.37</SwayFactor>
				<Bulk>12.9</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>1.38</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_303British_FMJ</defaultProjectile>
					<warmupTime>1.3</warmupTime>
					<range>62</range>
					<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
					<burstShotCount>10</burstShotCount>
					<soundCast>Shot_CE_BattleRifle</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
					<recoilPattern>Mounted</recoilPattern>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>50</magazineSize>
					<reloadTime>4.9</reloadTime>
					<ammoSet>AmmoSet_303British</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aimedBurstShotCount>5</aimedBurstShotCount>
					<aiUseBurstMode>FALSE</aiUseBurstMode>
					<aiAimMode>SuppressFire</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceLMG"]/weaponTags</xpath>
		<value>
			<li>Bipod_LMG</li>
		</value>
	</Operation>

	<!-- Lee Enfield No. 4 Mk I (T) Sniper Rifle -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceSniperRifle"]</xpath>
		<value>
			<statBases>
				<Mass>5.19</Mass>
				<RangedWeapon_Cooldown>1.17</RangedWeapon_Cooldown>
				<SightsEfficiency>2.21</SightsEfficiency>
				<ShotSpread>0.02</ShotSpread>
				<SwayFactor>1.68</SwayFactor>
				<Bulk>12.60</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_303British_FMJ</defaultProjectile>
					<warmupTime>1.27</warmupTime>
					<range>75</range>
					<soundCast>Shot_BoltActionRifle</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>10</magazineSize>
					<reloadOneAtATime>True</reloadOneAtATime>
					<reloadTime>0.85</reloadTime>
					<ammoSet>AmmoSet_303British</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- PIAT -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>K4G_Gun_WW2BritishServiceRocketLauncher</defName>
		<statBases>
			<Mass>15.00</Mass>
			<RangedWeapon_Cooldown>1.50</RangedWeapon_Cooldown>
			<SightsEfficiency>1.00</SightsEfficiency>
			<ShotSpread>0.2</ShotSpread>
			<SwayFactor>2.49</SwayFactor>
			<Bulk>10.90</Bulk>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_83mmPIATGrenade_HEAT</defaultProjectile>
			<warmupTime>1.9</warmupTime>
			<range>20</range>
			<soundCast>InfernoCannon_Fire</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
			<onlyManualCast>true</onlyManualCast>
			<stopBurstWithoutLos>false</stopBurstWithoutLos>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>5.6</reloadTime>
			<ammoSet>AmmoSet_83mmPIATGrenade</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- Boys Anti-Tank Rifle -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceAntiTankRifle"]</xpath>
		<value>
			<statBases>
				<SightsEfficiency>1.0</SightsEfficiency>
				<ShotSpread>0.01</ShotSpread>
				<SwayFactor>2.89</SwayFactor>
				<Bulk>22.0</Bulk>
				<Mass>20.30</Mass>
				<RangedWeapon_Cooldown>0.58</RangedWeapon_Cooldown>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_55Boys_FMJ</defaultProjectile>
					<warmupTime>2.8</warmupTime>
					<range>62</range>
					<soundCast>HeavyMG</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>5</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_55Boys</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2BritishServiceAntiTankRifle"]/weaponTags</xpath>
		<value>
			<li>Bipod_ATR</li>
		</value>
	</Operation>

</Patch>