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

	<!-- === Tools === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWE_Bow_Compound"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.6</cooldownTime>
					<armorPenetrationBlunt>0.65</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>
			Defs/ThingDef[
			defName="VWE_CombatHandgun" or
			defName="VWE_Gun_HandCannon" or
			defName="VWE_Gun_LightSMG" or
			defName="VWE_Gun_SMG" or
			defName="VWE_SawedOffShotgun"
			]/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="VWE_Gun_AntiMaterialRifle" or
			defName="VWE_Gun_SemiAutomaticRifle" or
			defName="VWE_Gun_BattleRifle" or
			defName="VWE_Gun_Carbine" or
			defName="VWE_Gun_Flamethrower" or
			defName="VWE_Gun_HMG" or
			defName="VWE_Gun_LeverActionRifle" or
			defName="VWE_Gun_MarksmanRifle" or
			defName="VWE_Gun_GrenadeLauncher" or
			defName="VWE_Gun_ServiceRifle" or
			defName="VWE_TrenchGun"
			]/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>

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

	<!-- === Compound Bow === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Bow_Compound</defName>
		<statBases>
			<Bulk>4</Bulk>
			<SwayFactor>2</SwayFactor>
			<ShotSpread>1</ShotSpread>
			<SightsEfficiency>0.8</SightsEfficiency>
			<RangedWeapon_Cooldown>1</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>25</Steel>
			<ComponentIndustrial>1</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Projectile_StreamlinedArrow_Steel</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>24</range>
			<soundCast>VWE_Bow_Compound</soundCast>
		</Properties>
		<AmmoUser>
			<ammoSet>AmmoSet_StreamlinedArrow</ammoSet>
			<AmmoGenPerMagOverride>5</AmmoGenPerMagOverride>
		</AmmoUser>
		<FireModes />
		<weaponTags Inherit="False">
			<li>CE_Bow</li>
		</weaponTags>
	</Operation>

	<!-- === Combat Handgun === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_CombatHandgun</defName>
		<statBases>
			<WorkToMake>7000</WorkToMake>
			<Mass>1.11</Mass>
			<Bulk>2.10</Bulk>
			<SwayFactor>0.32</SwayFactor>
			<ShotSpread>0.17</ShotSpread>
			<SightsEfficiency>0.7</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>25</Steel>
			<ComponentIndustrial>3</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.5</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_FN57x28mm_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>13</range>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_FN57x28mm</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SimpleGun</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- === Heavy Revolver (Chiappa Rhino) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_HandCannon</defName>
		<statBases>
			<WorkToMake>4500</WorkToMake>
			<Mass>0.90</Mass>
			<Bulk>2.41</Bulk>
			<ShotSpread>0.17</ShotSpread>
			<SwayFactor>1.10</SwayFactor>
			<SightsEfficiency>0.7</SightsEfficiency>
			<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>20</Steel>
			<WoodLog>5</WoodLog>
			<ComponentIndustrial>2</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.5</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_357Magnum_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>VWE_Shot_Handcannon</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_357Magnum</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SimpleGun</li>
			<li>Revolver</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- === Light SMG (Uzi) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_LightSMG</defName>
		<statBases>
			<Mass>3.50</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.18</ShotSpread>
			<SwayFactor>3.30</SwayFactor>
			<Bulk>4.70</Bulk>
			<WorkToMake>24000</WorkToMake>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<ComponentIndustrial>3</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>1.28</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>25</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<soundCast>VWE_Shot_LightSMG</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>32</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>IndustrialGunAdvanced</li>
			<li>CE_AI_AssaultWeapon</li>
			<li>CE_SMG</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- === SMG (MP5A3) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_SMG</defName>
		<statBases>
			<WorkToMake>13000</WorkToMake>
			<Mass>2.54</Mass>
			<Bulk>5.35</Bulk>
			<SwayFactor>0.95</SwayFactor>
			<ShotSpread>0.19</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<ComponentIndustrial>5</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>1.45</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<warmupTime>0.6</warmupTime>
			<range>25</range>
			<soundCast>VWE_Shot_SMG</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
	</Operation>

	<!-- === Sawed Off === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_SawedOffShotgun</defName>
		<statBases>
			<WorkToMake>12500</WorkToMake>
			<Mass>2.35</Mass>
			<Bulk>4.75</Bulk>
			<ShotSpread>0.17</ShotSpread>
			<SwayFactor>0.81</SwayFactor>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.40</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<WoodLog>5</WoodLog>
			<ComponentIndustrial>1</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>3.58</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck_SB</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>14</range>
			<soundCast>Shot_Shotgun_NoRack</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>2</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>1.2</reloadTime>
			<ammoSet>AmmoSet_12Gauge_SB</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SimpleGun</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<!-- === Trench Gun (M1897) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_TrenchGun</defName>
		<statBases>
			<WorkToMake>21000</WorkToMake>
			<Mass>3.6</Mass>
			<Bulk>9.97</Bulk>
			<SwayFactor>1.36</SwayFactor>
			<ShotSpread>0.14</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.99</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>50</Steel>
			<WoodLog>10</WoodLog>
			<ComponentIndustrial>4</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.8</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>15</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>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<researchPrerequisite>VWE_TrenchWarfare</researchPrerequisite>
	</Operation>

	<!-- === Battle Rifle, based on the 7.62 spec SCAR-H === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_BattleRifle</defName>
		<statBases>
			<WorkToMake>31000</WorkToMake>
			<Mass>3.658</Mass>
			<Bulk>7.11</Bulk>
			<SwayFactor>1.32</SwayFactor>
			<ShotSpread>0.09</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>40</Steel>
			<Chemfuel>40</Chemfuel>
			<ComponentIndustrial>6</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.11</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<warmupTime>1.1</warmupTime>
			<range>62</range>
			<soundCast>VWE_Shot_BattleRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<!-- Required research rework -->
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- === Carbine (Steyr AUG A3)=== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_Carbine</defName>
		<statBases>
			<WorkToMake>31500</WorkToMake>
			<Mass>3.30</Mass>
			<Bulk>7.25</Bulk>
			<SwayFactor>1.07</SwayFactor>
			<ShotSpread>0.04</ShotSpread>
			<SightsEfficiency>2.09</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>45</Steel>
			<Chemfuel>20</Chemfuel>
			<ComponentIndustrial>7</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>1.5</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<warmupTime>1.1</warmupTime>
			<range>55</range>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<!-- Required research rework -->
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- === Service Rifle (AKM) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_ServiceRifle</defName>
		<statBases>
			<WorkToMake>27000</WorkToMake>
			<Mass>3.30</Mass>
			<Bulk>8.80</Bulk>
			<SwayFactor>1.21</SwayFactor>
			<ShotSpread>0.09</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>45</Steel>
			<WoodLog>10</WoodLog>
			<ComponentIndustrial>5</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>1.86</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<warmupTime>1.1</warmupTime>
			<range>44</range>
			<soundCast>VWE_Shot_ServiceRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
		<!-- Required research rework -->
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
	</Operation>

	<!-- === Semi Automatic Rifle (M14) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_SemiAutomaticRifle</defName>
		<statBases>
			<WorkToMake>18500</WorkToMake>
			<Mass>4.2</Mass>
			<Bulk>11.26</Bulk>
			<SwayFactor>1.55</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>40</Steel>
			<WoodLog>10</WoodLog>
			<ComponentIndustrial>3</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>1.95</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>62</range>
			<soundCast>VWE_Shot_SemiAutoRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>20</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<!-- Required Research Rework -->
		<researchPrerequisite>GasOperation</researchPrerequisite>
	</Operation>

	<!-- === Lever Action Rifle (Winchester 1894)  === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_LeverActionRifle</defName>
		<statBases>
			<WorkToMake>12500</WorkToMake>
			<Mass>3.1</Mass>
			<Bulk>9.6</Bulk>
			<SwayFactor>1.27</SwayFactor>
			<ShotSpread>0.15</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.77</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>50</Steel>
			<ComponentIndustrial>2</ComponentIndustrial>
			<WoodLog>10</WoodLog>
		</costList>
		<Properties>
			<recoilAmount>2.18</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_3030Winchester_FMJ</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>48</range>
			<soundCast>VWE_Shot_LeverActionRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>7</magazineSize>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_3030Winchester</ammoSet>
			<reloadOneAtATime>true</reloadOneAtATime>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<!-- Required research rework -->
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<!-- === Anti-Material Rifle (Barrett M82) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_AntiMaterialRifle</defName>
		<statBases>
			<WorkToMake>39000</WorkToMake>
			<Mass>14.8</Mass>
			<Bulk>14</Bulk>
			<SwayFactor>3</SwayFactor>
			<ShotSpread>0.02</ShotSpread>
			<SightsEfficiency>2.84</SightsEfficiency>
			<RangedWeapon_Cooldown>1.38</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>120</Steel>
			<ComponentIndustrial>7</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.34</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_50BMG_FMJ</defaultProjectile>
			<warmupTime>3.5</warmupTime>
			<range>86</range>
			<soundCast>VWE_Shot_AntiMaterialRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_50BMG</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SniperRifle</li>
			<li>Bipod_AMR</li>
		</weaponTags>
		<!-- Required research rework -->
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>
	
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="VWE_Gun_AntiMaterialRifle"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<!-- === Marksman Rifle (SVD) === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_MarksmanRifle</defName>
		<statBases>
			<WorkToMake>23000</WorkToMake>
			<Mass>4.30</Mass>
			<Bulk>12.25</Bulk>
			<SwayFactor>1.70</SwayFactor>
			<ShotSpread>0.04</ShotSpread>
			<SightsEfficiency>2.24</SightsEfficiency>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>60</Steel>
			<WoodLog>10</WoodLog>
			<ComponentIndustrial>4</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>1.94</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x54mmR_FMJ</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>75</range>
			<soundCast>Shot_SniperRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_762x54mmR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SniperRifle</li>
		</weaponTags>
		<!-- Required research rework -->
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- === Heavy Machine Gun (Mark 48)s === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_HMG</defName>
		<statBases>
			<WorkToMake>39500</WorkToMake>
			<Mass>8.2</Mass>
			<Bulk>12</Bulk>
			<SwayFactor>1.82</SwayFactor>
			<ShotSpread>0.07</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>70</Steel>
			<WoodLog>15</WoodLog>
			<ComponentIndustrial>6</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>1.39</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
			<burstShotCount>10</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<warmupTime>1.3</warmupTime>
			<range>62</range>
			<soundCast>VWE_Shot_HMG</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>7.8</reloadTime>
			<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>SuppressFire</aiAimMode>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aimedBurstShotCount>5</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>CE_MachineGun</li>
			<li>Bipod_LMG</li>
		</weaponTags>
		<!-- Required research rework -->
		<researchPrerequisite>PrecisionRifling</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- === Flamethrower (RM2 Flamethrower from CE: Guns) === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWE_Gun_Flamethrower"]/verbs/li/verbClass</xpath>
		<value>
			<verbClass>Verb_Shoot</verbClass>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_Flamethrower</defName>
		<statBases>
			<WorkToMake>25500</WorkToMake>
			<Mass>5.5</Mass>
			<Bulk>8</Bulk>
			<SwayFactor>1.35</SwayFactor>
			<ShotSpread>5</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>40</Steel>
			<Chemfuel>10</Chemfuel>
			<ComponentIndustrial>3</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>0.85</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<burstShotCount>20</burstShotCount>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<warmupTime>1.1</warmupTime>
			<range>11</range>
			<minRange>3</minRange>
			<soundCast>HissFlamethrower</soundCast>
			<muzzleFlashScale>0</muzzleFlashScale>
			<ai_IsBuildingDestroyer>True</ai_IsBuildingDestroyer>
			<targetParams>
				<canTargetLocations>True</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>40</magazineSize>
			<reloadTime>5</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>SuppressFire</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>10</aimedBurstShotCount>
		</FireModes>
		<!-- Required research rework -->
		<researchPrerequisite>CE_Launchers</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- === Grenade Launcher === -->
	<!-- Once again, technically not the same weapon, but the original cost and stats were based (and they're still are) mostly based on the Milkor MGL, so I'm bringing the VWE version up to par -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_GrenadeLauncher</defName>
		<statBases>
			<!-- The VWE weapon does not visually have the optics the Milkor MGL from Combat Extended Guns has, so its work to make is accordingly reduced -->
			<WorkToMake>24000</WorkToMake>
			<Mass>5.35</Mass>
			<Bulk>5.70</Bulk>
			<SwayFactor>1.31</SwayFactor>
			<ShotSpread>0.18</ShotSpread>
			<!-- The VWE weapon does not visually have the optics the Milkor MGL from Combat Extended Guns has, so its sight efficiency was left as 1.0 -->
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>40</Steel>
			<Chemfuel>10</Chemfuel>
			<ComponentIndustrial>3</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.93</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_40x46mmGrenade_HE</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>40</range>
			<minRange>5</minRange>
			<soundCast>VWE_Shot_GrenadeLauncher</soundCast>
			<muzzleFlashScale>14</muzzleFlashScale>
			<ai_IsBuildingDestroyer>True</ai_IsBuildingDestroyer>
			<ignorePartialLoSBlocker>True</ignorePartialLoSBlocker>
			<targetParams>
				<canTargetLocations>True</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_40x46mmGrenade</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>SuppressFire</aiAimMode>
			<aiUseBurstMode>False</aiUseBurstMode>
		</FireModes>
		<researchPrerequisite>CE_Launchers</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- === Rocket Launcher === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_RocketLauncher</defName>
		<statBases>
			<WorkToMake>43500</WorkToMake>
			<Mass>12.0</Mass>
			<Bulk>13.0</Bulk>
			<SwayFactor>3.24</SwayFactor>
			<ShotSpread>0.02</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>1.5</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>90</Steel>
			<FSX>5</FSX>
			<ComponentIndustrial>7</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCEOneUse</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Rocket</defaultProjectile>
			<burstShotCount>1</burstShotCount>
			<warmupTime>1.45</warmupTime>
			<range>40</range>
			<soundCast>InfernoCannon_Fire</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
			<onlyManualCast>True</onlyManualCast>
			<ai_IsBuildingDestroyer>True</ai_IsBuildingDestroyer>
			<ignorePartialLoSBlocker>True</ignorePartialLoSBlocker>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>GunHeavy</li>
			<li>CE_AI_Launcher</li>
		</weaponTags>
		<!-- Research prerequisite rework -->
		<researchPrerequisite>CE_AdvancedLaunchers</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>
</Patch>