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

	<!-- ========== Mech Mini-blaster ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_MiniTurretMech</defName>
		<statBases>
			<Mass>10</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.08</ShotSpread>
			<SwayFactor>0.72</SwayFactor>
			<Bulk>7.00</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>0.85</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_6x22mmCharged</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>55</range>
			<minRange>1.9</minRange>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<burstShotCount>5</burstShotCount>
			<soundCast>Shot_ChargeBlaster</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Mounted</recoilPattern>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>7.8</reloadTime>
			<ammoSet>AmmoSet_6x22mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- ========== Auto Heavy Charge Blaster ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_ChargeBlasterHeavyTurret</defName>
		<statBases>
			<Mass>35</Mass>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>1.33</SwayFactor>
		</statBases>
		<Properties>
			<recoilAmount>1.08</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12x64mmCharged</defaultProjectile>
			<warmupTime>2.0</warmupTime><!-- Intentionally increased from 1.3s -->
			<range>75</range>
			<minRange>2.9</minRange>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<burstShotCount>10</burstShotCount>
			<soundCast>Shot_ChargeBlaster</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>200</magazineSize>
			<reloadTime>9.2</reloadTime>
			<ammoSet>AmmoSet_12x64mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_ChargeBlasterHeavyTurret"]/verbs</xpath>
		<value>
			<li Class="CombatExtended.VerbProperties_CIWSSkyfaller">
				<verbClass>CombatExtended.VerbCIWSProjectile</verbClass>
				<recoilAmount>1.08</recoilAmount>
				<hasStandardCommand>true</hasStandardCommand>
				<defaultProjectile>Bullet_12x64mmCharged</defaultProjectile>
				<warmupTime>0.8</warmupTime>
				<range>112</range>
				<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
				<burstShotCount>10</burstShotCount>
				<soundCast>Shot_ChargeBlaster</soundCast>
				<soundCastTail>GunTail_Heavy</soundCastTail>
				<muzzleFlashScale>9</muzzleFlashScale>
				<recoilPattern>Mounted</recoilPattern>
				<holdFireLabel>HoldCloseInProjectilesFire</holdFireLabel>
				<holdFireDesc>HoldCloseInProjectilesFireDesc</holdFireDesc>
			</li>
			<li Class="CombatExtended.VerbProperties_CIWSSkyfaller">
				<verbClass>CombatExtended.VerbCIWSSkyfaller</verbClass>
				<recoilAmount>1.08</recoilAmount>
				<hasStandardCommand>true</hasStandardCommand>
				<defaultProjectile>Bullet_12x64mmCharged</defaultProjectile>
				<warmupTime>0.8</warmupTime>
				<range>112</range>
				<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
				<burstShotCount>10</burstShotCount>
				<soundCast>Shot_ChargeBlaster</soundCast>
				<soundCastTail>GunTail_Heavy</soundCastTail>
				<muzzleFlashScale>9</muzzleFlashScale>
				<recoilPattern>Mounted</recoilPattern>
				<holdFireLabel>HoldCloseInSkyfallersFire</holdFireLabel>
			</li>
		</value>
	</Operation>

	<!-- ========== Auto Inferno Cannon ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_InfernoCannonTurret</defName>
		<statBases>
			<Mass>200.00</Mass>
			<RangedWeapon_Cooldown>2.52</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>0.82</SwayFactor>
		</statBases>
		<Properties>
			<recoilAmount>1.59</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_80x256mmFuel_Incendiary</defaultProjectile>
			<warmupTime>4.3</warmupTime>
			<range>86</range>
			<burstShotCount>1</burstShotCount>
			<soundCast>InfernoCannon_Fire</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
			<ai_AvoidFriendlyFireRadius>5</ai_AvoidFriendlyFireRadius>
			<minRange>4.9</minRange>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>8.0</reloadTime>
			<ammoSet>AmmoSet_80x256mmFuel</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

</Patch>