Jump to content
  • 0

Custom Crafting


natoed

Question

Hi Folks,

Been going through the cfgCrafting.hpp, have some ideas....

Before I start adding custom items and parts, any advice would be appreciated regarding adding build-able items, vehicles and weapons.

I thought I'd ask first before going in balls deep and breaking shit as always.

cheers

natoed

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 2
  On 5/8/2017 at 3:00 AM, TheVampire said:

Looks like you would have to change a lot. Looks like crafting is handled by "epoch_code/gui/scripts/craftingv2/EPOCH_crafting_craft.sqf".

I think that is client-side so not sure you can change it.

Expand  
 
 
 
 

It is in the mission file as with all our gamemode stuff. The Client mod is more just for assets these days. @natoed For the actual buildables, it might require some additional client side configs depending on what you are wanting to add.

Link to comment
Share on other sites

  • 0

Thx for the reply Vampire

So its not just  a matter of adding the receipt of items already within epoch to the  cfgCrafting.hpp

I think I'll leave well enough alone then cause I'm great at breaking shit

cheers

natoed

Link to comment
Share on other sites

  • 0

Getting my head around it slowly, whacked in sum simple stuff to start with

	//	Custom crafting below
    class ItemKeyBlue : Part
    {
        usedIn[] = {"ItemKeyKit"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
    class ItemKeyGreen : Part
    {
        usedIn[] = {"ItemKeyKit"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
    class ItemKeyRed : Part
    {
        usedIn[] = {"ItemKeyKit"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
    class ItemKeyYellow : Part
    {
        usedIn[] = {"ItemKeyKit"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
	class ItemKeyKit : Item
	{
		recipe[] = { { "ItemKeyBlue", 1 }, { "ItemKeyGreen", 1 }, { "ItemKeyRed", 1 }, { "ItemKeyYellow", 1 }, { "ItemBriefcaseE", 1 } };
		descriptionFull = "Used in Crafting - Hotwire Kit";
		previewPosition[] = {0.798975,1,0.375};
		previewScale = 0.2;
		previewVector = -1.8;
	};
    class ItemKeyKit : Part
    {
        usedIn[] = {"ItemHotwire"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
	class ItemHotwire : Item
	{
		recipe[] = { { "ItemKeyKit", 1 }, { "ItemCables", 1 } };
		descriptionFull = "Modified to work on all vehicles as well";
		previewPosition[] = {0.798975,1,0.375};
		previewScale = 0.2;
		previewVector = -1.8;
	};
    class ItemDocument : Part
    {
        usedIn[] = {"IEDLandBig_Remote_Mag","IEDUrbanBig_Remote_Mag"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
	class HandGrenade : Part
    {
        usedIn[] = {"IEDUrbanSmall_Remote_Mag","IEDLandSmall_Remote_Mag"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
	class RPG32_HE_F : Part
    {
        usedIn[] = {"IEDUrbanSmall_Remote_Mag"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
	class RPG7_F : Part
    {
        usedIn[] = {"IEDUrbanSmall_Remote_Mag"};
        previewPosition[] = {0.800569,1,0.272473};
		previewScale = 0.2;
		previewVector = -1.8;
    };
	class IEDUrbanBig_Remote_Mag : Item
	{
		recipe[] = { { "RPG32_HE_F", 1 }, { "ItemSodaEmpty", 3 }, { "ItemEmptyTin", 3 }, { "ItemDocument", 1}, { "EpochRadio0", 1 } };
		descriptionFull = "Homemade Style IED Triggered via Radio";
		previewPosition[] = {0.798975,1,0.375};
		previewScale = 0.2;
		previewVector = -1.8;
	};
	class IEDLandBig_Remote_Mag : Item
	{
		recipe[] = { { "RPG7_F", 1 }, { "MortarBucket", 2 }, { "ItemRock", 1 },{ "ItemDocument", 1}, { "EpochRadio0", 1 } };
		descriptionFull = "Homemade Style IED Triggered via Radio";
		previewPosition[] = {0.798975,1,0.375};
		previewScale = 0.2;
		previewVector = -1.8;
	};
	class IEDUrbanSmall_Remote_Mag : Item
	{
		recipe[] = { { "HandGrenade", 3 }, { "ItemSodaEmpty", 2 }, { "ItemEmptyTin", 2 }, { "EpochRadio0", 1 } };
		descriptionFull = "Homemade Style IED Triggered via Radio";
		previewPosition[] = {0.798975,1,0.375};
		previewScale = 0.2;
		previewVector = -1.8;
	};
	class IEDLandSmall_Remote_Mag : Item
	{
		recipe[] = { { "HandGrenade", 3 }, { "MortarBucket", 1 }, { "ItemRock", 2 }, { "EpochRadio0", 1 } };
		descriptionFull = "Homemade Style IED Triggered via Radio";
		previewPosition[] = {0.798975,1,0.375};
		previewScale = 0.2;
		previewVector = -1.8;
	};

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...