Skip to content

Commit

Permalink
Create StormCharger.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
SamaelGray committed Sep 21, 2023
1 parent 00140cc commit 9d92f45
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions Patches/Machines of War/ThingDefs_Misc/StormCharger.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Machines of War</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationRemove">
<xpath>Defs/ThingDef[defName="MOW_Gun_EMMarksmanRifle"]</xpath>
</li>

<li Class="PatchOperationReplace">
<xpath>
Defs/ThingDef[defName = "MOW_Gun_StormChargeScatter"]/tools
</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>stock</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>8</power>
<cooldownTime>1.55</cooldownTime>
<chanceFactor>1.5</chanceFactor>
<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>Bayonet</label>
<capacities>
<li>Poke</li>
</capacities>
<power>15</power>
<cooldownTime>2.02</cooldownTime>
<armorPenetrationSharp>5.630</armorPenetrationSharp>
<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
</li>
</tools>
</value>
</li>

<!-- === Charge Shotgun === -->
<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>MOW_Gun_StormChargeScatter</defName>
<statBases>
<Mass>4.35</Mass>
<Bulk>6.0</Bulk>
<SwayFactor>1.25</SwayFactor>
<ShotSpread>0.14</ShotSpread>
<SightsEfficiency>1</SightsEfficiency>
<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
</statBases>
<Properties>
<recoilAmount>3.0</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>True</hasStandardCommand>
<defaultProjectile>Bullet_12GaugeCharged</defaultProjectile>
<warmupTime>0.5</warmupTime>
<range>24</range>
<soundCast>MOW_Shot_StormChargeScatter</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
</Properties>
<AmmoUser>
<magazineSize>12</magazineSize>
<reloadTime>4.5</reloadTime>
<ammoSet>AmmoSet_12GaugeCharged</ammoSet>
</AmmoUser>
<FireModes>
<aiAimMode>Snapshot</aiAimMode>
</FireModes>
<weaponTags>
<li>CE_AI_Rifle</li>
<li>NoSwitch</li>
</weaponTags>
</li>

</operations>
</match>
</Operation>

</Patch>

0 comments on commit 9d92f45

Please sign in to comment.