Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.
Open
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
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Defensive Machine Gun Turret Pack</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- Remove RecoilOperation research, as turrets have been reassigned to existing CE research projects -->

<li Class="PatchOperationRemove">
<xpath>Defs/ResearchProjectDef[defName="RecoilOperation"]</xpath>
</li>

</operations>
</match>
</Operation>
</Patch>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="CombatExtended.PatchOperationFindMod">
<modName>Defensive Machine Gun Turret Pack</modName>
</li>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Defensive Machine Gun Turret Pack</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- ========== Mounted DP-28 Turret ========== -->

Expand Down Expand Up @@ -360,7 +360,7 @@
</value>
</li>

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

</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Defensive Machine Gun Turret Pack</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- ========== M2HB Sentry Gun ========== -->

<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>Gun_M2HBs</defName>
<statBases>
<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
<SightsEfficiency>1.00</SightsEfficiency>
<ShotSpread>0.01</ShotSpread>
<SwayFactor>1.65</SwayFactor>
<Bulk>18.54</Bulk>
</statBases>
<Properties>
<recoilAmount>1.19</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_50BMG_FMJ</defaultProjectile>
<warmupTime>1.3</warmupTime>
<range>86</range>
<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
<burstShotCount>10</burstShotCount>
<soundCast>ShotM2</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>13</muzzleFlashScale>
<recoilPattern>Mounted</recoilPattern>
</Properties>
<AmmoUser>
<magazineSize>100</magazineSize>
<reloadTime>7.8</reloadTime>
<ammoSet>AmmoSet_50BMG</ammoSet>
</AmmoUser>
<FireModes>
<aiUseBurstMode>FALSE</aiUseBurstMode>
<aiAimMode>AimedShot</aiAimMode>
<aimedBurstShotCount>5</aimedBurstShotCount>
<noSnapshot>true</noSnapshot>
<noSingleShot>true</noSingleShot>
</FireModes>
<weaponTags>
<li>TurretGun</li>
</weaponTags>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Turret_M2HBs"]/specialDisplayRadius</xpath>
<value>
<specialDisplayRadius>86</specialDisplayRadius>
</value>
</li>

<!-- ========== M134 Sentry Gun ========== -->

<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>Gun_M134MGs</defName>
<statBases>
<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
<SightsEfficiency>1.00</SightsEfficiency>
<ShotSpread>0.06</ShotSpread>
<SwayFactor>1.31</SwayFactor>
<Bulk>8.02</Bulk>
</statBases>
<Properties>
<recoilAmount>0.59</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_762x51mmNATO_FMJ</defaultProjectile>
<warmupTime>2.3</warmupTime>
<range>86</range>
<ticksBetweenBurstShots>1</ticksBetweenBurstShots>
<burstShotCount>100</burstShotCount>
<soundCast>Shot_Minigun</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>10</muzzleFlashScale>
<recoilPattern>Mounted</recoilPattern>
</Properties>
<AmmoUser>
<magazineSize>500</magazineSize>
<reloadTime>9.2</reloadTime>
<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
</AmmoUser>
<FireModes>
<aiUseBurstMode>FALSE</aiUseBurstMode>
<aiAimMode>AimedShot</aiAimMode>
<aimedBurstShotCount>50</aimedBurstShotCount>
<noSnapshot>true</noSnapshot>
<noSingleShot>true</noSingleShot>
</FireModes>
<weaponTags>
<li>TurretGun</li>
</weaponTags>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Turret_M134MGs"]/specialDisplayRadius</xpath>
<value>
<specialDisplayRadius>86</specialDisplayRadius>
</value>
</li>

<!-- ========== Mk 19 Sentry Gun ========== -->

<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>Gun_Mk19MGLs</defName>
<statBases>
<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
<SightsEfficiency>1.00</SightsEfficiency>
<ShotSpread>0.09</ShotSpread>
<SwayFactor>1.55</SwayFactor>
<Bulk>12.90</Bulk>
</statBases>
<Properties>
<recoilAmount>1.58</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_40x53mmGrenade_HE</defaultProjectile>
<warmupTime>1.3</warmupTime>
<range>78</range>
<minRange>6</minRange>
<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
<burstShotCount>6</burstShotCount>
<soundCast>InfernoCannon_Fire</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>16</muzzleFlashScale>
<recoilPattern>Mounted</recoilPattern>
</Properties>
<AmmoUser>
<magazineSize>48</magazineSize>
<reloadTime>7.8</reloadTime>
<ammoSet>AmmoSet_40x53mmGrenade</ammoSet>
</AmmoUser>
<FireModes>
<aiUseBurstMode>FALSE</aiUseBurstMode>
<aiAimMode>AimedShot</aiAimMode>
<aimedBurstShotCount>3</aimedBurstShotCount>
<noSnapshot>true</noSnapshot>
<noSingleShot>true</noSingleShot>
</FireModes>
<weaponTags>
<li>TurretGun</li>
</weaponTags>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Turret_Mk19MGLs"]/specialDisplayRadius</xpath>
<value>
<specialDisplayRadius>78</specialDisplayRadius>
</value>
</li>

<!-- ========== Work To Build ========== -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="Turret_M2HBs"
]/statBases/WorkToBuild</xpath>
<value>
<WorkToBuild>69500</WorkToBuild>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="Turret_M134MGs"
]/statBases/WorkToBuild</xpath>
<value>
<WorkToBuild>62500</WorkToBuild>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="Turret_Mk19MGLs"
]/statBases/WorkToBuild</xpath>
<value>
<WorkToBuild>66500</WorkToBuild>
</value>
</li>

<!-- ========== Common to all Sentry Turrets ========== -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="Turret_M2HBs" or
defName="Turret_M134MGs" or
defName="Turret_Mk19MGLs"
]/thingClass</xpath>
<value>
<thingClass>CombatExtended.Building_TurretGunCE</thingClass>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="Turret_M2HBs" or
defName="Turret_M134MGs" or
defName="Turret_Mk19MGLs"
]/researchPrerequisites</xpath>
<value>
<researchPrerequisites>
<li>CE_TurretHeavyWeapons</li>
<li>CE_HeavyTurret</li>
</researchPrerequisites>
</value>
</li>

<li Class="PatchOperationRemove">
<xpath>Defs/ThingDef[
defName="Turret_M2HBs" or
defName="Turret_M134MGs" or
defName="Turret_Mk19MGLs"
]/comps/li[@Class = "CompProperties_Refuelable"]</xpath>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[
defName="Turret_M2HBs" or
defName="Turret_M134MGs" or
defName="Turret_Mk19MGLs"
]/statBases</xpath>
<value>
<AimingAccuracy>1.0</AimingAccuracy>
<ShootingAccuracyTurret>1.0</ShootingAccuracyTurret>
</value>
</li>

</operations>
</match>
</Operation>
</Patch>
Loading