Jump to content

Fire Barrel Does Not Return Empty Jerry Can When Crafted


mikeloeven

Recommended Posts

The fire barrel requires a empty barrel 4 wood and a jerry can to craft.

 

i am assuming the wood is soaked in gasoline to make it burn easier and for a longer duration however one would expect that if this is the case that the crafting recipie for the crafting barrel would return the empty jerry can right off the bat however it appears to consume it completely. when you take apart something like a workbench it drops all of the componants. now even assuming the wood is consumed this does not explain how removing a fire barrel drops an empty fuel drum but NOT THE JERRY CAN.

 

i personally think that on crafting of a fire barrel the empty jerry can should be returned imediatly and i can only assume that this is a unintended bug in the recipie since aside from supplying fuel the physical can serves no purpose in the recipie.

Link to comment
Share on other sites

back in the good ole dayz, one could edit the input and output in CfgMagazines.hpp

 

you would change this

 

class ItemActions {
class Crafting
{
text = $STR_EPOCH_PLAYER_276;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemToolbox","ItemMatchbox_DZE"};
output[] = {{"ItemFireBarrel_kit",1}};
input[] = {{"ItemFuelBarrelEmpty",1},{"ItemJerryCan",1},{"PartWoodPile",4}};
};
};

to something like this...

 

class ItemActions {
class Crafting
{
text = $STR_EPOCH_PLAYER_276;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemToolbox","ItemMatchbox_DZE"};
output[] = {{"ItemFireBarrel_kit",1},{"ItemJerrycanEmpty",1}};
input[] = {{"ItemFuelBarrelEmpty",1},{"ItemJerryCan",1},{"PartWoodPile",4}};
};
};

However now the file is packed into config.bin

"maybe"       could change the

output[] = {{"ItemFireBarrel_kit",1},{"ItemJerrycanEmpty",1}};

and re-call the CfgMagazines.hpp in description ???

 

#include "fixes\CfgMagazines.hpp"

 

this would add an extra 190k to your mission size

 

not even sure if this would work...

 

 

 

 

 
Link to comment
Share on other sites

  • 6 months later...

too easy ;P

 

ake a custom player_craftItem.sqf and redirect it in the compiles.sqf

 

search for:

_selectedRecipeOutput = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "output"); 

and replace it with

 

	_selectedRecipeOutput = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "output");
	if (_item == "ItemFuelBarrelEmpty") then {
		_selectedRecipeOutput = _selectedRecipeOutput + ["ItemJerrycanEmpty"];
	};

done.

 

as you can see you can easy edit every item in there.

Add new items in there which fits your logic in the output or input.

Same thing with remove, just change the + into a - and this way you can reduce arrays

 

https://community.bistudio.com/wiki/Array

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...