<?xml version="1.0" encoding="utf-8"?>
<!-- 
Chicken Plucker's Project Red Horse mods often have duplicate items, apparels and defs shared between them,
so this patch will only be applied if:

Spec Ops: The Line is active && Rimmu-Nation Weapons is NOT active

If both mods are active, the CE patch from Rimmu-Nation Weapons should automatically take over
--><Patch>
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>[CP] Rimmu-Nation - Weapons (1.0)</li>
		</mods>
		<nomatch Class="PatchOperationSequence">
			<operations>

				<!-- ========== M249 ========== -->

				<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
					<defName>RNGun_M249LMG</defName>
					<statBases>
						<Mass>7.5</Mass>
						<RangedWeapon_Cooldown>0.55</RangedWeapon_Cooldown>
						<SightsEfficiency>2.21</SightsEfficiency>
						<ShotSpread>0.06</ShotSpread>
						<SwayFactor>1.27</SwayFactor>
						<Bulk>13.35</Bulk>
						<WorkToMake>42500</WorkToMake>
					</statBases>
					<costList>
						<Chemfuel>15</Chemfuel>
						<Steel>70</Steel>
						<ComponentIndustrial>7</ComponentIndustrial>
					</costList>
					<Properties>
						<recoilAmount>0.94</recoilAmount>
						<verbClass>CombatExtended.Verb_ShootCE</verbClass>
						<hasStandardCommand>true</hasStandardCommand>
						<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
						<warmupTime>1.475</warmupTime>
						<range>75</range>
						<burstShotCount>10</burstShotCount>
						<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
						<soundCast>RNShotL86LMG</soundCast>
						<soundCastTail>GunTail_Medium</soundCastTail>
						<muzzleFlashScale>9</muzzleFlashScale>
					</Properties>

					<AmmoUser>
						<magazineSize>200</magazineSize>
						<reloadTime>7.8</reloadTime>
						<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
					</AmmoUser>

					<FireModes>
						<aiUseBurstMode>FALSE</aiUseBurstMode>
						<aiAimMode>SuppressFire</aiAimMode>
						<aimedBurstShotCount>5</aimedBurstShotCount>
					</FireModes>

					<!-- No additional CE weaponTags needed -->
				</li>

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

			</operations>
		</nomatch>
	</Operation>
</Patch>