Advertisement
Guest User

Untitled

a guest
Aug 16th, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.44 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <Patch>
  3. <Operation Class="PatchOperationFindMod">
  4. <mods>
  5. <li>Combat Extended</li>
  6. </mods>
  7. <match Class="PatchOperationSequence">
  8. <success>Always</success>
  9. <operations>
  10. <!-- Adds explosion and explosion damage on the tank projectile -->
  11. <li Class="PatchOperationInsert">
  12. <xpath>Defs/ThingDef[defName="Bullet_20x110mmHispano_HE"]</xpath>
  13. <value>
  14. <li Class="CombatExtended.CompProperties_ExplosiveCE">
  15. <explosionDamage>50</explosionDamage>
  16. <explosionDamageDef>Flame</explosionDamageDef>
  17. <explosionRadius>2.5</explosionRadius>
  18. <applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
  19. <chanceToStartFire>0.2</chanceToStartFire>
  20. <damageFalloff>true</damageFalloff>
  21. </li>
  22. </value>
  23. </li>
  24.  
  25. <!-- Adds CE compatibility with vehicle melee -->
  26. <li Class="PatchOperationReplace">
  27. <xpath>Defs/ThingDef[defName="APC"]/tools</xpath>
  28. <value>
  29. <tools>
  30. <li Class="CombatExtended.ToolCE">
  31. <label>body</label>
  32. <capacities>
  33. <li>Blunt</li>
  34. </capacities>
  35. <power>25</power>
  36. <cooldownTime>2.6</cooldownTime>
  37. <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
  38. <chanceFactor>1.5</chanceFactor>
  39. <armorPenetration>1.0</armorPenetration>
  40. <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
  41. </li>
  42. </tools>
  43. </value>
  44. </li>
  45.  
  46. <li Class="PatchOperationReplace">
  47. <xpath>Defs/ThingDef[defName="ATV"]/tools</xpath>
  48. <value>
  49. <tools>
  50. <li Class="CombatExtended.ToolCE">
  51. <label>body</label>
  52. <capacities>
  53. <li>Blunt</li>
  54. </capacities>
  55. <power>25</power>
  56. <cooldownTime>2.6</cooldownTime>
  57. <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
  58. <chanceFactor>1.5</chanceFactor>
  59. <armorPenetration>1.0</armorPenetration>
  60. <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
  61. </li>
  62. </tools>
  63. </value>
  64. </li>
  65.  
  66. <li Class="PatchOperationReplace">
  67. <xpath>Defs/ThingDef[defName="Tank"]/tools</xpath>
  68. <value>
  69. <tools>
  70. <li Class="CombatExtended.ToolCE">
  71. <label>body</label>
  72. <capacities>
  73. <li>Blunt</li>
  74. </capacities>
  75. <power>25</power>
  76. <cooldownTime>2.6</cooldownTime>
  77. <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
  78. <chanceFactor>1.5</chanceFactor>
  79. <armorPenetration>1.0</armorPenetration>
  80. <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
  81. </li>
  82. </tools>
  83. </value>
  84. </li>
  85.  
  86. <li Class="PatchOperationReplace">
  87. <xpath>Defs/ThingDef[defName="Truck"]/tools</xpath>
  88. <value>
  89. <tools>
  90. <li Class="CombatExtended.ToolCE">
  91. <label>body</label>
  92. <capacities>
  93. <li>Blunt</li>
  94. </capacities>
  95. <power>25</power>
  96. <cooldownTime>2.6</cooldownTime>
  97. <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
  98. <chanceFactor>1.5</chanceFactor>
  99. <armorPenetration>1.0</armorPenetration>
  100. <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
  101. </li>
  102. </tools>
  103. </value>
  104. </li>
  105.  
  106. <!-- Rail Cannon CE Patch -->
  107. <li Class="CombatExtended.PatchOperationMakeGunCECompatible">
  108. <defName>Rail_Cannon</defName>
  109. <statBases>
  110. <SightsEfficiency>4.40</SightsEfficiency>
  111. <ShotSpread>0.01</ShotSpread>
  112. <SwayFactor>0.20</SwayFactor>
  113. <Bulk>9.25</Bulk>
  114. <Mass>8.85</Mass>
  115. </statBases>
  116.  
  117. <costList>
  118. <Steel>150</Steel>
  119. <Plasteel>80</Plasteel>
  120. <ComponentIndustrial>15</ComponentIndustrial>
  121. </costList>
  122.  
  123. <Properties>
  124. <recoilAmount>2.15</recoilAmount>
  125. <verbClass>CombatExtended.Verb_ShootCE</verbClass>
  126. <hasStandardCommand>true</hasStandardCommand>
  127. <defaultProjectile>Bullet_20x110mmHispano_FMJ</defaultProjectile>
  128. <range>75</range>
  129. <soundCast>RailCannon_Fire</soundCast>
  130. <soundCastTail>GunTail_Heavy</soundCastTail>
  131. <muzzleFlashScale>40</muzzleFlashScale>
  132. </Properties>
  133.  
  134. <!-- Leaving this here in case of weapon ammo limits. -->
  135. <!--AmmoUser>
  136. <magazineSize>40</magazineSize>
  137. <reloadTime>7</reloadTime>
  138. <ammoSet>AmmoSet_20x110mmHispano</ammoSet>
  139. </AmmoUser-->
  140.  
  141. <FireModes>
  142. <aiUseBurstMode>FALSE</aiUseBurstMode>
  143. <aiAimMode>AimedShot</aiAimMode>
  144. </FireModes>
  145.  
  146. <weaponTags>
  147. <li>CE_AI_Rifle</li>
  148. <li>EliteGun</li>
  149. </weaponTags>
  150. <AllowWithRunAndGun>false</AllowWithRunAndGun>
  151. </li>
  152.  
  153. <!-- Tank Cannon CE Patch -->
  154. <li Class="CombatExtended.PatchOperationMakeGunCECompatible">
  155. <defName>Tank_Cannon</defName>
  156. <statBases>
  157. <SightsEfficiency>4.40</SightsEfficiency>
  158. <ShotSpread>0.02</ShotSpread>
  159. <SwayFactor>0.40</SwayFactor>
  160. <Bulk>9.75</Bulk>
  161. <Mass>7.85</Mass>
  162. </statBases>
  163.  
  164. <costList>
  165. <Steel>150</Steel>
  166. <Plasteel>40</Plasteel>
  167. <ComponentIndustrial>5</ComponentIndustrial>
  168. </costList>
  169.  
  170. <Properties>
  171. <recoilAmount>3.02</recoilAmount>
  172. <verbClass>CombatExtended.Verb_ShootCE</verbClass>
  173. <hasStandardCommand>true</hasStandardCommand>
  174. <defaultProjectile>Bullet_20x110mmHispano_HE</defaultProjectile>
  175. <range>65</range>
  176. <soundCast>TankCannon_Fire</soundCast>
  177. <soundCastTail>GunTail_Heavy</soundCastTail>
  178. <muzzleFlashScale>50</muzzleFlashScale>
  179. <targetParams>
  180. <canTargetLocations>true</canTargetLocations>
  181. </targetParams>
  182. </Properties>
  183.  
  184. <!-- Leaving this here in case of weapon ammo limits. -->
  185. <!--AmmoUser>
  186. <magazineSize>40</magazineSize>
  187. <reloadTime>5</reloadTime>
  188. <ammoSet>AmmoSet_20x110mmHispano</ammoSet>
  189. </AmmoUser-->
  190.  
  191. <FireModes>
  192. <aiUseBurstMode>FALSE</aiUseBurstMode>
  193. <aiAimMode>AimedShot</aiAimMode>
  194. </FireModes>
  195.  
  196. <weaponTags>
  197. <li>CE_AI_Rifle</li>
  198. <li>EliteGun</li>
  199. </weaponTags>
  200. <AllowWithRunAndGun>true</AllowWithRunAndGun>
  201. </li>
  202.  
  203. <!-- Burst Cannon CE Patch -->
  204. <li Class="CombatExtended.PatchOperationMakeGunCECompatible">
  205. <defName>Burst_Cannon</defName>
  206. <statBases>
  207. <RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
  208. <SightsEfficiency>2.20</SightsEfficiency>
  209. <ShotSpread>0.04</ShotSpread>
  210. <SwayFactor>0.80</SwayFactor>
  211. <Bulk>9.00</Bulk>
  212. <Mass>6.85</Mass>
  213. </statBases>
  214.  
  215. <costList>
  216. <Steel>100</Steel>
  217. <ComponentIndustrial>5</ComponentIndustrial>
  218. </costList>
  219.  
  220. <Properties>
  221. <recoilAmount>1.51</recoilAmount>
  222. <verbClass>CombatExtended.Verb_ShootCE</verbClass>
  223. <hasStandardCommand>true</hasStandardCommand>
  224. <defaultProjectile>Bullet_20x82mmMauser_HE</defaultProjectile>
  225. <warmupTime>0.56</warmupTime>
  226. <range>55</range>
  227. <soundCast>BurstCannon_Fire</soundCast>
  228. <soundCastTail>GunTail_Heavy</soundCastTail>
  229. <muzzleFlashScale>20</muzzleFlashScale>
  230. <burstShotCount>75</burstShotCount>
  231. <ticksBetweenBurstShots>4</ticksBetweenBurstShots>
  232. </Properties>
  233.  
  234. <!-- Leaving this here in case of weapon ammo limits. -->
  235. <!--AmmoUser>
  236. <magazineSize>60</magazineSize>
  237. <reloadTime>1</reloadTime>
  238. <ammoSet>AmmoSet_20x82mmMauser</ammoSet>
  239. </AmmoUser-->
  240.  
  241. <FireModes>
  242. <aiUseBurstMode>TRUE</aiUseBurstMode>
  243. <noSingleShot>true</noSingleShot>
  244. <aimedBurstShotCount>75</aimedBurstShotCount>
  245. </FireModes>
  246.  
  247. <weaponTags>
  248. <li>CE_AI_Rifle</li>
  249. <li>EliteGun</li>
  250. </weaponTags>
  251. <AllowWithRunAndGun>true</AllowWithRunAndGun>
  252. </li>
  253.  
  254. <!-- Machine Cannon CE Patch -->
  255. <li Class="CombatExtended.PatchOperationMakeGunCECompatible">
  256. <defName>Machine_Cannon</defName>
  257. <statBases>
  258. <RangedWeapon_Cooldown>0.16</RangedWeapon_Cooldown>
  259. <SightsEfficiency>1.10</SightsEfficiency>
  260. <ShotSpread>0.04</ShotSpread>
  261. <SwayFactor>1.00</SwayFactor>
  262. <Bulk>7.00</Bulk>
  263. <Mass>5.65</Mass>
  264. </statBases>
  265.  
  266. <costList>
  267. <Steel>100</Steel>
  268. <ComponentIndustrial>5</ComponentIndustrial>
  269. </costList>
  270.  
  271. <Properties>
  272. <recoilAmount>1.58</recoilAmount>
  273. <verbClass>CombatExtended.Verb_ShootCE</verbClass>
  274. <hasStandardCommand>true</hasStandardCommand>
  275. <defaultProjectile>Bullet_127x55mmAR_FMJ</defaultProjectile>
  276. <warmupTime>0.36</warmupTime>
  277. <range>45</range>
  278. <soundCast>BurstCannon_Fire</soundCast>
  279. <soundCastTail>GunTail_Heavy</soundCastTail>
  280. <muzzleFlashScale>20</muzzleFlashScale>
  281. <burstShotCount>150</burstShotCount>
  282. <ticksBetweenBurstShots>2</ticksBetweenBurstShots>
  283. </Properties>
  284.  
  285. <!-- Leaving this here in case of weapon ammo limits. -->
  286. <!--AmmoUser>
  287. <magazineSize>120</magazineSize>
  288. <reloadTime>0.75</reloadTime>
  289. <ammoSet>AmmoSet_127x55mmAR</ammoSet>
  290. </AmmoUser-->
  291.  
  292. <FireModes>
  293. <aiUseBurstMode>TRUE</aiUseBurstMode>
  294. <noSingleShot>true</noSingleShot>
  295. <aimedBurstShotCount>150</aimedBurstShotCount>
  296. </FireModes>
  297.  
  298. <weaponTags>
  299. <li>CE_AI_Rifle</li>
  300. <li>EliteGun</li>
  301. </weaponTags>
  302. <AllowWithRunAndGun>true</AllowWithRunAndGun>
  303. </li>
  304.  
  305. <!-- Machine Gun CE Patch -->
  306. <li Class="CombatExtended.PatchOperationMakeGunCECompatible">
  307. <defName>Machine_Gun</defName>
  308. <statBases>
  309. <RangedWeapon_Cooldown>0.06</RangedWeapon_Cooldown>
  310. <SightsEfficiency>1</SightsEfficiency>
  311. <ShotSpread>0.08</ShotSpread>
  312. <SwayFactor>1.20</SwayFactor>
  313. <Bulk>5.00</Bulk>
  314. <Mass>2.65</Mass>
  315. </statBases>
  316.  
  317. <Properties>
  318. <recoilAmount>1.32</recoilAmount>
  319. <verbClass>CombatExtended.Verb_ShootCE</verbClass>
  320. <hasStandardCommand>true</hasStandardCommand>
  321. <defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
  322. <warmupTime>0.26</warmupTime>
  323. <range>30</range>
  324. <burstShotCount>300</burstShotCount>
  325. <ticksBetweenBurstShots>1</ticksBetweenBurstShots>
  326. <soundCast>BurstCannon_Fire</soundCast>
  327. <soundCastTail>GunTail_Heavy</soundCastTail>
  328. <muzzleFlashScale>10</muzzleFlashScale>
  329. </Properties>
  330.  
  331. <!-- Leaving this here in case of weapon ammo limits. -->
  332. <!--AmmoUser>
  333. <magazineSize>220</magazineSize>
  334. <reloadTime>0.25</reloadTime>
  335. <ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
  336. </AmmoUser-->
  337.  
  338. <FireModes>
  339. <aiUseBurstMode>TRUE</aiUseBurstMode>
  340. <noSingleShot>true</noSingleShot>
  341. <aimedBurstShotCount>300</aimedBurstShotCount>
  342. </FireModes>
  343.  
  344. <weaponTags>
  345. <li>CE_AI_Rifle</li>
  346. <li>EliteGun</li>
  347. </weaponTags>
  348. <AllowWithRunAndGun>true</AllowWithRunAndGun>
  349. </li>
  350. </operations>
  351. </match>
  352. </Operation>
  353. </Patch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement