<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- VK-47 Flatline -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_BullpupRifle</defName>
		<statBases>
			<WorkToMake>30000</WorkToMake>
			<Bulk>8.8</Bulk>
			<Mass>3.50</Mass>
			<SightsEfficiency>1.1</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.23</SwayFactor>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.82</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<warmupTime>1.1</warmupTime>
			<range>52</range>
			<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/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_BullpupRifle"]/label</xpath>
		<value>
			<label>VK-47 Flatline</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_BullpupRifle"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- M1A3 Hemlok BF-R -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_BattleRifle</defName>
		<statBases>
			<WorkToMake>45000</WorkToMake>
			<Bulk>4.5</Bulk>
			<Mass>4.5</Mass>
			<SightsEfficiency>1.2</SightsEfficiency>
			<ShotSpread>0.13</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.65</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_303British_FMJ</defaultProjectile>
			<burstShotCount>3</burstShotCount>
			<ticksBetweenBurstShots>5.66</ticksBetweenBurstShots>
			<warmupTime>1.0</warmupTime>
			<range>50</range>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.4</reloadTime>
			<ammoSet>AmmoSet_303British</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
			<li>IndustrialGunAdvanced</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_BattleRifle"]/label</xpath>
		<value>
			<label>M1A3 Hemlok BF-R</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_BattleRifle"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- R-301 Carbine -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_AssaultCarbine</defName>
		<statBases>
			<WorkToMake>35000</WorkToMake>
			<Bulk>3.5</Bulk>
			<Mass>2.5</Mass>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>1.16</ShotSpread>
			<SwayFactor>0.85</SwayFactor>
			<RangedWeapon_Cooldown>1.7</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.40</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_FN57x28mm_FMJ</defaultProjectile>
			<burstShotCount>14</burstShotCount>
			<ticksBetweenBurstShots>4.2</ticksBetweenBurstShots>
			<warmupTime>1</warmupTime>
			<range>46</range>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>28</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_FN57x28mm</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>5</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_AssaultCarbine"]/label</xpath>
		<value>
			<label>R-301 Carbine</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_AssaultCarbine"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Havoc -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_MechanoidRifle</defName>
		<statBases>
			<WorkToMake>75000</WorkToMake>
			<Bulk>12</Bulk>
			<Mass>4.2</Mass>
			<SightsEfficiency>2.1</SightsEfficiency>
			<ShotSpread>0.5</ShotSpread>
			<SwayFactor>1.7</SwayFactor>
			<RangedWeapon_Cooldown>3</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.96</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_8x40mmCharged</defaultProjectile>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>5.2</ticksBetweenBurstShots>
			<warmupTime>1</warmupTime>
			<range>58</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>36</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_8x40mmCharged</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_MechanoidRifle"]/label</xpath>
		<value>
			<label>Havoc</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_MechanoidRifle"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.86</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.118</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.86</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
</Patch>