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

	<ThingDef Name="GDI_MakeableGun" ParentName="BaseMakeableGun" Abstract="True">
		<recipeMaker>
			<recipeUsers>
				<li>GDI_Factory</li>
			</recipeUsers>
		</recipeMaker>
	</ThingDef>	
	
	<ThingDef Name="GDI_FactionGun" ParentName="BaseGun" Abstract="True">
		<tradeability>Never</tradeability>
		<techLevel>Spacer</techLevel>
		<destroyOnDrop>True</destroyOnDrop>
		<menuHidden>True</menuHidden>
		<weaponTags>
			<li>GDI_FactionGun</li>
		</weaponTags>
	</ThingDef>	
	
	<!-- GDI Rifle -->
	<ThingDef ParentName="BaseBullet">
		<defName>Bullet_GDIRifle</defName>
		<label>bullet</label>
		<graphicData>
		<texPath>things/projectile/Weapons/Bullet_base_GDI</texPath>
		<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>8</damageAmountBase>
			<speed>75</speed>
		</projectile>
	</ThingDef>
	
	<ThingDef ParentName="GDI_MakeableGun">
		<defName>Gun_GDIRifle</defName>
		<label>GDI rifle</label>
		<description>A general-purpose military weapon for field or urban combat.</description>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Rifle</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<soundInteract>InteractRifle</soundInteract>
		<statBases>
			<MarketValue>750</MarketValue>
			<WorkToMake>47000</WorkToMake>
			<Mass>3.0</Mass>
			<AccuracyTouch>0.70</AccuracyTouch>
			<AccuracyShort>0.87</AccuracyShort>
			<AccuracyMedium>0.77</AccuracyMedium>
			<AccuracyLong>0.64</AccuracyLong>
			<RangedWeapon_Cooldown>1.2</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>175</Steel>
			<Component>10</Component>
		</costList>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<projectileDef>Bullet_GDIRifle</projectileDef>
				<warmupTime>0.6</warmupTime>
				<range>35</range>
				<burstShotCount>8</burstShotCount>
				<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
				<soundCast>ShotAssaultRifle</soundCast>
				<soundCastTail>GunTail_Medium</soundCastTail>
				<muzzleFlashScale>9</muzzleFlashScale>
			</li>
		</verbs>
		<weaponTags>
			<li>GDIRifle</li>
		</weaponTags>
		<recipeMaker>
			<researchPrerequisite>GDIResearch_Production</researchPrerequisite>
		</recipeMaker>
	</ThingDef>
	
	<!-- GDI Advanced Rifles -->
	<ThingDef ParentName="BaseBullet">
		<defName>Bullet_Railgun</defName>
		<label>railgun bolt</label>
		<graphicData>
			<texPath>things/projectile/Weapons/Bullet_Railshot</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>60</damageAmountBase>
			<speed>200</speed>
		</projectile>
	</ThingDef>
	
	<ThingDef ParentName="GDI_MakeableGun">
		<defName>Gun_GDIRailgun</defName>
		<label>GDI Railgun</label>
		<description>This railgun fires precise high velocity bolts.</description>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Railgun</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<soundInteract>InteractRifle</soundInteract>
		<statBases>
			<WorkToMake>50000</WorkToMake>
			<Mass>4.0</Mass>
			<AccuracyTouch>0.45</AccuracyTouch>
			<AccuracyShort>0.65</AccuracyShort>
			<AccuracyMedium>1</AccuracyMedium>
			<AccuracyLong>0.75</AccuracyLong>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<GDI_ReinforcedPlate>15</GDI_ReinforcedPlate>
			<Component>10</Component>
		</costList>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<projectileDef>Bullet_Railgun</projectileDef>
				<warmupTime>2</warmupTime>
				<range>55</range>
				<burstShotCount>1</burstShotCount>
				<ticksBetweenBurstShots>0</ticksBetweenBurstShots>
				<soundCast>ShotRailgun</soundCast>
				<soundCastTail>GunTail_Medium</soundCastTail>
				<muzzleFlashScale>9</muzzleFlashScale>
			</li>
		</verbs>
		<recipeMaker>
			<researchPrerequisite>GDIResearch_AdvancedProduction</researchPrerequisite>
		</recipeMaker>
	</ThingDef>
	
	<ThingDef ParentName="GDI_FactionGun">
		<defName>Gun_GDIRailgun_Faction</defName>
		<label>GDI Railgun</label>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Railgun</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<soundInteract>InteractRifle</soundInteract>
		<statBases>
			<MarketValue>2000</MarketValue>
			<Mass>4.0</Mass>
			<AccuracyTouch>0.45</AccuracyTouch>
			<AccuracyShort>0.65</AccuracyShort>
			<AccuracyMedium>1</AccuracyMedium>
			<AccuracyLong>0.75</AccuracyLong>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
		</statBases>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<projectileDef>Bullet_Railgun</projectileDef>
				<warmupTime>3</warmupTime>
				<range>40</range>
				<burstShotCount>1</burstShotCount>
				<ticksBetweenBurstShots>0</ticksBetweenBurstShots>
				<soundCast>ShotRailgun</soundCast>
				<soundCastTail>GunTail_Medium</soundCastTail>
				<muzzleFlashScale>9</muzzleFlashScale>
			</li>
		</verbs>
		<weaponTags>
			<li>GDIRailgun</li>
		</weaponTags>
	</ThingDef>
	
	<ThingDef ParentName="BaseBullet">
		<defName>Bullet_Shatterer</defName>
		<label>sonic wave</label>
		<graphicData>
			<texPath>things/projectile/Weapons/Sonic</texPath>
			<graphicClass>Graphic_Random</graphicClass>
		</graphicData>
		<projectile>
			<damageDef>Crush</damageDef>
			<damageAmountBase>5</damageAmountBase>
			<speed>55</speed>
		</projectile>
	</ThingDef>
	
	<ThingDef ParentName="GDI_MakeableGun">
		<defName>Gun_GDIShatterer</defName>
		<label>Mobile Sonic Shatterer</label>
		<description>This gun uses GDI's sonic technology. Extremly unstable.</description>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Shatterer</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<soundInteract>InteractRifle</soundInteract>
		<statBases>
			<WorkToMake>75000</WorkToMake>
			<Mass>10.0</Mass>
			<AccuracyTouch>1</AccuracyTouch>
			<AccuracyShort>1</AccuracyShort>
			<AccuracyMedium>0.75</AccuracyMedium>
			<AccuracyLong>0.55</AccuracyLong>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<GDI_ReinforcedPlate>25</GDI_ReinforcedPlate>
			<Uranium>25</Uranium>
			<Component>10</Component>
			<GDI_SonicCore>1</GDI_SonicCore>
		</costList>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<projectileDef>Bullet_Shatterer</projectileDef>
				<warmupTime>3</warmupTime>
				<range>20</range>
				<burstShotCount>12</burstShotCount>
				<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
				<soundCast>ShotSonicEmitter</soundCast>
				<soundCastTail>GunTail_Medium</soundCastTail>
				<muzzleFlashScale>12</muzzleFlashScale>
			</li>
		</verbs>
		<recipeMaker>
			<researchPrerequisite>GDIResearch_SonicTechnology</researchPrerequisite>
		</recipeMaker>
	</ThingDef>
	
	<ThingDef ParentName="GDI_FactionGun">
		<defName>Gun_GDIShatterer_Faction</defName>
		<label>Mobile Sonic Shatterer</label>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Shatterer</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<soundInteract>InteractRifle</soundInteract>
		<statBases>
			<MarketValue>3750</MarketValue>
			<Mass>10.0</Mass>
			<AccuracyTouch>1</AccuracyTouch>
			<AccuracyShort>1</AccuracyShort>
			<AccuracyMedium>0.75</AccuracyMedium>
			<AccuracyLong>0.55</AccuracyLong>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
		</statBases>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<projectileDef>Bullet_Shatterer</projectileDef>
				<warmupTime>2</warmupTime>
				<range>20</range>
				<burstShotCount>10</burstShotCount>
				<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
				<soundCast>ShotSonicEmitter</soundCast>
				<soundCastTail>GunTail_Medium</soundCastTail>
				<muzzleFlashScale>12</muzzleFlashScale>
			</li>
		</verbs>
		<weaponTags>
			<li>GDIShatterer</li>
		</weaponTags>
	</ThingDef>
	
	<ThingDef ParentName="BaseBullet">
		<defName>Bullet_Mortar</defName>
		<label>mortar shell</label>
		<graphicData>
			<texPath>things/projectile/Weapons/Bullet_Mortar</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<thingClass>Projectile_Explosive</thingClass>
		<projectile>
			<damageDef>Bomb</damageDef>
			<damageAmountBase>80</damageAmountBase>
			<explosionRadius>2.5</explosionRadius>
			<speed>35</speed>
			<flyOverhead>true</flyOverhead>
			<soundHitThickRoof>ArtilleryHitThickRoof</soundHitThickRoof>
			<soundExplode>MortarBomb_Explode</soundExplode>
			<soundImpactAnticipate>MortarRound_PreImpact</soundImpactAnticipate>
			<soundAmbient>MortarRound_Ambient</soundAmbient>
		</projectile>
	</ThingDef>
	
	<ThingDef ParentName="GDI_MakeableGun">
		<defName>GDI_Mortar</defName>
		<label>GDI Mobile Mortar</label>
		<description>This is a expermintal weapon used by GDI for long distance fights.</description>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Mortar</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<soundInteract>InteractRifle</soundInteract>
		<statBases>
			<WorkToMake>50000</WorkToMake>
			<Mass>10.0</Mass>
			<AccuracyTouch>0.3</AccuracyTouch>
			<AccuracyShort>0.4</AccuracyShort>
			<AccuracyMedium>0.5</AccuracyMedium>
			<AccuracyLong>0.6</AccuracyLong>
			<RangedWeapon_Cooldown>5</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<GDI_ReinforcedPlate>25</GDI_ReinforcedPlate>
			<Steel>125</Steel>
			<Component>20</Component>
		</costList>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<projectileDef>Bullet_Mortar</projectileDef>
				<warmupTime>8</warmupTime>
				<range>75</range>
				<forcedMissRadius>3</forcedMissRadius>
				<minRange>15</minRange>
				<burstShotCount>1</burstShotCount>
				<ticksBetweenBurstShots>1</ticksBetweenBurstShots>
				<soundCast>Mortar_LaunchA</soundCast>
				<soundCastTail>GunTail_Heavy</soundCastTail>
				<muzzleFlashScale>13</muzzleFlashScale>
				<targetParams>
					<canTargetLocations>true</canTargetLocations>
				</targetParams>
			</li>
		</verbs>
		<equippedStatOffsets>
			<MoveSpeed>-0.5</MoveSpeed>
		</equippedStatOffsets>
		<recipeMaker>
			<researchPrerequisite>GDIResearch_AdvancedProduction</researchPrerequisite>
		</recipeMaker>
	</ThingDef>
	
	<ThingDef ParentName="GDI_FactionGun">
		<defName>GDI_Mortar_Faction</defName>
		<label>GDI Mobile Mortar</label>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Mortar</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<soundInteract>InteractRifle</soundInteract>
		<statBases>
			<MarketValue>5000</MarketValue>
			<Mass>10.0</Mass>
			<AccuracyTouch>0.3</AccuracyTouch>
			<AccuracyShort>0.4</AccuracyShort>
			<AccuracyMedium>0.5</AccuracyMedium>
			<AccuracyLong>0.6</AccuracyLong>
			<RangedWeapon_Cooldown>5</RangedWeapon_Cooldown>
		</statBases>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<projectileDef>Bullet_Mortar</projectileDef>
				<warmupTime>8</warmupTime>
				<range>60</range>
				<forcedMissRadius>3</forcedMissRadius>
				<minRange>15</minRange>
				<burstShotCount>1</burstShotCount>
				<ticksBetweenBurstShots>1</ticksBetweenBurstShots>
				<soundCast>Mortar_LaunchA</soundCast>
				<soundCastTail>GunTail_Heavy</soundCastTail>
				<muzzleFlashScale>13</muzzleFlashScale>
				<targetParams>
					<canTargetLocations>true</canTargetLocations>
				</targetParams>
			</li>
		</verbs>
		<weaponTags>
			<li>GDIMobileMortar</li>
		</weaponTags>
		<equippedStatOffsets>
			<MoveSpeed>-0.5</MoveSpeed>
		</equippedStatOffsets>
	</ThingDef>
	
	<ThingDef ParentName="BaseMeleeWeapon_Sharp">
		<defName>MeleeWeapon_GDIWrench</defName>
		<label>Wrench</label>
		<description>An Engineer's wrench, improves work speed.</description>
		<graphicData>
			<texPath>things/items/Equipment/GDI/GDI_Wrench</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<statBases>
			<WorkToMake>1250</WorkToMake>
			<Mass>0.75</Mass>
			<MeleeWeapon_DamageAmount>3</MeleeWeapon_DamageAmount>
			<MeleeWeapon_Cooldown>1.2</MeleeWeapon_Cooldown>
		</statBases>
				<costList>
			<GDI_ReinforcedPlate>2</GDI_ReinforcedPlate>
			<Steel>100</Steel>
		</costList>
		<equippedAngleOffset>-65</equippedAngleOffset>
		<recipeMaker>
			<recipeUsers>
				<li>GDI_Factory</li>
			</recipeUsers>
			<researchPrerequisite>GDIResearch_AdvancedProduction</researchPrerequisite>
		</recipeMaker>
		<verbs>
			<li>
				<verbClass>Verb_MeleeAttack</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<meleeDamageDef>Blunt</meleeDamageDef>
			</li>
		</verbs>	
		<equippedStatOffsets>
			<MiningSpeed>0.25</MiningSpeed>
			<WorkSpeedGlobal>0.25</WorkSpeedGlobal>			
			<ConstructionSpeed>0.50</ConstructionSpeed>
			<ConstructSuccessChance>0.45</ConstructSuccessChance>
		</equippedStatOffsets>
	</ThingDef>
	
</ThingDefs>
