misc.xml received a structural element rename.
Key Changes
- Element rename: All
<hold_type ... />→<hold ... />(over 80 entries) - Attribute replacement:
newmodel="false"was removed from each hold and replaced withcarry="N". N is the Weapon Carry Type:- 0 Unarmed / 1 1HMelee / 2 2HWideMelee / 3 2HNarrowMelee / 4 1HPistol / 5 2HPistol / 6 2HRifle / 7 2HBow / 8 RocketLauncher / 9 1HGeneric / 10 2HGeneric
- Examples: id=2 (clubs)→carry=1, id=5 (shotgun)→carry=6, id=27 (wooden bow)→carry=7
- New hold added:
<hold id="88" carry="10" ... />(the comment reads “88 chicken” — a hold type for carrying chickens, new in V3.0) - Numeric values such as
ray_castremain unchanged. Trigger effects (controller vibration) only had their comments reformatted; the values are unchanged
Impact on MODs
- If you override or append via xpath using the
hold_typeelement name, it will no longer match and will be silently disabled because the element name has changed tohold. You’ll need to fix your xpath fromhold_typetohold, and follow the removal ofnewmodeland the addition ofcarry. - If your items merely reference the ID, as in
<property name="HoldType" value="N"/>, there is no impact since the ID numbers are preserved (there’s no problem as long as you haven’t edited misc.xml itself).
Reference: Example Diff
- <hold_type id="2" newmodel="false" ray_cast="0.40" ... two_handed="true" /> <!-- 2 clubs -->
+ <hold id="2" carry="1" ray_cast="0.40" ... two_handed="true" /> <!-- 2 clubs -->
+ <hold id="88" carry="10" ray_cast="0" ... two_handed="true" /> <!-- 88 chicken -->
* Based on investigation immediately after applying the experimental version (equivalent to B252).
Related: List of MOD-making articles