Chris Dunaway Posted May 27, 2020 Share Posted May 27, 2020 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 Link to comment Share on other sites More sharing options...
mr.devolver Posted May 27, 2020 Share Posted May 27, 2020 Link to comment Share on other sites More sharing options...
meganoth Posted May 27, 2020 Share Posted May 27, 2020 Moved to "Discussion and Requests" Link to comment Share on other sites More sharing options...
Numberz Posted June 1, 2020 Share Posted June 1, 2020 On 5/27/2020 at 1:06 PM, Chris Dunaway said: 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%). Link to comment Share on other sites More sharing options...
-Holo- Posted September 29, 2020 Share Posted September 29, 2020 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) Link to comment Share on other sites More sharing options...
saminal Posted October 2, 2020 Share Posted October 2, 2020 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.