piggd Smelt Scrap Metal2.1

dayzpiggd

New Member
*****************************************
* Mod Name: piggd Smelt Scrap Metal *
* Author: piggd *
* Email: [email protected] *
* Version: 2.1 *
* Date: 04/27/2013 *
*****************************************

Information:
I really hate farming and having to dump 50-75% of the items I gather outside the building because they have no practical use in the game or I have too many.
Really how many road flares or cans of pepsi do you really need? So this mod will you to turn your trash into useful items.
This mod will allow you to make multiple materials into other useful items. It requires fileed canteen of water (boiled or unboiled), tool box and a fire for all receipes.

All Required:
Camp Fire
Tool Box
Filled Water Canteen ( boiled or unboiled)

Engine Parts
Required: 3 Scrap Meetal
Item: Producted: Engine Parts, Unfilled Water Canteen

Fuel Tank
Required: 2 Scrap Meetal
Item: Producted: Fuel Tank, Unfilled Water Canteen

Heat Pack
Required: 3 Chem Sticks or Road Flares
Item: Producted: Heat Pack, Unfilled Water Canteen

Jerry Can
Required: 1 Scrap Metal
Item: Producted: Unfilled Jerry Can, Unfilled Water Canteen

Main Rotary Parts
Required: 3 Scrap Meetal
Item: Producted: Main Rotary Parts, Unfilled Water Canteen

Sandbags
Required: 1 Heat Pack and 5 Bandages
Item: Producted: Sandbags, Unfilled Water Canteen

Scrap Metal
Required: 6 empty Soda or Tin cans
Item: Producted: Scrap Metal, Unfilled Water Canteen

Tank Trap
Required: 1 Scrap Metal
Item: Producted: Tank Trap, Unfilled Water Canteen

Tent
Required: 1 Scrap Metal and 3 Heat Packs
Item: Producted: Tent, Unfilled Water Canteen

Wheel
Required: 1 Scrap Metal, 3 Heat Packs
Item: Producted: Wheel, Unfilled Water Canteen

Wind Screen Glass
Required: 6 Jack Daniel Whisket Bottles
Item: Producted: Wind Screen Glass, Unfilled Water Canteen

Wire Kit
Required: 1 Scrap Metal
Item: Producted: Wire Kit, Unfilled Water Canteen

Change log ver 1.0 - Inital Script creation
Change log ver 2.1 - Created a new smelt folder. rename smelt.sqf and move it into the smelt folder. Created new scripts to smelt Engine Parts, Main Rotary Parts, Fuel Tank,
Wind Screen Glass, Wheel, and Unfilled Jerry Can.
Change log ver 2.1 - Added new scripts to smelt heat packs, tents, sandbags, tank traps and wire kits.

https://github.com/piggd/piggdSmeltScrapMetal2.1.git
 
a fix has been done for the scrap metal on the version 2.0 page by muddr
had some issues installing this from the github link and did some investigating.

This is all from the github link from the last commit.(April 27, 2013)
  1. In every file in the smelt folder there is an extra }; at the end of the file which causes errors in the client's rpt file.
  2. In smelt\smelt_scrapmetal.sqf line 8 & 9 should be s_player_smelt_scrapmetal and not s_player_smelt.
  3. to fix the issue with empty Coke, Pepsi, and Mountain Dew cans. this is the modified file I changed to get to work. - http://pastebin.com/2TVSuNM0 - Changes listed below
  4. You can exploit this to get an extra water bottle if your using an non boiled water bottle. Pick any smelt options(with having the needed items) then quickly pick the 'boil water' option.
Changes to file in #3. (all line numbers are of the modified file)
  • Added lines 15 - 18.
  • modified line 20.
  • Added lines 67 - 87.
I also don't see the reason for the Boil Menu Fix change that you have in fn_selfActions.sqf. That will make the boil water option always visible whether you have the correct items or not in your inventory.

is now working on my server
 
I changed the code in the scrap metal to match the same framework I use in heat pack. I added the Chernas empty can items. Thank you Timmy for the Class name codes and your original file. Let me know if you see any more issues.
 
Back
Top