Skip to content

Commit

Permalink
Switchable weapons wip
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Huntsman committed Nov 21, 2024
1 parent 5e02128 commit 6c6550f
Show file tree
Hide file tree
Showing 2 changed files with 298 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<Patch>

<!--===== Melee Attacks for Guns =====-->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="GW_TotE_Bolt_Caliver" or defName="GW_TotE_Kinetic_Destructor"]/tools</xpath>
<value>
Expand Down Expand Up @@ -134,6 +135,7 @@
</Operation>

<!-- ============ Kinetic Destroyer ============ -->

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>GW_TotE_Kinetic_Destructor</defName>
<statBases>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<!--===== Guardian Spear - Melee =====-->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="GW_TotE_GuardianSpear"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>handle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4</power>
<cooldownTime>1.54</cooldownTime>
<chanceFactor>0.2</chanceFactor>
<armorPenetrationBlunt>1.425</armorPenetrationBlunt>
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>shaft</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4</power>
<cooldownTime>1.78</cooldownTime>
<chanceFactor>0.05</chanceFactor>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>point</label>
<capacities>
<li>Stab</li>
</capacities>
<power>25</power>
<cooldownTime>1.35</cooldownTime>
<armorPenetrationBlunt>2.8</armorPenetrationBlunt>
<armorPenetrationSharp>98</armorPenetrationSharp>
</li>
</tools>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="GW_TotE_GuardianSpear"]</xpath>
<value>
<equippedStatOffsets>
<MeleeCritChance>0.67</MeleeCritChance>
<MeleeParryChance>1.95</MeleeParryChance>
<MeleeDodgeChance>1.1</MeleeDodgeChance>
</equippedStatOffsets>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="GW_TotE_GuardianSpear"]/statBases</xpath>
<value>
<Bulk>13</Bulk>
<MeleeCounterParryBonus>1.88</MeleeCounterParryBonus>
</value>
</Operation>

<!--===== Guardian Spear - Ranged =====-->

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>GW_TotE_GuardianSpearR</defName>
<statBases>
<RangedWeapon_Cooldown>0.62</RangedWeapon_Cooldown>
<SightsEfficiency>1</SightsEfficiency>
<ShotSpread>0.09</ShotSpread>
<SwayFactor>1.43</SwayFactor>
<Bulk>13</Bulk>
</statBases>
<Properties>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_Bolter75_Standard</defaultProjectile>
<warmupTime>1</warmupTime>
<range>16</range>
<burstShotCount>4</burstShotCount>
<soundCast>Talon_Bolt_Gun_Sound</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>8</muzzleFlashScale>
<recoilAmount>1.35</recoilAmount>
<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
</Properties>
<AmmoUser>
<magazineSize>12</magazineSize>
<reloadTime>5.2</reloadTime>
<ammoSet>AmmoSet_Bolter75</ammoSet>
</AmmoUser>
<FireModes>
<aimedBurstShotCount>2</aimedBurstShotCount>
<aiUseBurstMode>FALSE</aiUseBurstMode>
<aiAimMode>Snapshot</aiAimMode>
</FireModes>
</Operation>

<!--===== Adrathic Spear - Melee =====-->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="GW_TotE_AdrathicSpear"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>handle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4</power>
<cooldownTime>1.54</cooldownTime>
<chanceFactor>0.2</chanceFactor>
<armorPenetrationBlunt>1.425</armorPenetrationBlunt>
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>shaft</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4</power>
<cooldownTime>1.78</cooldownTime>
<chanceFactor>0.05</chanceFactor>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>point</label>
<capacities>
<li>Stab</li>
</capacities>
<power>25</power>
<cooldownTime>1.35</cooldownTime>
<armorPenetrationBlunt>2.8</armorPenetrationBlunt>
<armorPenetrationSharp>98</armorPenetrationSharp>
</li>
</tools>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="GW_TotE_AdrathicSpear"]</xpath>
<value>
<equippedStatOffsets>
<MeleeCritChance>0.67</MeleeCritChance>
<MeleeParryChance>1.95</MeleeParryChance>
<MeleeDodgeChance>1.1</MeleeDodgeChance>
</equippedStatOffsets>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="GW_TotE_AdrathicSpear"]/statBases</xpath>
<value>
<Bulk>13</Bulk>
<MeleeCounterParryBonus>1.88</MeleeCounterParryBonus>
</value>
</Operation>

