Skip to content

Commit

Permalink
Merge pull request CombatExtended-Continued#3443 from Tostov/Federati…
Browse files Browse the repository at this point in the history
…on-Thermal-Pen

Rimsenal Federation - Thermal Pen
  • Loading branch information
N7Huntsman authored Oct 25, 2024
2 parents 87b80f1 + 1ea7e3c commit 26f30a7
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- ========== Bases =========== -->

<ThingDef Name="BaseOpticBoltCE" ParentName="BaseBulletCE" Abstract="true">
<label>energy bolt</label>
<label>optical energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Mlaser</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand All @@ -17,7 +17,7 @@
</ThingDef>

<ThingDef Name="BaseCrucibleBoltCE" ParentName="BaseBulletCE" Abstract="true">
<label>energy bolt</label>
<label>crucible energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Cruciblebolt</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand Down Expand Up @@ -51,7 +51,6 @@
<ThingDef ParentName="BaseOpticBoltCE">
<defName>Bullet_HarvesterCannon</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Laser</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand All @@ -67,7 +66,6 @@
<ThingDef ParentName="BaseExplosiveBullet">
<defName>Bullet_PlasmaTurretBombard</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Plasma</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand All @@ -93,7 +91,6 @@
<ThingDef ParentName="BaseExplosiveBullet">
<defName>Bullet_Federation_PlasmaBlast</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/MFlux</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand All @@ -118,7 +115,6 @@
<ThingDef ParentName="BaseExplosiveBullet">
<defName>Bullet_Federation_PlasmaCluster</defName>
<thingClass>CombatExtended.ProjectileCE_HeightFuse</thingClass>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/MFlux</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand Down Expand Up @@ -154,7 +150,6 @@
<ThingDef ParentName="BaseExplosiveBullet">
<defName>Bullet_Federation_PlasmaSub</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Plasma</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand All @@ -176,7 +171,6 @@
<ThingDef ParentName="BaseCrucibleBoltCE">
<defName>Bullet_CrucibleCannon_CE</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Mlaser</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand Down Expand Up @@ -216,7 +210,6 @@
<ThingDef ParentName="BasePlasmaBombCE">
<defName>Bullet_PlasmaRifle_Fed</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>plasma sphere</label>
<graphicData>
<texPath>Things/Projectile/Plasma</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand Down Expand Up @@ -256,21 +249,19 @@

<ThingDef ParentName="BaseOpticBoltCE">
<defName>Bullet_AuxiliaryPistol</defName>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Laser</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>8</damageAmountBase>
<damageAmountBase>5</damageAmountBase>
</projectile>
</ThingDef>

<!-- ========== Makeshift Crucible Rifle Projectile =========== -->

<ThingDef ParentName="BaseOpticBoltCE">
<defName>Bullet_MakeshiftCrucibleRifle</defName>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Laser</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand All @@ -279,7 +270,7 @@
<damageDef>Optic</damageDef>
<speed>90</speed>
<dropsCasings>false</dropsCasings>
<damageAmountBase>13</damageAmountBase>
<damageAmountBase>8</damageAmountBase>
</projectile>
</ThingDef>

Expand All @@ -299,7 +290,7 @@
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>12</damageAmountBase>
<damageAmountBase>9</damageAmountBase>
</projectile>
</ThingDef>

Expand All @@ -319,7 +310,7 @@
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>10</damageAmountBase>
<damageAmountBase>7</damageAmountBase>
</projectile>
</ThingDef>

Expand Down Expand Up @@ -359,7 +350,7 @@
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>20</damageAmountBase>
<damageAmountBase>14</damageAmountBase>
</projectile>
</ThingDef>

Expand All @@ -368,7 +359,6 @@
<ThingDef ParentName="BasePlasmaBombCE">
<defName>Bullet_PlasmaCaster</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>plasma sphere</label>
<graphicData>
<texPath>Things/Projectile/Plasma</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand All @@ -390,7 +380,6 @@
<ThingDef ParentName="BasePlasmaBombCE">
<defName>Bullet_PlasmaCaster_Fed</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>plasma sphere</label>
<graphicData>
<texPath>Things/Projectile/Flux</texPath>
<graphicClass>Graphic_Single</graphicClass>
Expand Down Expand Up @@ -432,13 +421,12 @@

