This repository was archived by the owner on Apr 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
Update Defensive Machine Gun Turret Pack patches #1187
Open
sumghai
wants to merge
2
commits into
CombatExtendedRWMod:master
Choose a base branch
from
sumghai:DMGT_update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
Patches/DefensiveMachineGunTurretPack/DMGT_CE_Patch_ResearchProjectDefs.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
237 changes: 237 additions & 0 deletions
237
Patches/DefensiveMachineGunTurretPack/DMGT_CE_Patch_ThingDefs_Sentry_Turrets.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.