• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Returns when scrapping items

Chris Dunaway

New member
What determines what is returned when you scrap items (not blocks)?

For example, if I scrap a pistol, how can I, through a mod, change what I get back when scrapping a pistol? What config files control this? Items.xml does not seem to show this for the pistol (unless I just missed it).

Thanks
 
GBXUytt.png


 
What determines what is returned when you scrap items (not blocks)?

For example, if I scrap a pistol, how can I, through a mod, change what I get back when scrapping a pistol? What config files control this? Items.xml does not seem to show this for the pistol (unless I just missed it).

Thanks


The material of the item that you are scrapping determines what you will get back from scrapping.

For instance, a pistol:

<property name="Material" value="MHandGunParts"/> <property name="Weight" value="4"/>

Scrapping gives back, I think, 75% of the material. So with a weight of 4, the pistol will give 3 Handgun Parts.

You need to look in materials.xml to understand how "MHandGunParts" is translated.

If the item doesn't have a weight, then the type of material and the amount that you acquire by scrapping is obtained by multiplying the first ingredient in it's recipe (recipes.xml) by the scrapping percentage (75%).

 
Last edited by a moderator:
Old thread, but asking anyways. Would it be somehow possible to have itesm like the gun scrap into one of random parts from the materials?

(eg, parts, barrel, magazine, stock if those were defined items)

 
It's not possible to have multiple options for results from scrapping, no. Items can only be made of one Material, and Materials can only be made of one item. I played around with this for a while trying to get bullets to scrap down to bullet tips and casings, to break down and reuse. No dice.

 
Back
Top