<ThingDef ParentName="BaseOpticBoltCE">
<defName>Bullet_CrucibleCarbine_CE</defName>
<label>energy bolt</label>
<graphicData>
<texPath>Things/Projectile/Mlaser</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>10</damageAmountBase>
<damageAmountBase>7</damageAmountBase>
</projectile>
</ThingDef>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,22 @@
</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/DamageDef[defName="Optic"]</xpath>
<value>
<defaultArmorPenetration>0.8</defaultArmorPenetration>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/DamageDef[defName="Crucible"]</xpath>
<value>
<defaultArmorPenetration>0.4</defaultArmorPenetration>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/DamageDef[defName="Plasma"]</xpath>
<value>
<defaultArmorPenetration>0.30</defaultArmorPenetration>
</value>
</Operation>
</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,49 @@
<reloadTime>4</reloadTime>
</AmmoUser>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="AD_CrucibleRifle"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_CrucibleRifle"]</xpath>
<value>
<comps />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_CrucibleRifle"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_UnderBarrel">
<standardLabel>switch to high-output crucible mode</standardLabel>
<underBarrelLabel>switch to high-penetration optical mode</underBarrelLabel>
<oneAmmoHolder>True</oneAmmoHolder>
<propsUnderBarrel>
<magazineSize>15</magazineSize>
<reloadTime>4</reloadTime>
</propsUnderBarrel>
<verbPropsUnderBarrel>
<recoilAmount>0.78</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_CrucibleRifleAD</defaultProjectile>
<warmupTime>1.6</warmupTime>
<burstShotCount>5</burstShotCount>
<ticksBetweenBurstShots>25</ticksBetweenBurstShots>
<range>55</range>
<soundCast>RS_ShotCR</soundCast>
<muzzleFlashScale>12</muzzleFlashScale>
</verbPropsUnderBarrel>
<propsFireModesUnderBarrel>
<aiAimMode>AimedShot</aiAimMode>
<noSingleShot>false</noSingleShot>
<aimedBurstShotCount>3</aimedBurstShotCount>
<aiUseBurstMode>TRUE</aiUseBurstMode>
</propsFireModesUnderBarrel>
</li>
</value>
</Operation>

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>AD_FedRifle</defName>
Expand Down Expand Up @@ -294,6 +337,49 @@
<reloadTime>3</reloadTime>
</AmmoUser>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="AD_CruciblePistol"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_CruciblePistol"]</xpath>
<value>
<comps />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_CruciblePistol"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_UnderBarrel">
<standardLabel>switch to high-output crucible mode</standardLabel>
<underBarrelLabel>switch to high-penetration optical mode</underBarrelLabel>
<oneAmmoHolder>True</oneAmmoHolder>
<propsUnderBarrel>
<magazineSize>15</magazineSize>
<reloadTime>3</reloadTime>
</propsUnderBarrel>
<verbPropsUnderBarrel>
<recoilAmount>0.89</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_CruciblePistolAD</defaultProjectile>
<warmupTime>0.7</warmupTime>
<burstShotCount>5</burstShotCount>
<ticksBetweenBurstShots>15</ticksBetweenBurstShots>
<range>21</range>
<soundCast>RS_ShotCP</soundCast>
<muzzleFlashScale>12</muzzleFlashScale>
</verbPropsUnderBarrel>
<propsFireModesUnderBarrel>
<aiAimMode>AimedShot</aiAimMode>
<noSingleShot>false</noSingleShot>
<aimedBurstShotCount>3</aimedBurstShotCount>
<aiUseBurstMode>FALSE</aiUseBurstMode>
</propsFireModesUnderBarrel>
</li>
</value>
</Operation>

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>AD_FedPistol</defName>
Expand Down Expand Up @@ -431,6 +517,46 @@
<reloadTime>4</reloadTime>
</AmmoUser>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="AD_CruciblePresicionRifle"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_CruciblePresicionRifle"]</xpath>
<value>
<comps />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_CruciblePresicionRifle"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_UnderBarrel">
<standardLabel>switch to high-output crucible mode</standardLabel>
<underBarrelLabel>switch to high-penetration optical mode</underBarrelLabel>
<oneAmmoHolder>True</oneAmmoHolder>
<propsUnderBarrel>
<magazineSize>15</magazineSize>
<reloadTime>4</reloadTime>
</propsUnderBarrel>
<verbPropsUnderBarrel>
<recoilAmount>0.53</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_CruciblePrecisionRifleAD</defaultProjectile>
<warmupTime>1.6</warmupTime>
<range>75</range>
<soundCast>RS_ShotCPR</soundCast>
<muzzleFlashScale>12</muzzleFlashScale>
</verbPropsUnderBarrel>
<propsFireModesUnderBarrel>
<aiAimMode>AimedShot</aiAimMode>
<noSingleShot>false</noSingleShot>
<aimedBurstShotCount>1</aimedBurstShotCount>
</propsFireModesUnderBarrel>
</li>
</value>
</Operation>

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>AD_FedSniperRifle</defName>
Expand Down Expand Up @@ -494,6 +620,50 @@
<reloadTime>5</reloadTime>
</AmmoUser>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="AD_PlasmaCaliver"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_PlasmaCaliver"]</xpath>
<value>
<comps />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AD_PlasmaCaliver"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_UnderBarrel">
<standardLabel>switch to cluster mode</standardLabel>
<underBarrelLabel>switch to siege mode</underBarrelLabel>
<oneAmmoHolder>True</oneAmmoHolder>
<propsUnderBarrel>
<magazineSize>3</magazineSize>
<reloadTime>5</reloadTime>
</propsUnderBarrel>
<verbPropsUnderBarrel>
<recoilAmount>0.50</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_PlasmaCaster_Fed</defaultProjectile>
<warmupTime>1.9</warmupTime>
<minRange>3</minRange>
<range>35</range>
<soundCast>RS_ShotHarmonizer</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>18</muzzleFlashScale>
<targetParams>
<canTargetLocations>true</canTargetLocations>
</targetParams>
<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
</verbPropsUnderBarrel>
<propsFireModesUnderBarrel>
<aiAimMode>AimedShot</aiAimMode>
</propsFireModesUnderBarrel>
</li>
</value>
</Operation>

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>AD_FedPlasmaCaster</defName>
Expand Down

0 comments on commit 26f30a7

Please sign in to comment.