Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

Vanilla Vehicles Expanded Patches #1171

Merged
3 commits merged into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from 2 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,52 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>

<!--Car Bodytype-->

<li Class="PatchOperationFindMod">
<mods><li>Vanilla Vehicles Expanded</li></mods>
<match Class="PatchOperationSequence">
<operations>
<!--VAEAF Car-->
<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="VAEAF_CarBody"]/corePart</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="VAEAF_CarBody"]/corePart/parts/li[def="VAEAF_FrontGrille"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="VAEAF_CarBody"]/corePart/parts/li[def="VAEAF_ChassisCentral"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="VAEAF_CarBody"]/corePart/parts/li[def="VAEAF_ChassisCentral"]/parts/li[def="VAEAF_ChassisRear"]</xpath>
<value>
<groups>
<li>CoveredByNaturalArmor</li>
</groups>
</value>
</li>

</operations>
</match>
</li>
</operations>
</Operation>
</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationFindMod">

<mods><li>Vanilla Vehicles Expanded</li></mods>
<match Class="PatchOperationSequence">
<operations>
<!--Bodytype-->
<li Class="PatchOperationAddModExtension">
<xpath>/Defs/ThingDef[
defName="VAEAF_CarFamily" or
defName="VAEAF_CarDelivery" or
defName="VAEAF_CarVintage" or
defName="VAEAF_CarPickup" or
defName="VAEAF_CarForklift"
]</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>Vehicle</bodyShape>
</li>
</value>
</li>



<!--Family Car-->

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAEAF_CarFamily"]/statBases</xpath>
<value>
<MeleeDodgeChance>0.10</MeleeDodgeChance>
<MeleeCritChance>0.20</MeleeCritChance>
<MeleeParryChance>0.3</MeleeParryChance>
<SmokeSensitivity>0.05</SmokeSensitivity>
<ArmorRating_Sharp>2</ArmorRating_Sharp>
<ArmorRating_Blunt>3</ArmorRating_Blunt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VAEAF_CarFamily"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>24</power>
<cooldownTime>3.17</cooldownTime>
<linkedBodyPartsGroup>VAEAF_FrontGrilleGroup</linkedBodyPartsGroup>
<armorPenetrationBlunt>10</armorPenetrationBlunt>
</li>
</tools>
</value>
</li>

<!--Delivery Truck-->

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAEAF_CarDelivery"]/statBases</xpath>
<value>
<MeleeDodgeChance>0.10</MeleeDodgeChance>
<MeleeCritChance>0.20</MeleeCritChance>
<MeleeParryChance>0.3</MeleeParryChance>
<SmokeSensitivity>0.05</SmokeSensitivity>
<ArmorRating_Sharp>2</ArmorRating_Sharp>
<ArmorRating_Blunt>3</ArmorRating_Blunt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VAEAF_CarDelivery"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>34</power>
<cooldownTime>5.96</cooldownTime>
<linkedBodyPartsGroup>VAEAF_FrontGrilleGroup</linkedBodyPartsGroup>
<armorPenetrationBlunt>14.7</armorPenetrationBlunt>
</li>
</tools>
</value>
</li>

<!--Vintage Car-->

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAEAF_CarVintage"]/statBases</xpath>
<value>
<MeleeDodgeChance>0.15</MeleeDodgeChance>
<MeleeCritChance>0.25</MeleeCritChance>
<MeleeParryChance>0.35</MeleeParryChance>
<SmokeSensitivity>0.05</SmokeSensitivity>
<ArmorRating_Sharp>4</ArmorRating_Sharp>
<ArmorRating_Blunt>6</ArmorRating_Blunt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VAEAF_CarVintage"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>36</power>
<cooldownTime>2.54</cooldownTime>
<linkedBodyPartsGroup>VAEAF_FrontGrilleGroup</linkedBodyPartsGroup>
<armorPenetrationBlunt>15.625</armorPenetrationBlunt>
</li>
</tools>
</value>
</li>

<!--Pickup Truck-->

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAEAF_CarPickup"]/statBases</xpath>
<value>
<MeleeDodgeChance>0.15</MeleeDodgeChance>
<MeleeCritChance>0.20</MeleeCritChance>
<MeleeParryChance>0.40</MeleeParryChance>
<SmokeSensitivity>0.05</SmokeSensitivity>
<ArmorRating_Sharp>4</ArmorRating_Sharp>
<ArmorRating_Blunt>6</ArmorRating_Blunt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VAEAF_CarPickup"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>head</label>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be swapped to something else, given that the vehicles don't have "heads". Something like grille? body?

Copy link
Contributor Author

@Tostov Tostov Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, nice catch. Should be fixed now, consistent with base mod.

<capacities>
<li>Blunt</li>
</capacities>
<power>35</power>
<cooldownTime>3.51</cooldownTime>
<linkedBodyPartsGroup>VAEAF_FrontGrilleGroup</linkedBodyPartsGroup>
<armorPenetrationBlunt>15</armorPenetrationBlunt>
</li>
</tools>
</value>
</li>

<!--Pickup Truck-->

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAEAF_CarForklift"]/statBases</xpath>
<value>
<MeleeDodgeChance>0.20</MeleeDodgeChance>
<MeleeCritChance>0.15</MeleeCritChance>
<MeleeParryChance>0.25</MeleeParryChance>
<SmokeSensitivity>0.05</SmokeSensitivity>
<ArmorRating_Sharp>1</ArmorRating_Sharp>
<ArmorRating_Blunt>1.5</ArmorRating_Blunt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VAEAF_CarForklift"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>22</power>
<cooldownTime>6.65</cooldownTime>
<linkedBodyPartsGroup>VAEAF_FrontGrilleGroup</linkedBodyPartsGroup>
<armorPenetrationBlunt>9</armorPenetrationBlunt>
</li>
</tools>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VAEAP_Leather_Car"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.05</StuffPower_Armor_Sharp>
</value>
</li>

</operations>
</match>
</li>

</operations>
</Operation>
</Patch>