Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,32 @@
</ammoTypes>
</CombatExtended.AmmoSetDef>

<!-- === Highpower Ammostes === -->

<CombatExtended.AmmoSetDef>
<defName>AmmoSet_6mmRailgun_GaussRifle_HP</defName>
<label>6mm Railgun</label>
<ammoTypes>
<Ammo_6mmRailgun_Sabot>Bullet_CoilGun_Rifle_HP</Ammo_6mmRailgun_Sabot>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<CombatExtended.AmmoSetDef>
<defName>AmmoSet_6mmRailgun_GaussMagnum_HP</defName>
<label>6mm Railgun</label>
<ammoTypes>
<Ammo_6mmRailgun_Sabot>Bullet_CoilGun_Magnum_HP</Ammo_6mmRailgun_Sabot>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<CombatExtended.AmmoSetDef>
<defName>AmmoSet_8mmRailgun_GaussLance_HP</defName>
<label>8mm Railgun</label>
<ammoTypes>
<Ammo_8mmRailgun_Sabot>Bullet_CoilGun_Lance_HP</Ammo_8mmRailgun_Sabot>
</ammoTypes>
</CombatExtended.AmmoSetDef>

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

<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletYellow">
Expand Down Expand Up @@ -74,4 +100,44 @@
</projectile>
</ThingDef>

<!-- === Highpower ratio the x 0.65 damage and 1.5 sharp pen === -->
<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletYellow">
<defName>Bullet_CoilGun_Magnum_HP</defName>
<label>highpower gauss magnum shot</label>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<isInstant>true</isInstant>
<damageFalloff>False</damageFalloff>
<damageDef>Bullet</damageDef>
<damageAmountBase>10</damageAmountBase>
<armorPenetrationSharp>34.5</armorPenetrationSharp>
<armorPenetrationBlunt>142.5</armorPenetrationBlunt>
</projectile>
</ThingDef>

<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletYellow">
<defName>Bullet_CoilGun_Rifle_HP</defName>
<label>highpower gauss rifle shot</label>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<isInstant>true</isInstant>
<damageFalloff>False</damageFalloff>
<damageDef>Bullet</damageDef>
<damageAmountBase>10</damageAmountBase>
<armorPenetrationSharp>54.7</armorPenetrationSharp>
<armorPenetrationBlunt>235.5</armorPenetrationBlunt>
</projectile>
</ThingDef>

<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletYellow">
<defName>Bullet_CoilGun_Lance_HP</defName>
<label>highpower gauss lance shot</label>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<isInstant>true</isInstant>
<damageFalloff>False</damageFalloff>
<damageDef>Bullet</damageDef>
<damageAmountBase>14</damageAmountBase>
<armorPenetrationSharp>69.6</armorPenetrationSharp>
<armorPenetrationBlunt>312</armorPenetrationBlunt>
</projectile>
</ThingDef>

</Defs>
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>

<!-- VWE Coilgun Odyssey Traits - Combat Extended Compatibility -->
<!-- Only applies when Odyssey DLC is loaded -->

<Operation Class="PatchOperationFindMod">
<mods>
<li>Odyssey</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- VWE_InertialCore: Remove -->
<li Class="PatchOperationRemove">
<xpath>Defs/WeaponTraitDef[defName="VWE_InertialCore"]</xpath>
</li>

<!-- VWE_InvertedRailTuning: Remove -->
<li Class="PatchOperationRemove">
<xpath>Defs/WeaponTraitDef[defName="VWE_InvertedRailTuning"]</xpath>
</li>

<!-- VWE_BypassRelay:remove modExtension patch into cooldown reduction. -->
<li Class="PatchOperationRemove">
<xpath>Defs/WeaponTraitDef[defName="VWE_BypassRelay"]/modExtensions</xpath>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/WeaponTraitDef[defName="VWE_BypassRelay"]/description</xpath>
<value>
<description>This weapon features an optimized charging sequence that halves the charging time between bursts.</description>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/WeaponTraitDef[defName="VWE_BypassRelay"]</xpath>
<value>
<statFactors>
<RangedWeapon_Cooldown>0.5</RangedWeapon_Cooldown>
</statFactors>
</value>
</li>

<!-- VWE_OverdrawnCoils: Add recoil move cooldown damage and armor pen buff out of modExtensions -->
<li Class="PatchOperationReplace">
<xpath>Defs/WeaponTraitDef[defName="VWE_OverdrawnCoils"]/description</xpath>
<value>
<description>This weapon draws excessive power from its reserves, taking slightly longer to charge but delivering vastly increased damage.</description>
</value>
</li>
<li Class="PatchOperationRemove">
<xpath>Defs/WeaponTraitDef[defName="VWE_OverdrawnCoils"]/modExtensions</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/WeaponTraitDef[defName="VWE_OverdrawnCoils"]</xpath>
<value>
<statFactors>
<CE_RangedWeapon_RecoilMultiplier>1.15</CE_RangedWeapon_RecoilMultiplier>
<RangedWeapon_Cooldown>1.15</RangedWeapon_Cooldown>
<RangedWeapon_DamageMultiplier>0.35</RangedWeapon_DamageMultiplier>
<RangedWeapon_ArmorPenetrationMultiplier>0.35</RangedWeapon_ArmorPenetrationMultiplier>
</statFactors>
</value>
</li>

