-Holo-
New member
As the title says, anyone have insight on how to control/change what a thing scraps into?
I have experimented a bit with the 44magnum gun and changed it's material into a new material i added with a small modlet.
(truncated a bit, edits go in and showsup as intended in configsDump folder)
items.xml
<set xpath="/items/item[@name='gunHandgunT2Magnum44']/property[@name='Material']/@value">M44MagnumParts</set>
materials.xml
<append xpath="/materials">
<material id="M44MagnumParts">
<property name="damage_category" value="metal" />
<property name="surface_category" value="metal" />
<property name="forge_category" value="parts44Magnum"/>
<property name="Experience" value="6" />
</material>
</append>
items.xml
<append xpath="/items">
<item name="parts44Magnum">
<property name="Extends" value="gunMGT1AK47Parts"/>
<property name="CustomIcon" value="parts44Magnum"/>
</item>
</append>
All it does is remove the scrap option on the gun, but I can't figure out why
As far as I (think) figured out, the pistol item scraps into what the material it's using with the material tag, and the material inturn uses forge_category to determine what item it scraps into. (?)
Changing the magnum material to something else already in the game, it works fine, like motorparts och shotgunparts but not as soon as it supposed to use a custom material to scrap into.
Been butting my head against this for so long now i'm starting to think it's hardcoded in somehow -.-
I have experimented a bit with the 44magnum gun and changed it's material into a new material i added with a small modlet.
(truncated a bit, edits go in and showsup as intended in configsDump folder)
items.xml
<set xpath="/items/item[@name='gunHandgunT2Magnum44']/property[@name='Material']/@value">M44MagnumParts</set>
materials.xml
<append xpath="/materials">
<material id="M44MagnumParts">
<property name="damage_category" value="metal" />
<property name="surface_category" value="metal" />
<property name="forge_category" value="parts44Magnum"/>
<property name="Experience" value="6" />
</material>
</append>
items.xml
<append xpath="/items">
<item name="parts44Magnum">
<property name="Extends" value="gunMGT1AK47Parts"/>
<property name="CustomIcon" value="parts44Magnum"/>
</item>
</append>
All it does is remove the scrap option on the gun, but I can't figure out why
As far as I (think) figured out, the pistol item scraps into what the material it's using with the material tag, and the material inturn uses forge_category to determine what item it scraps into. (?)
Changing the magnum material to something else already in the game, it works fine, like motorparts och shotgunparts but not as soon as it supposed to use a custom material to scrap into.
Been butting my head against this for so long now i'm starting to think it's hardcoded in somehow -.-