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

<!--
	Each coverage value is relative to its parent.
	Remaining body part coverage (100% minus coverage of all child nodes) is a chance to hit exactly this part.
	Damage "starts" at corePart, and then "goes deeper" until it hits remaining body part coverage or leaf node - this body part is then hit.
-->

<Defs>

	<!--QX==================== Imperial Guard Factions - Tyranid Ranged Body =========================QX-->

	<BodyDef>
		<defName>TYTyranid</defName>
		<label>Tyranid Master</label>
		<corePart>
			<def>TYFrame</def>
			<height>Middle</height>
			<depth>Outside</depth>
			<parts>
				<li>
					<def>TYCarapace</def>
					<coverage>0.2</coverage>
					<height>Top</height>
					<depth>Outside</depth>
				</li>
				
									<!--QX===== Tyranid Ranged Body  - BODY CORE =====QX-->
									
				<li>
					<def>TYBody</def>
					<coverage>0.2</coverage>
					<depth>Outside</depth>
				</li>
				<li>
					<def>TYOrgans</def>
					<coverage>0.02</coverage>
					<depth>Inside</depth>
				</li>
				
											<!--QX===== Tyranid Melee Body  - HEAD =====QX-->

				<li>
					<def>TYPronotum</def>
					<coverage>0.1</coverage>
					<height>Top</height>
					<parts>
						<li>
							<def>TYHead</def>
							<coverage>0.1</coverage>
							<groups>
								<li>TYHeadAttackTool</li>
							</groups>
							<parts>
								<li>
									<def>TYRightEye</def>
									<coverage>0.02</coverage>
									<depth>Outside</depth>
								</li>
								<li>
									<def>TYLeftEye</def>
									<coverage>0.02</coverage>
									<depth>Outside</depth>
								</li>
								<li>
									<def>TYJaws</def>
									<coverage>0.02</coverage>
									<depth>Outside</depth>
								</li>
								<li>
									<def>TYBrain</def>
									<coverage>0.02</coverage>
									<depth>Inside</depth>
								</li>
							</parts>
						</li>
					</parts>
				</li>
				
									<!--QX===== Tyranid Ranged Body  - DEATHSPITTER WEAPON =====QX-->
				
				<li>
					<def>TYDeathSpitter</def>
					<coverage>0.05</coverage>
					<height>Bottom</height>
					<depth>Outside</depth>
					<parts>
						<li>
							<def>TYSpltterWeapon</def>
							<coverage>0.03</coverage>
							<depth>Outside</depth>
						</li>
						<li>
							<def>TYSpitterTrigger</def>
							<coverage>0.01</coverage>
							<depth>Inside</depth>
						</li>
						<li>
							<def>BDSpitterTendon</def>
							<coverage>0.01</coverage>
							<depth>Inside</depth>
						</li>
					</parts>
				</li>
				
									<!--QX===== Tyranid Ranged Body  - LEGS =====QX-->
				
				<li>
					<def>TYRightLeg</def>
					<coverage>0.1</coverage>
					<height>Bottom</height>
					<depth>Outside</depth>
					<parts>
						<li>
							<def>TYRightKnee</def>
							<coverage>0.05</coverage>
							<depth>Outside</depth>
						</li>
						<li>
							<def>TYRightClaw</def>
							<coverage>0.02</coverage>
							<depth>Inside</depth>
						</li>
					</parts>
				</li>
				<li>
					<def>TYLeftLeg</def>
					<coverage>0.1</coverage>
					<height>Top</height>
					<depth>Outside</depth>
					<parts>
						<li>
							<def>TYLeftKnee</def>
							<coverage>0.05</coverage>
							<depth>Outside</depth>
						</li>
						<li>
							<def>TYLeftClaw</def>
							<coverage>0.02</coverage>
							<depth>Inside</depth>
						</li>
					</parts>
				</li>
			</parts>
		</corePart>
	</BodyDef>
	
	<!--QX==================== Imperial Guard Factions - Tyranid Melee Body =========================QX-->
	
	<BodyDef>
		<defName>TYTyranidMelee</defName>
		<label>Tyranid Melee Master</label>
		<corePart>
			<def>TYFrame</def>
			<height>Middle</height>
			<depth>Outside</depth>
			<parts>
				<li>
					<def>TYCarapace</def>
					<coverage>0.2</coverage>
					<height>Top</height>
					<depth>Outside</depth>
				</li>
				
						<!--QX===== Tyranid Melee Body  - BODY CORE =====QX-->
				
				<li>
					<def>TYBody</def>
					<coverage>0.2</coverage>
					<depth>Outside</depth>
				</li>
				<li>
					<def>TYOrgans</def>
					<coverage>0.02</coverage>
					<depth>Inside</depth>
				</li>
				
						<!--QX===== Tyranid Melee Body  - HEAD =====QX-->
				<li>
					<def>TYPronotum</def>
					<coverage>0.1</coverage>
					<height>Top</height>
					<parts>
						<li>
							<def>TYHead</def>
							<coverage>0.1</coverage>
							<groups>
								<li>TYHeadAttackTool</li>
							</groups>
							<parts>
								<li>
									<def>TYRightEye</def>
									<coverage>0.02</coverage>
									<depth>Outside</depth>
								</li>
								<li>
									<def>TYLeftEye</def>
									<coverage>0.02</coverage>
									<depth>Outside</depth>
								</li>
								<li>
									<def>TYJaws</def>
									<coverage>0.02</coverage>
									<depth>Outside</depth>
								</li>
								<li>
									<def>TYBrain</def>
									<coverage>0.02</coverage>
									<depth>Inside</depth>
								</li>
							</parts>
						</li>
					</parts>
				</li>

						<!--QX===== Tyranid Melee Body  - ARMS =====QX-->

				<li>
					<def>TYRightArm</def>
					<coverage>0.1</coverage>
					<height>Bottom</height>
					<depth>Outside</depth>
					<parts>
						<li>
							<def>TYRightElbow</def>
							<coverage>0.05</coverage>
							<depth>Outside</depth>
						</li>
						<li>
							<def>TYRightClawHand</def>
							<coverage>0.02</coverage>
							<depth>Outside</depth>
						</li>
					</parts>
				</li>
				<li>
					<def>TYLeftArm</def>
					<coverage>0.1</coverage>
					<height>Top</height>
					<depth>Outside</depth>
					<parts>
						<li>
							<def>TYLeftElbow</def>
							<coverage>0.05</coverage>
							<depth>Outside</depth>
						</li>
						<li>
							<def>TYLeftClawHand</def>
							<coverage>0.02</coverage>
							<depth>Outside</depth>
						</li>
					</parts>
				</li>

						<!--QX===== Tyranid Melee Body  - LEGS =====QX-->
	
				<li>
					<def>TYRightLeg</def>
					<coverage>0.1</coverage>
					<height>Bottom</height>
					<depth>Outside</depth>
					<parts>
						<li>
							<def>TYRightKnee</def>
							<coverage>0.05</coverage>
							<depth>Outside</depth>
						</li>
						<li>
							<def>TYRightClaw</def>
							<coverage>0.02</coverage>
							<depth>Inside</depth>
						</li>
					</parts>
				</li>
				<li>
					<def>TYLeftLeg</def>
					<coverage>0.1</coverage>
					<height>Top</height>
					<depth>Outside</depth>
					<parts>
						<li>
							<def>TYLeftKnee</def>
							<coverage>0.05</coverage>
							<depth>Outside</depth>
						</li>
						<li>
							<def>TYLeftClaw</def>
							<coverage>0.02</coverage>
							<depth>Inside</depth>
						</li>
					</parts>
				</li>
			</parts>
		</corePart>
	</BodyDef>	

</Defs>