Skip to content

Commit

Permalink
Merge pull request #3518 from SaltyKarl/SpacerPack_again
Browse files Browse the repository at this point in the history
Spacer pack again
  • Loading branch information
N7Huntsman authored Nov 8, 2024
2 parents 89919a1 + 3581ae3 commit b21612d
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 3 deletions.
39 changes: 37 additions & 2 deletions ModPatches/Spacer Pack/Defs/Spacer Pack/Defs_Projectiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,41 @@
</projectile>
</ThingDef>

<ThingDef ParentName="BaseFragGrenadeProjectile">
<defName>dvd_Projectile_RipperRack_CE</defName>
<label>ripper rack</label>
<graphicData>
<graphicClass>Graphic_Single</graphicClass>
<texPath>Things/Projectile/Grenade_RipperMechanites</texPath>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<speed>20</speed>
<gravityFactor>3</gravityFactor>
<damageDef>dvd_RipperBomb</damageDef>
<damageAmountBase>50</damageAmountBase>
<dangerFactor>3.0</dangerFactor>
<airborneSuppressionFactor>0.25</airborneSuppressionFactor>
<suppressionFactor>3.0</suppressionFactor>
<explosionDelay>50</explosionDelay>
<explosionRadius>3.9</explosionRadius>
<filth>dvd_Filth_RipperMechanites</filth>
<filthCount>1</filthCount>
</projectile>
<comps>
<li Class="CombatExtended.CompProperties_ProjectileFleck">
<FleckDatas>
<li>
<fleck>dvd_Fleck_RipperMechanites_Random</fleck>
<emissionsPerTick>0.5</emissionsPerTick>
<rotation>0</rotation>
<scale>0.5</scale>
<flecksPerEmission>1</flecksPerEmission>
</li>
</FleckDatas>
</li>
</comps>
</ThingDef>

<ThingDef ParentName="Base8x50mmChargedBullet">
<defName>dvd_SkipBolt_CE</defName>
<label>skipbolt</label>
Expand All @@ -52,14 +87,14 @@
<fleck>dvd_Fleck_ArchoPack_Main</fleck>
<emissionsPerTick>0.5</emissionsPerTick>
<rotation>0</rotation>
<scale>.5</scale>
<scale>0.5</scale>
<flecksPerEmission>1</flecksPerEmission>
</li>
<li>
<fleck>dvd_Fleck_ArchoPack_Smoke</fleck>
<emissionsPerTick>0.5</emissionsPerTick>
<rotation>0</rotation>
<scale>.5</scale>
<scale>0.5</scale>
<flecksPerEmission>1</flecksPerEmission>
<cutoffTickRange>120~240</cutoffTickRange>
</li>
Expand Down
58 changes: 57 additions & 1 deletion ModPatches/Spacer Pack/Patches/Spacer Pack/Backpacks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<verbClass>CombatExtended.Verb_LaunchProjectileStaticCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<onlyManualCast>True</onlyManualCast>
<warmupTime>2</warmupTime>
<warmupTime>1.5</warmupTime>
<range>35</range>
<minRange>5</minRange>
<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
Expand Down Expand Up @@ -170,6 +170,62 @@
</value>
</Operation>

<!-- Miner Pack (with grey goo Grenade built in)-->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_minerpack"]/equippedStatOffsets/VEF_MassCarryCapacity</xpath>
<value>
<CarryBulk>80</CarryBulk>
</value>
</Operation>

<Operation Class="PatchOperationAdd"> <!-- Cost increase cause grey goo Grenade -->
<xpath>Defs/ThingDef[defName="dvd_minerpack"]/costList</xpath>
<value>
<ComponentSpacer>1</ComponentSpacer>
</value>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>Defs/ThingDef[defName="dvd_minerpack"]/equippedStatOffsets/MoveSpeed</xpath>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_minerpack"]/statBases/Mass</xpath>
<value>
<Mass>4</Mass>
<Bulk>5</Bulk>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_minerpack"]/verbs</xpath>
<value>
<verbs>
<li Class="CombatExtended.VerbPropertiesCE">
<label>launch ripper rack</label>
<verbClass>CombatExtended.Verb_LaunchProjectileStaticCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<onlyManualCast>True</onlyManualCast>
<warmupTime>1.0</warmupTime>
<range>21</range>
<minRange>6</minRange>
<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
<soundCast>ThrowGrenade</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>14</muzzleFlashScale>
<drawHighlightWithLineOfSight>true</drawHighlightWithLineOfSight>
<targetParams>
<canTargetLocations>true</canTargetLocations>
</targetParams>
<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
<defaultProjectile>dvd_Projectile_RipperRack_CE</defaultProjectile>
<rangedFireRulepack>Combat_RangedFire_Thrown</rangedFireRulepack>
</li>
</verbs>
</value>
</Operation>

<!-- Med Pack -->

<Operation Class="PatchOperationReplace">
Expand Down
37 changes: 37 additions & 0 deletions ModPatches/Spacer Pack/Patches/Spacer Pack/Damage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- ================== Damages ================== -->

<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/DamageDef[defName="dvd_SkipBolt"]</xpath>
<attribute>ParentName</attribute>
<value>Bullet</value>
</Operation>

<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/DamageDef[defName="dvd_RipperBomb"]</xpath>
<attribute>ParentName</attribute>
<value>Bomb</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/DamageDef[defName="dvd_RipperBomb"]/defaultArmorPenetration</xpath>
<value>
<defaultArmorPenetration>62</defaultArmorPenetration>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/DamageDef[defName="dvd_RipperBomb"]/armorCategory</xpath>
<value>
<armorCategory>Blunt</armorCategory>
</value>
</Operation>

<!-- Get rid of the unused vanilla projectile to suppress an error. -->
<Operation Class="PatchOperationRemove">
<xpath>Defs/ThingDef[defName="dvd_Projectile_RipperRack"]</xpath>
</Operation>

</Patch>
36 changes: 36 additions & 0 deletions ModPatches/Spacer Pack/Patches/Spacer Pack/Hediff.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- ================== Hediff ================== -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="dvd_RipperMechanites"]/stages/li[label="limited"]/statOffsets</xpath>
<value>
<statOffsets>
<ArmorRating_Sharp>-3</ArmorRating_Sharp>
<ArmorRating_Blunt>-5</ArmorRating_Blunt>
</statOffsets>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="dvd_RipperMechanites"]/stages/li[label="moderate"]/statOffsets</xpath>
<value>
<statOffsets>
<ArmorRating_Sharp>-7</ArmorRating_Sharp>
<ArmorRating_Blunt>-10</ArmorRating_Blunt>
</statOffsets>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="dvd_RipperMechanites"]/stages/li[label="extensive"]/statOffsets</xpath>
<value>
<statOffsets>
<ArmorRating_Sharp>-15</ArmorRating_Sharp>
<ArmorRating_Blunt>-20</ArmorRating_Blunt>
</statOffsets>
</value>
</Operation>

</Patch>

0 comments on commit b21612d

Please sign in to comment.