<!--===== Adrathic Spear - Ranged =====-->

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>GW_TotE_AdrathicSpearR</defName>
<statBases>
<RangedWeapon_Cooldown>0.98</RangedWeapon_Cooldown>
<SightsEfficiency>1</SightsEfficiency>
<ShotSpread>0.12</ShotSpread>
<SwayFactor>1.95</SwayFactor>
<Bulk>13</Bulk>
</statBases>
<Properties>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_Lasgun_Cannon</defaultProjectile>
<warmupTime>1</warmupTime>
<range>22</range>
<soundCast>Talon_Pulse_Gun_Sound</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>8</muzzleFlashScale>
<recoilAmount>2.15</recoilAmount>
</Properties>
<AmmoUser>
<magazineSize>10</magazineSize>
<reloadTime>6.2</reloadTime>
<ammoSet>AmmoSet_Lasgun_Cannon</ammoSet>
</AmmoUser>
<FireModes>
<aiUseBurstMode>FALSE</aiUseBurstMode>
<aiAimMode>AimedShot</aiAimMode>
</FireModes>
<weaponTags>
<li>CE_AI_AR</li>
</weaponTags>
</Operation>

<!--===== Melta Spear - Melee =====-->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="GW_TotE_MeltaSpear"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>handle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4</power>
<cooldownTime>1.54</cooldownTime>
<chanceFactor>0.2</chanceFactor>
<armorPenetrationBlunt>1.425</armorPenetrationBlunt>
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>shaft</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4</power>
<cooldownTime>1.78</cooldownTime>
<chanceFactor>0.05</chanceFactor>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>point</label>
<capacities>
<li>Stab</li>
</capacities>
<power>25</power>
<cooldownTime>1.35</cooldownTime>
<armorPenetrationBlunt>2.8</armorPenetrationBlunt>
<armorPenetrationSharp>98</armorPenetrationSharp>
</li>
</tools>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="GW_TotE_MeltaSpear"]</xpath>
<value>
<equippedStatOffsets>
<MeleeCritChance>0.67</MeleeCritChance>
<MeleeParryChance>1.95</MeleeParryChance>
<MeleeDodgeChance>1.1</MeleeDodgeChance>
</equippedStatOffsets>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="GW_TotE_MeltaSpear"]/statBases</xpath>
<value>
<Bulk>13</Bulk>
<MeleeCounterParryBonus>1.88</MeleeCounterParryBonus>
</value>
</Operation>

<!--===== Melta Spear - Ranged =====-->

<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>HP_AM_Gun_MeltaGun</defName>
<statBases>
<RangedWeapon_Cooldown>2.0</RangedWeapon_Cooldown>
<SightsEfficiency>1</SightsEfficiency>
<ShotSpread>0.11</ShotSpread>
<SwayFactor>1.56</SwayFactor>
<Bulk>13</Bulk>
</statBases>
<Properties>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_Laser_MeltaCharge</defaultProjectile>
<warmupTime>0.6</warmupTime>
<range>12</range>
<burstShotCount>1</burstShotCount>
<soundCast>HP_AM_Melta_Gun_Sound</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>12</muzzleFlashScale>
<recoilAmount>2.7</recoilAmount>
<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
<targetParams>
<canTargetLocations>true</canTargetLocations>
</targetParams>
</Properties>
<AmmoUser>
<magazineSize>3</magazineSize>
<reloadTime>4.8</reloadTime>
<ammoSet>AmmoSet_MeltaCharge</ammoSet>
</AmmoUser>
<FireModes>
<aiAimMode>Snapshot</aiAimMode>
</FireModes>
</Operation>

</Patch>

0 comments on commit 6c6550f

Please sign in to comment.