CustomPatchesForRimworld/ModPatches/Rimlaser.CE/Patches/PMakeRimlaserCE.xml
2025-01-14 11:53:59 +08:00

82 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>Rimlaser_LaserRifle</defName>
<statBases>
<Mass>5.5</Mass>
<Bulk>5</Bulk>
<ShotSpread>0.01</ShotSpread>
<SwayFactor>1.6</SwayFactor>
</statBases>
<Properties>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_Rimlaser_Medium</defaultProjectile>
<warmupTime>1.0</warmupTime>
<range>39</range>
<burstShotCount>6</burstShotCount>
<soundCast>LaserRifle_Fire</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
<recoilAmount>0.5</recoilAmount>
<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
</Properties>
<FireModes>
<aimedBurstShotCount>6</aimedBurstShotCount>
<aiAimMode>AimedShot</aiAimMode>
</FireModes>
<weaponTags>
<li>AdvancedGun</li>
<li>CE_AI_SR</li>
</weaponTags>
</Operation>
<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>Rimlaser_TeslaGun</defName>
<statBases>
<Mass>20</Mass>
<Bulk>17</Bulk>
<ShotSpread>0.01</ShotSpread>
<SwayFactor>1.6</SwayFactor>
</statBases>
<Properties>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_Lasgun_Tesla</defaultProjectile>
<warmupTime>2.0</warmupTime>
<range>19</range>
<burstShotCount>1</burstShotCount>
<soundCast>LaserRifle_Fire</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
<recoilAmount>0.5</recoilAmount>
<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
</Properties>
<FireModes>
<aimedBurstShotCount>1</aimedBurstShotCount>
<aiAimMode>AimedShot</aiAimMode>
</FireModes>
<weaponTags>
<li>AdvancedGun</li>
<li>CE_AI_SR</li>
</weaponTags>
</Operation>
<Operation Class="PatchOperationReplace">
<xpath>
Defs/ThingDef[defName="Rimlaser_TeslaGun"]/tools
</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>barrel</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>16</power>
<cooldownTime>2.02</cooldownTime>
<armorPenetrationBlunt>1.63</armorPenetrationBlunt>
<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
</li>
</tools>
</value>
</Operation>
</Patch>