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

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[
			defName="VWE_Gun_MakeshiftPistol" or
			defName="VWE_Gun_MakeshiftSMG" or
			defName="VWE_Gun_MakeshiftRifle" or
			defName="VWE_Gun_MakeshiftLMG" or
			defName="VWE_Gun_MakeshiftShotgun"
			]/modExtensions</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>
			Defs/ThingDef[defName="VWE_Gun_MakeshiftPistol"]/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_MakeshiftSMG" or
			defName="VWE_Gun_MakeshiftRifle" or
			defName="VWE_Gun_MakeshiftLMG" or
			defName="VWE_Gun_MakeshiftShotgun"
			]/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="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_MakeshiftPistol</defName>
		<statBases>
			<Mass>1.33</Mass>
			<RangedWeapon_Cooldown>0.42</RangedWeapon_Cooldown>
			<SightsEfficiency>0.50</SightsEfficiency>
			<ShotSpread>0.60</ShotSpread>
			<SwayFactor>1.30</SwayFactor>
			<Bulk>2.62</Bulk>
		</statBases>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWE_Gun_MakeshiftPistol"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.75</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
					<warmupTime>0.5</warmupTime>
					<range>10</range>
					<soundCast>Shot_Autopistol</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_MakeshiftSMG</defName>
		<statBases>
			<Mass>2.83</Mass>
			<RangedWeapon_Cooldown>0.40</RangedWeapon_Cooldown>
			<SightsEfficiency>0.80</SightsEfficiency>
			<ShotSpread>0.38</ShotSpread>
			<SwayFactor>1.18</SwayFactor>
			<Bulk>5.62</Bulk>
		</statBases>
		<AmmoUser>
			<magazineSize>24</magazineSize>
			<reloadTime>4.4</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWE_Gun_MakeshiftSMG"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.02</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
					<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
					<burstShotCount>6</burstShotCount>
					<warmupTime>0.6</warmupTime>
					<range>22</range>
					<soundCast>Shot_MachinePistol</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_MakeshiftRifle</defName>
		<statBases>
			<Mass>4</Mass>
			<RangedWeapon_Cooldown>0.40</RangedWeapon_Cooldown>
			<SightsEfficiency>0.80</SightsEfficiency>
			<ShotSpread>0.30</ShotSpread>
			<SwayFactor>1.68</SwayFactor>
			<Bulk>11.62</Bulk>
		</statBases>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<aimedBurstShotCount>2</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AR</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWE_Gun_MakeshiftRifle"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>1.73</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
					<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
					<burstShotCount>5</burstShotCount>
					<warmupTime>1.1</warmupTime>
					<range>40</range>
					<soundCast>Shot_AssaultRifle</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_MakeshiftLMG</defName>
		<statBases>
			<Mass>11.5</Mass>
			<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			<SightsEfficiency>0.80</SightsEfficiency>
			<ShotSpread>0.28</ShotSpread>
			<SwayFactor>2.23</SwayFactor>
			<Bulk>15.7</Bulk>
		</statBases>
		<AmmoUser>
			<magazineSize>50</magazineSize>
			<reloadTime>5.2</reloadTime>
			<ammoSet>AmmoSet_762x54mmR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<aimedBurstShotCount>5</aimedBurstShotCount>
		</FireModes>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWE_Gun_MakeshiftLMG"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>1.32</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_762x54mmR_FMJ</defaultProjectile>
					<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
					<burstShotCount>10</burstShotCount>
					<warmupTime>1.3</warmupTime>
					<range>58</range>
					<soundCast>Shot_Minigun</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWE_Gun_MakeshiftShotgun</defName>
		<statBases>
			<Mass>4.5</Mass>
			<RangedWeapon_Cooldown>1.0</RangedWeapon_Cooldown>
			<SightsEfficiency>0.80</SightsEfficiency>
			<ShotSpread>0.38</ShotSpread>
			<SwayFactor>1.48</SwayFactor>
			<Bulk>9.6</Bulk>
		</statBases>
		<AmmoUser>
			<magazineSize>2</magazineSize>
			<AmmoGenPerMagOverride>4</AmmoGenPerMagOverride>
			<reloadTime>1.0</reloadTime>
			<reloadOneAtATime>true</reloadOneAtATime>
			<ammoSet>AmmoSet_12Gauge</ammoSet>
		</AmmoUser>
		<weaponTags>
			<li>CE_AI_BROOM</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWE_Gun_MakeshiftShotgun"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>1.69</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_12Gauge_Buck</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>13</range>
					<soundCast>Shot_Shotgun</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
		</value>
	</Operation>

</Patch>