Skip to content

Commit

Permalink
Merge pull request #2765 from CombatExtended-Continued/SamaelGray-762…
Browse files Browse the repository at this point in the history
…Shell

Add 76.2x539mmR shells
  • Loading branch information
N7Huntsman authored Sep 21, 2023
2 parents 7620871 + b002015 commit 997cb51
Showing 1 changed file with 202 additions and 0 deletions.
202 changes: 202 additions & 0 deletions Defs/Ammo/Shell/762x539mmR.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<ThingCategoryDef>
<defName>Ammo762x539mmR</defName>
<label>76.2x539mmR Cannon shell</label>
<parent>AmmoShells</parent>
<iconPath>UI/Icons/ThingCategories/CaliberAutocannonLarge</iconPath>
</ThingCategoryDef>

<!-- ==================== AmmoSet ========================== -->

<CombatExtended.AmmoSetDef>
<defName>AmmoSet_762x539mmR</defName>
<label>76.2x539mmR Cannon shells</label>
<ammoTypes>
<Ammo_762x539mmR_AP>Bullet_762x539mmR_AP</Ammo_762x539mmR_AP>
<Ammo_762x539mmR_HE>Bullet_762x539mmR_HE</Ammo_762x539mmR_HE>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<!-- ==================== Ammo ========================== -->

<ThingDef Class="CombatExtended.AmmoDef" Name="762x539mmRBase" ParentName="AmmoBase" Abstract="True">
<description>Medium-velocity cannon shell fired by tank destroyer guns.</description>
<thingCategories>
<li>Ammo762x539mmR</li>
</thingCategories>
<stackLimit>25</stackLimit>
<tradeTags>
<li>CE_AutoEnableTrade</li>
<li>CE_AutoEnableCrafting_TableMachining</li>
</tradeTags>
<statBases>
<MaxHitPoints>150</MaxHitPoints>
<Mass>10.8</Mass>
<Bulk>10.99</Bulk>
</statBases>
<cookOffFlashScale>20</cookOffFlashScale>
<cookOffSound>MortarBomb_Explode</cookOffSound>
</ThingDef>

<ThingDef Class="CombatExtended.AmmoDef" ParentName="762x539mmRBase">
<defName>Ammo_762x539mmR_AP</defName>
<label>76.2x539mmR Cannon shell (AP)</label>
<graphicData>
<texPath>Things/Ammo/Cannon/Flak/APHE</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
</graphicData>
<statBases>
<MarketValue>43.2</MarketValue>
</statBases>
<ammoClass>ArmorPiercing</ammoClass>
<detonateProjectile>Bullet_762x539mmR_HE</detonateProjectile>
</ThingDef>

<ThingDef Class="CombatExtended.AmmoDef" ParentName="762x539mmRBase">
<defName>Ammo_762x539mmR_HE</defName>
<label>76.2x539mmR Cannon shell (HE)</label>
<graphicData>
<texPath>Things/Ammo/Cannon/Flak/HE</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
</graphicData>
<statBases>
<MarketValue>60.54</MarketValue>
</statBases>
<ammoClass>GrenadeHE</ammoClass>
<detonateProjectile>Bullet_762x539mmR_HE</detonateProjectile>
</ThingDef>

<!-- ================== Projectiles ================== -->

<ThingDef Name="Base762x539mmR" ParentName="BaseExplosiveBullet" Abstract="true">
<graphicData>
<shaderType>TransparentPostLight</shaderType>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<speed>154</speed>
<flyOverhead>false</flyOverhead>
<dropsCasings>true</dropsCasings>
<casingMoteDefname>Fleck_BigShell</casingMoteDefname>
<casingFilthDefname>Filth_CannonAmmoCasings</casingFilthDefname>
</projectile>
</ThingDef>

<ThingDef ParentName="Base762x539mmR">
<defName>Bullet_762x539mmR_AP</defName>
<label>76.2x539mmR Cannon shell (AP)</label>
<graphicData>
<texPath>Things/Projectile/Bullet_Big</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>Bullet</damageDef>
<damageAmountBase>259</damageAmountBase>
<soundExplode>MortarBomb_Explode</soundExplode>
<armorPenetrationSharp>132</armorPenetrationSharp>
<armorPenetrationBlunt>45723.2</armorPenetrationBlunt>
</projectile>
</ThingDef>

<ThingDef ParentName="Base762x539mmR">
<defName>Bullet_762x539mmR_HE</defName>
<label>76.2x539mmR Cannon shell (HE)</label>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<graphicData>
<texPath>Things/Projectile/Bullet_Big</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>Bomb</damageDef>
<damageAmountBase>75</damageAmountBase>
<explosionRadius>2</explosionRadius>
<soundExplode>MortarBomb_Explode</soundExplode>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
</projectile>
<comps>
<li Class="CombatExtended.CompProperties_Fragments">
<fragments>
<Fragment_Large>24</Fragment_Large>
<Fragment_Small>8</Fragment_Small>
</fragments>
</li>
</comps>
</ThingDef>

<!-- ==================== Recipes ========================== -->

<RecipeDef ParentName="AmmoRecipeBase">
<defName>MakeAmmo_762x539mmR_AP</defName>
<label>make 76.2x539mmR AP cannon shells x5</label>
<description>Craft 5 76.2x539mmR AP cannon shells.</description>
<jobString>Making 76.2x539mmR AP cannon shells.</jobString>
<workAmount>12960</workAmount>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</filter>
<count>108</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<Ammo_762x539mmR_AP>5</Ammo_762x539mmR_AP>
</products>
<skillRequirements>
<Crafting>4</Crafting>
</skillRequirements>
</RecipeDef>

<RecipeDef ParentName="AmmoRecipeBase">
<defName>MakeAmmo_762x539mmR_HE</defName>
<label>make 76.2x539mmR HE cannon shells x5</label>
<description>Craft 5 76.2x539mmR HE cannon shells.</description>
<jobString>Making 76.2x539mmR HE cannon shells.</jobString>
<workAmount>13200</workAmount>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</filter>
<count>108</count>
</li>
<li>
<filter>
<thingDefs>
<li>FSX</li>
</thingDefs>
</filter>
<count>3</count>
</li>
<li>
<filter>
<thingDefs>
<li>ComponentIndustrial</li>
</thingDefs>
</filter>
<count>2</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Steel</li>
<li>FSX</li>
<li>ComponentIndustrial</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<Ammo_762x539mmR_HE>5</Ammo_762x539mmR_HE>
</products>
</RecipeDef>

</Defs>

0 comments on commit 997cb51

Please sign in to comment.