<!-- VWE_IonizedSabot: Change to add Bomb_Secondary -->
<li Class="PatchOperationRemove">
<xpath>Defs/WeaponTraitDef[defName="VWE_IonizedSabot"]/modExtensions</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/WeaponTraitDef[defName="VWE_IonizedSabot"]</xpath>
<value>
<extraDamages>
<li>
<def>Bomb_Secondary</def>
<amount>5</amount>
</li>
</extraDamages>
</value>
</li>

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

</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,22 @@
</value>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>
Defs/ThingDef[defName="VWE_Gun_GaussMagnum"]/comps/li[@Class="VEF.Weapons.CompProperties_MultiVerbWeapon"] |
Defs/ThingDef[defName="VWE_Gun_GaussRifle"]/comps/li[@Class="VEF.Weapons.CompProperties_MultiVerbWeapon"] |
Defs/ThingDef[defName="VWE_Gun_GaussLance"]/comps/li[@Class="VEF.Weapons.CompProperties_MultiVerbWeapon"]
</xpath>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>
Defs/ThingDef[defName="VWE_Gun_GaussMagnum"]/verbs/li[label="low power shot"] |
Defs/ThingDef[defName="VWE_Gun_GaussRifle"]/verbs/li[label="low power shot"] |
Defs/ThingDef[defName="VWE_Gun_GaussLance"]/verbs/li[label="low power shot"]
</xpath>
</Operation>

<!-- === Gauss Magnum === -->
<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>VWE_Gun_GaussMagnum</defName>
Expand Down Expand Up @@ -130,6 +146,36 @@
</weaponTags>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="VWE_Gun_GaussMagnum"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_UnderBarrel">
<standardLabel>switch to standard mode</standardLabel>
<underBarrelLabel>switch to highpower mode</underBarrelLabel>
<oneAmmoHolder>True</oneAmmoHolder>
<propsUnderBarrel>
<magazineSize>8</magazineSize>
<reloadTime>4</reloadTime>
<ammoSet>AmmoSet_6mmRailgun_GaussMagnum_HP</ammoSet>
</propsUnderBarrel>
<verbPropsUnderBarrel>
<recoilAmount>3.0</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>True</hasStandardCommand>
<defaultProjectile>Bullet_CoilGun_Magnum_HP</defaultProjectile>
<warmupTime>0.8</warmupTime>
<range>15</range>
<soundCast>VWE_Shot_GaussMagnum</soundCast>
<soundCastTail>GunTail_Light</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
</verbPropsUnderBarrel>
<propsFireModesUnderBarrel>
<aiAimMode>AimedShot</aiAimMode>
</propsFireModesUnderBarrel>
</li>
</value>
</Operation>

<!-- === Gauss Rifle === -->
<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>VWE_Gun_GaussRifle</defName>
Expand Down Expand Up @@ -170,6 +216,40 @@
</weaponTags>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="VWE_Gun_GaussRifle"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_UnderBarrel">
<standardLabel>switch to standard mode</standardLabel>
<underBarrelLabel>switch to highpower mode</underBarrelLabel>
<oneAmmoHolder>True</oneAmmoHolder>
<propsUnderBarrel>
<magazineSize>40</magazineSize>
<reloadTime>4</reloadTime>
<ammoSet>AmmoSet_6mmRailgun_GaussRifle_HP</ammoSet>
</propsUnderBarrel>
<verbPropsUnderBarrel>
<recoilAmount>2.09</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>True</hasStandardCommand>
<defaultProjectile>Bullet_CoilGun_Rifle_HP</defaultProjectile>
<warmupTime>1.1</warmupTime>
<range>55</range>
<burstShotCount>5</burstShotCount>
<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
<soundCast>VWE_Shot_GaussRifle</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
</verbPropsUnderBarrel>
<propsFireModesUnderBarrel>
<aiAimMode>AimedShot</aiAimMode>
<aiUseBurstMode>True</aiUseBurstMode>
<aimedBurstShotCount>4</aimedBurstShotCount>
</propsFireModesUnderBarrel>
</li>
</value>
</Operation>

<!-- === Gauss Lance === -->
<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>VWE_Gun_GaussLance</defName>
Expand Down Expand Up @@ -206,4 +286,35 @@
</weaponTags>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="VWE_Gun_GaussLance"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_UnderBarrel">
<standardLabel>switch to standard mode</standardLabel>
<underBarrelLabel>switch to highpower mode</underBarrelLabel>
<oneAmmoHolder>True</oneAmmoHolder>
<propsUnderBarrel>
<magazineSize>10</magazineSize>
<reloadTime>5.2</reloadTime>
<ammoSet>AmmoSet_8mmRailgun_GaussLance_HP</ammoSet>
</propsUnderBarrel>
<verbPropsUnderBarrel>
<recoilAmount>2.0</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>True</hasStandardCommand>
<defaultProjectile>Bullet_CoilGun_Lance_HP</defaultProjectile>
<warmupTime>2.4</warmupTime>
<range>62</range>
<soundCast>VWE_Shot_GaussLance</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
<recoilPattern>Regular</recoilPattern>
</verbPropsUnderBarrel>
<propsFireModesUnderBarrel>
<aiAimMode>AimedShot</aiAimMode>
</propsFireModesUnderBarrel>
</li>
</value>
</Operation>

</Patch>
Loading
Loading