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

	<CombatExtended.GunPatcherPresetDef>
		<defName>Pistol</defName>
		<gunStats>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_45ACP_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</gunStats>

		<Mass>1.2</Mass>
		<Bulk>2.25</Bulk>
		<Spread>0.17</Spread>
		<Sway>1.1</Sway>

		<MiscOtherStats>
			<SightsEfficiency>0.7</SightsEfficiency>
		</MiscOtherStats>

		<addTags>
			<li>CE_OneHandedWeapon</li>
			<li>CE_AI_BROOM</li>
		</addTags>

		<fireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
		</fireModes>
		<setCaliber>AmmoSet_45ACP</setCaliber>
		<AmmoCapacity>8</AmmoCapacity>
		<ReloadTime>4</ReloadTime>

		<!-- ==================================== -->
		<!-- If you're trying to make stats for certain guns, like the mentioned MP7 and MP5 just use specialguns -->
		<rangeCurve>
			<points>
				<li>25.9, 12</li>
				<li>22.5, 10</li>
			</points>
		</rangeCurve>
		<warmupCurve>
			<points>
				<li>0.3, 0.6</li>
			</points>
		</warmupCurve>
		<cooldownCurve>
			<points>
				<li>1, 0.38</li>
			</points>
		</cooldownCurve>
		<MassCurve>
			<points>
				<li>2, 1.11</li>
			</points>
		</MassCurve>

		<!-- ==== DEF MATCHING ==== -->
		<names>
			<li>pistol</li>
			<li>glock</li>
		</names>

		<tags>
			<!-- this stuff IS capitalised -->
		</tags>

		<!--
			 this basically makes matcher ignore stuff like "A1" if it's not separated (for example MP5A2)
			 DONT use this to determine guns with capital A-s in name (like AK74)
		 -->
		<DiscardDesignations>true</DiscardDesignations>

		<!-- Verb properties values determiners -->
		<RangeRange>20~25</RangeRange>
		<WarmupRange>0.4~0.81</WarmupRange>

		<!-- Projectile properties values determiners -->
		<damageRange>6~15</damageRange>
		<projSpeedRange>54~70</projSpeedRange>

		<!-- ==== Special gun specifications ==== -->
		<specialGuns>
			<li>
				<magCap>7</magCap>
				<reloadTime>4</reloadTime>
				<mass>1.11</mass>
				<bulk>2.10</bulk>
				<caliber>AmmoSet_45ACP</caliber>
				<names>
					<li>m1911</li>
				</names>
				<!-- Any stats you wanna put in. Mass and bulk can be ovewritten with this-->
				<stats>

				</stats>
			</li>
		</specialGuns>

		<!-- ==== Caliber determination ==== -->
		<CaliberRanges>
			<li>
				<DamageRange>6~8</DamageRange>
				<SpeedRange>56~60</SpeedRange>
				<AmmoSet>AmmoSet_9x19mmPara</AmmoSet>
			</li>
			<li>
				<DamageRange>8~11</DamageRange>
				<SpeedRange>52~50</SpeedRange>
				<AmmoSet>AmmoSet_45ACP</AmmoSet>
			</li>
			<li>
				<DamageRange>7~7</DamageRange>
				<SpeedRange>61~65</SpeedRange>
				<AmmoSet>AmmoSet_FN57x28mm</AmmoSet>
			</li>
		</CaliberRanges>
		<DetermineCaliber>true</DetermineCaliber>
	</CombatExtended.GunPatcherPresetDef>

</Defs>