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

	<!--QX==================== Imperial Guard Turret Addon Mod - Auto Sentry MiniAutogun Turret =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>ATMiniAutoGunPowered</defName>
		<label>Auto Sentry MiniAutoGun Turret</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/SentryTurrets/TurretBase/ASTStandardBase</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<drawSize>(1,1)</drawSize>
		</graphicData>
		<minifiedDef>MinifiedFurniture</minifiedDef>
		<altitudeLayer>Building</altitudeLayer>
		<statBases>
			<MaxHitPoints>1000</MaxHitPoints>
			<Flammability>0.5</Flammability>
			<WorkToMake>1500</WorkToMake>
			<Beauty>-15</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>1</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
				<chanceNeverExplodeFromDamage>0.50</chanceNeverExplodeFromDamage>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Flickable"/>
			<li Class="CompProperties_Breakdownable"/>
		</comps>
		<description>AutoGun Sentry Turret, With built in powersupply does not need power, weak but can be placed anywhere best used as quick expendable defense due to its short range and weak damage. Explodes in a small radius of 1 when destroyed.</description>
		<size>(2,2)</size>
		<drawGUIOverlay>True</drawGUIOverlay>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<fillPercent>0.2</fillPercent>
		<costList>
			<Steel>100</Steel>
			<Ceramite>5</Ceramite>
			<Component>2</Component>
		</costList>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>15</specialDisplayRadius>
		<building>
			<turretGunDef>Turret_ASTMiniAutoGun</turretGunDef>
			<turretBurstCooldownTime>1.5</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/SentryTurrets/ASTAutoGun/ATAutoGunMk1</turretTopGraphicPath>
		</building>
		<researchPrerequisites>
			<li>TRASTMiniGun</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>

	<!--QX==================== Imperial Guard Turret Addon Mod - Auto Sentry Autogun Turret =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>ATAutoGunPowered</defName>
		<label>Auto Sentry AutoGun Turret</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/SentryTurrets/TurretBase/ASTStandardBase</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<drawSize>(2,2)</drawSize>
		</graphicData>
		<minifiedDef>MinifiedFurniture</minifiedDef>
		<altitudeLayer>Building</altitudeLayer>
		<statBases>
			<MaxHitPoints>1500</MaxHitPoints>
			<Flammability>0.5</Flammability>
			<WorkToMake>3000</WorkToMake>
			<Beauty>-25</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>1</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
				<chanceNeverExplodeFromDamage>0.50</chanceNeverExplodeFromDamage>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Flickable"/>
			<li Class="CompProperties_Breakdownable"/>
		</comps>
		<description>AutoGun Sentry Turret, With built in powersupply does not need power, weak but can be placed anywhere best used as quick expendable defense due to its short range and weak damage. Explodes in a small radius of 1 when destroyed.</description>
		<size>(2,2)</size>
		<drawGUIOverlay>True</drawGUIOverlay>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<fillPercent>0.2</fillPercent>
		<costList>
			<Steel>200</Steel>
			<Ceramite>10</Ceramite>
			<Component>2</Component>
		</costList>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>32</specialDisplayRadius>
		<building>
			<turretGunDef>Turret_ASTAutoGun</turretGunDef>
			<turretBurstCooldownTime>2</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/SentryTurrets/ASTAutoGun/ATAutoGunMk1</turretTopGraphicPath>
		</building>
		<researchPrerequisites>
			<li>TRASTMiniGun</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>


	<!--QX==================== Imperial Guard Turret Addon Mod - Auto Sentry AutoCannon Turret =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>ATSentryTurret</defName>
		<label>Auto Sentry AutoCannon Turret</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/SentryTurrets/TurretBase/ASTStandardBase</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<drawSize>(2,2)</drawSize>
		</graphicData>
		<minifiedDef>MinifiedFurniture</minifiedDef>
		<altitudeLayer>Building</altitudeLayer>
		<statBases>
			<MaxHitPoints>2000</MaxHitPoints>
			<Flammability>0.5</Flammability>
			<WorkToMake>6000</WorkToMake>
			<Beauty>-25</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>1</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
				<chanceNeverExplodeFromDamage>0.50</chanceNeverExplodeFromDamage>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Power">
				<compClass>CompPowerTrader</compClass>
				<basePowerConsumption>250</basePowerConsumption>
			</li>
			<li Class="CompProperties_Flickable"/>
			<li Class="CompProperties_Breakdownable"/>
		</comps>
		<description>Twin-Linked AutoCannon Sentry Turret, best used indoors to protect your base due to its short range. Explodes in a small radius of 1 when destroyed.</description>
		<size>(2,2)</size>
		<drawGUIOverlay>True</drawGUIOverlay>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<fillPercent>0.2</fillPercent>
		<costList>
			<Steel>200</Steel>
			<Ceramite>75</Ceramite>
			<ImperialComponent>1</ImperialComponent>
		</costList>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>32</specialDisplayRadius>
		<building>
			<turretGunDef>Turret_ASTMiniGun</turretGunDef>
			<turretBurstCooldownTime>2</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/SentryTurrets/ASTMiniGun/ASTMiniGunMk1</turretTopGraphicPath>
		</building>
		<researchPrerequisites>
			<li>TRASTMiniGun</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>

	<!--QX==================== Imperial Guard Turret Addon Mod - Heavy Bolter Gun Emplacement Building =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>MTHeavyBolter</defName>
		<label>Heavy Bolter Emplacement</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/ManualTurrets/TurretBase/ManableBaseMk5</texPath>
			<graphicClass>Graphic_Multi</graphicClass>
			<drawSize>(3,3)</drawSize>
		</graphicData>
		<altitudeLayer>Building</altitudeLayer>
		<hasInteractionCell>True</hasInteractionCell>
		<interactionCellOffset>(0,0,0)</interactionCellOffset>
		<statBases>
			<MaxHitPoints>2000</MaxHitPoints>
			<Flammability>1.0</Flammability>
			<WorkToMake>5000</WorkToMake>
			<Beauty>-40</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>1</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Mannable">
			<manWorkType>Violent</manWorkType>
			</li>
		</comps>
		<description>Heavy Bolter gun emplacement with its own inbuilt power supply power and will work as long as it is manned it. Explodes in a small radius of 1 when destroyed.</description>
		<size>(3,3)</size>
		<drawGUIOverlay>True</drawGUIOverlay>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<castEdgeShadows>false</castEdgeShadows>
		<fillPercent>0.2</fillPercent>
		<costList>
			<Steel>150</Steel>
			<Ceramite>75</Ceramite>
			<ImperialComponent>2</ImperialComponent>
		</costList>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>32</specialDisplayRadius>
		<building>
			<turretGunDef>Turret_MTHeavyBolter</turretGunDef>
			<turretBurstCooldownTime>2</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/ManualTurrets/HeavyBolter/MTHeavyBolterMk1-Gun</turretTopGraphicPath>
		</building>
		<placeWorkers>
			<li>PlaceWorker_NotUnderRoof</li>
		</placeWorkers>
		<researchPrerequisites>
			<li>TRMTHeavyBolter</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>

	<!--QX==================== Imperial Guard Turret Addon Mod - Las Cannon Gun Emplacement Building =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>MTLasCannon</defName>
		<label>Las Cannon Emplacement</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/ManualTurrets/TurretBase/ManableBaseMk5</texPath>
			<graphicClass>Graphic_Multi</graphicClass>
			<drawSize>(3,3)</drawSize>
		</graphicData>
		<altitudeLayer>Building</altitudeLayer>
		<hasInteractionCell>True</hasInteractionCell>
		<interactionCellOffset>(0,0,0)</interactionCellOffset>
		<statBases>
			<MaxHitPoints>2000</MaxHitPoints>
			<Flammability>1.0</Flammability>
			<WorkToMake>5000</WorkToMake>
			<Beauty>-40</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>1</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Mannable">
			<manWorkType>Violent</manWorkType>
			</li>
		</comps>
		<description>Las Cannon gun emplacement with its own inbuilt power supply power and will work as long as it is manned, best used against armored units. Explodes in a small radius of 1 when destroyed.</description>
		<size>(3,3)</size>
		<drawGUIOverlay>True</drawGUIOverlay>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<castEdgeShadows>false</castEdgeShadows>
		<fillPercent>0.2</fillPercent>
		<costList>
			<Steel>150</Steel>
			<Ceramite>75</Ceramite>
			<ImperialComponent>2</ImperialComponent>
		</costList>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>32</specialDisplayRadius>
		<building>
			<turretGunDef>Turret_MTLasCannon</turretGunDef>
			<turretBurstCooldownTime>1.5</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/ManualTurrets/LasCannon/MTLasCannon-Gun</turretTopGraphicPath>
		</building>
		<placeWorkers>
			<li>PlaceWorker_NotUnderRoof</li>
		</placeWorkers>
		<researchPrerequisites>
			<li>TRMTLasCannon</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>

	<!--QX==================== Imperial Guard Turret Addon Mod - Tarantula Dual Heavy Bolter Turret Building =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>ATDualHeavyBolter</defName>
		<label>Tarantula Twin-Linked Heavy Bolter</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/AutoTurrets/Base/ATTarantulaBaseMk1</texPath>
			<graphicClass>Graphic_Multi</graphicClass>
			<drawSize>(3,3)</drawSize>
			<damageData>
				<rect>(0.38,0.2,0.56375,0.8)</rect>
				<cornerTL>Damage/Corner</cornerTL>
			</damageData>
		</graphicData>
		<minifiedDef>MinifiedFurniture</minifiedDef>
		<altitudeLayer>Building</altitudeLayer>
		<stealable>false</stealable>
		<statBases>
			<MaxHitPoints>2250</MaxHitPoints>
			<Flammability>0.75</Flammability>
			<WorkToMake>10000</WorkToMake>
			<Beauty>-70</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>3</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
				<chanceNeverExplodeFromDamage>0.50</chanceNeverExplodeFromDamage>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Power">
				<compClass>CompPowerTrader</compClass>
				<basePowerConsumption>1750</basePowerConsumption>
			</li>
			<li Class="CompProperties_Flickable"/>
			<li Class="CompProperties_Breakdownable"/>
		</comps>
		<description>Trantula Twin-Linked Heavy Bolter turret is designed for medium range sentry duty, has a minimum range of 5, and a small chance to explode when destroyed. All Imperial Turrets self destruct when they have taken too much damange to leave no resources for the enemy</description>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<castEdgeShadows>true</castEdgeShadows>
		<fillPercent>0.4</fillPercent>
		<costList>
			<Steel>1000</Steel>
			<Ceramite>500</Ceramite>
			<ImperialComponent>10</ImperialComponent>
		</costList>
		<size>(3,3)</size>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>20</specialDisplayRadius>
		<building>
			<ai_combatDangerous>true</ai_combatDangerous>
			<turretGunDef>Turret_ATDualHeavyBolter</turretGunDef>
			<turretBurstCooldownTime>1</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/AutoTurrets/HeavyBolter/ATHeavyBolterMk1-Gun</turretTopGraphicPath>
		</building>
		<rotatable>true</rotatable>
		<placeWorkers>
			<li>PlaceWorker_NotUnderRoof</li>
		</placeWorkers>
		<researchPrerequisites>
			<li>TRATDualHeavyBolter</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>

	<!--QX==================== Imperial Guard Turret Addon Mod - Tarantula Dual Las Cannon Turret Building =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>ATDualLasCannon</defName>
		<label>Tarantula Twin-Linked LasCannon</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/AutoTurrets/Base/ATTarantulaBaseMk1</texPath>
			<graphicClass>Graphic_Multi</graphicClass>
			<drawSize>(3,3)</drawSize>
			<damageData>
				<rect>(0.38,0.2,0.56375,0.8)</rect>
				<cornerTL>Damage/Corner</cornerTL>
			</damageData>
		</graphicData>
		<minifiedDef>MinifiedFurniture</minifiedDef>
		<altitudeLayer>Building</altitudeLayer>
		<stealable>false</stealable>
		<statBases>
			<MaxHitPoints>2250</MaxHitPoints>
			<Flammability>0.75</Flammability>
			<WorkToMake>10000</WorkToMake>
			<Beauty>-70</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>3</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
				<chanceNeverExplodeFromDamage>0.50</chanceNeverExplodeFromDamage>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Power">
				<compClass>CompPowerTrader</compClass>
				<basePowerConsumption>1750</basePowerConsumption>
			</li>
			<li Class="CompProperties_Flickable"/>
			<li Class="CompProperties_Breakdownable"/>
		</comps>
		<description>Trantula Twin-Linked LasCannon turret is designed for medium range sentry duty, this weapon is especially effective against armor, has a minimum range of 5, and a small chance to explode when destroyed. All Imperial Turrets self destruct when they have taken too much damange to leave no resources for the enemy</description>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<castEdgeShadows>true</castEdgeShadows>
		<fillPercent>0.4</fillPercent>
		<costList>
			<Steel>1000</Steel>
			<Ceramite>500</Ceramite>
			<ImperialComponent>10</ImperialComponent>
		</costList>
		<size>(3,3)</size>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>20</specialDisplayRadius>
		<building>
			<ai_combatDangerous>true</ai_combatDangerous>
			<turretGunDef>Turret_ATDualLasCannon</turretGunDef>
			<turretBurstCooldownTime>1.5</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/AutoTurrets/LasCannon/ATDualLasCannonMk1-Gun</turretTopGraphicPath>
		</building>
		<rotatable>true</rotatable>
		<placeWorkers>
			<li>PlaceWorker_NotUnderRoof</li>
		</placeWorkers>
		<researchPrerequisites>
			<li>TRATDualLasCannon</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>

	<!--QX==================== Imperial Guard Turret Addon Mod - Base Desfense ThudGun Turret Building =========================QX-->

	<ThingDef ParentName="BuildingBase">
		<defName>BDThudGun</defName>
		<label>Base Defense ThudGun</label>
		<thingClass>Building_TurretGun</thingClass>
		<graphicData>
			<texPath>Things/IGTurrets/BaseDefTurrets/Base/BDHeavyBaseMk1</texPath>
			<graphicClass>Graphic_Multi</graphicClass>
			<drawSize>(4,4)</drawSize>
			<damageData>
				<rect>(0.38,0.2,0.56375,0.8)</rect>
				<cornerTL>Damage/Corner</cornerTL>
			</damageData>
		</graphicData>
		<altitudeLayer>Building</altitudeLayer>
		<hasInteractionCell>True</hasInteractionCell>
		<interactionCellOffset>(0,0,-1)</interactionCellOffset>
		<stealable>false</stealable>
		<statBases>
			<MaxHitPoints>2500</MaxHitPoints>
			<Flammability>0.50</Flammability>
			<WorkToMake>30000</WorkToMake>
			<Beauty>-100</Beauty>
		</statBases>
		<tickerType>Normal</tickerType>
		<comps>
			<li Class="CompProperties_Explosive">
				<explosiveRadius>6</explosiveRadius>
				<explosiveDamageType>Flame</explosiveDamageType>
				<chanceNeverExplodeFromDamage>0.50</chanceNeverExplodeFromDamage>
			</li>
			<li Class="CompProperties_Forbiddable"/>
			<li Class="CompProperties_Power">
				<compClass>CompPowerTrader</compClass>
				<basePowerConsumption>7000</basePowerConsumption>
			</li>
			<li Class="CompProperties_Mannable">
				<manWorkType>Violent</manWorkType>
			</li>
			<li Class="CompProperties_Flickable"/>
			<li Class="CompProperties_Breakdownable"/>
		</comps>
		<description>Manned Thudgun Base Defense turret is designed for Long Range base defense. Slow firing but with devastating Melta Atrillery Rounds, this is a true Terror Weapon! with a minimum range of 30. High chance to explode causing massive damage when destroyed and all Imperial Turrets self destruct when they have taken too much damange to leave no resources for the enemy</description>
		<passability>PassThroughOnly</passability>
		<pathCost>50</pathCost>
		<castEdgeShadows>true</castEdgeShadows>
		<fillPercent>0.4</fillPercent>
		<costList>
			<Steel>5000</Steel>
			<Ceramite>2000</Ceramite>
			<ImperialComponent>30</ImperialComponent>
		</costList>
		<size>(4,4)</size>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<specialDisplayRadius>20</specialDisplayRadius>
		<building>
			<ai_combatDangerous>true</ai_combatDangerous>
			<turretGunDef>Turret_BDThudGun</turretGunDef>
			<turretBurstCooldownTime>10</turretBurstCooldownTime>
			<turretTopGraphicPath>Things/IGTurrets/BaseDefTurrets/ThudGun/ThudGunMk2-Gun</turretTopGraphicPath>
		</building>
		<rotatable>true</rotatable>
		<placeWorkers>
			<li>PlaceWorker_NotUnderRoof</li>
		</placeWorkers>
		<researchPrerequisites>
			<li>TRDBThudGun</li>
		</researchPrerequisites>
		<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	</ThingDef>

</Defs>