<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== Auger Mk II ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_AugerMkII</defName>
		<statBases>

			<SightsEfficiency>1.05</SightsEfficiency>
			<ShotSpread>0.065</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>8.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.13</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_6x24mmCharged</defaultProjectile>
			<warmupTime>1.2</warmupTime>
			<range>30.9</range>
			<burstShotCount>3</burstShotCount>
			<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
			<soundCast>RNAugerMkIIShot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_6x24mmCharged</ammoSet>
		</AmmoUser>

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

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

	<!-- ========== Auger WS ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_AugerWS</defName>
		<statBases>

			<SightsEfficiency>1.05</SightsEfficiency>
			<ShotSpread>0.065</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>8.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.13</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_6x24mmCharged</defaultProjectile>
			<warmupTime>1.2</warmupTime>
			<range>30.9</range>
			<burstShotCount>3</burstShotCount>
			<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
			<soundCast>RNAugerShot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_6x24mmCharged</ammoSet>
		</AmmoUser>

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

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

	<!-- ========== BM001 Razor ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_BM001Razor</defName>
		<statBases>

			<SightsEfficiency>1.05</SightsEfficiency>
			<ShotSpread>0.065</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>8.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.03</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_8x35mmCharged</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>30.9</range>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>RNRazorShot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_8x35mmCharged</ammoSet>
		</AmmoUser>

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

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

	<!-- ========== BM003 Razor ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_BM003Razor</defName>
		<statBases>

			<SightsEfficiency>1.05</SightsEfficiency>
			<ShotSpread>0.065</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>8.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.03</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_8x35mmCharged</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>35.9</range>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>RNBlueDeathShot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_8x35mmCharged</ammoSet>
		</AmmoUser>

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

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

	<!-- ========== Bullseye Mk I ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_BullseyeMkI</defName>
		<statBases>

			<SightsEfficiency>1.05</SightsEfficiency>
			<ShotSpread>0.065</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>8.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.03</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_8x35mmCharged</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>35.9</range>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>RNRazorShot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_8x35mmCharged</ammoSet>
		</AmmoUser>

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

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

	<!-- ========== Bullseye Mk II ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_BullseyeMkII</defName>
		<statBases>

			<SightsEfficiency>1.05</SightsEfficiency>
			<ShotSpread>0.065</ShotSpread>
			<SwayFactor>1.2</SwayFactor>
			<Bulk>8.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.03</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_8x35mmCharged</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>35.9</range>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>RNBlueDeathShot</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_8x35mmCharged</ammoSet>
		</AmmoUser>

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

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

	<!-- ========== Longbow 1S-1K ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_Longbow1S1K</defName>
		<statBases>

			<SightsEfficiency>1.45</SightsEfficiency>
			<ShotSpread>0.025</ShotSpread>
			<SwayFactor>1.0</SwayFactor>
			<Bulk>11.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.0</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12x64mmCharged</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>40.9</range>
			<burstShotCount>1</burstShotCount>
			<ticksBetweenBurstShots>22</ticksBetweenBurstShots>
			<soundCast>RNLongbowShot</soundCast>
			<soundAiming>RNLongbowCharge</soundAiming>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_12x64mmCharged</ammoSet>
		</AmmoUser>

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

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

	<!-- ========== Railgun ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNSci_Railgun</defName>
		<statBases>
			<SightsEfficiency>1.45</SightsEfficiency>
			<ShotSpread>0.025</ShotSpread>
			<SwayFactor>1.0</SwayFactor>
			<Bulk>11.07</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.0</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_8x35mmCharged</defaultProjectile>
			<warmupTime>2.2</warmupTime>
			<range>40.9</range>
			<burstShotCount>1</burstShotCount>
			<ticksBetweenBurstShots>22</ticksBetweenBurstShots>
			<soundCast>RNRailgunShot</soundCast>
			<soundAiming>RNLongbowCharge</soundAiming>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<stopBurstWithoutLos>false</stopBurstWithoutLos>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>2.40</reloadTime>
			<ammoSet>AmmoSet_8x35mmCharged</ammoSet>
		</AmmoUser>

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

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

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="RNSci_AugerMkII" or
			defName="RNSci_AugerWS" or
			defName="RNSci_BM001Razor" or
			defName="RNSci_BM003Razor" or
			defName="RNSci_BullseyeMkI" or
			defName="RNSci_BullseyeMkII" or
			defName="RNSci_Longbow1S1K" or
			defName="RNSci_Railgun"
			]/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>