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

	<!-- ========== HelcateII AMR ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_PGMHelcateII_AMR</defName>
		<statBases>
			<Mass>13.8</Mass>
			<RangedWeapon_Cooldown>1.10</RangedWeapon_Cooldown>
			<SightsEfficiency>2.72</SightsEfficiency>
			<ShotSpread>0.02</ShotSpread>
			<SwayFactor>1.7</SwayFactor>
			<Bulk>14.52</Bulk>
			<WorkToMake>40000</WorkToMake>
		</statBases>
		<costList>
			<Chemfuel>10</Chemfuel>
			<Steel>80</Steel>
			<ComponentIndustrial>6</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_50BMG_FMJ</defaultProjectile>
			<warmupTime>2.8</warmupTime>
			<range>100</range>
			<soundCast>RNShot_Generic50Bolt</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>

		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_50BMG</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>Bipod_AMR</li>
		</weaponTags>

		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- ========== WinchesterModel70_Sniper ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_WinchesterModel70_Sniper</defName>
		<statBases>
			<Mass>3.6</Mass>
			<RangedWeapon_Cooldown>1.36</RangedWeapon_Cooldown>
			<SightsEfficiency>2.60</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>1.57</SwayFactor>
			<Bulk>12</Bulk>
			<WorkToMake>32500</WorkToMake>
		</statBases>
		<costList>
			<Chemfuel>20</Chemfuel>
			<Steel>70</Steel>
			<ComponentIndustrial>5</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_303British_FMJ</defaultProjectile>
			<warmupTime>1.8</warmupTime>
			<range>75</range>
			<soundCast>RNShot_GenericBoltSniper_II</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>

		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_303British</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>

		<AllowWithRunAndGun>false</AllowWithRunAndGun>
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<!-- ========== Ruger M77 ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_RugerM77_BoltAction</defName>
		<statBases>
			<Mass>3.74</Mass>
			<RangedWeapon_Cooldown>1.36</RangedWeapon_Cooldown>
			<SightsEfficiency>2.60</SightsEfficiency>
			<ShotSpread>0.05</ShotSpread>
			<SwayFactor>1.33</SwayFactor>
			<Bulk>11.92</Bulk>
			<WorkToMake>30500</WorkToMake>
		</statBases>
		<costList>
			<Chemfuel>15</Chemfuel>
			<Steel>65</Steel>
			<ComponentIndustrial>5</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_3006Springfield_FMJ</defaultProjectile>
			<warmupTime>1.8</warmupTime>
			<range>75</range>
			<soundCast>RNShot_GenericBoltSniper</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>

		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_3006Springfield</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>

		<AllowWithRunAndGun>false</AllowWithRunAndGun>
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<!-- == Shared patches for firearm melee tools == -->

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