Jump to content
CPT J. Shaw

Inventory/Object Creation (Mod)

Recommended Posts

Hello,

 

I need some help with the config for a small mod I've been working on recently. I'm trying to create a few items based off of some static Arma objects/props that are already in the base game. I hope that this object can be put in a units inventory, as well as be placed by Zeus or in EDEN, with the object able to be picked up by a player.

 

This is my first mod from "scratch" and it may be not possible to accomplish, or I forgot to add something simple.

 

Here is what I have so far:

class CfgPatches
{
	class ODA_intel
	{
		units[]={};
		weapons[]=
		{
			"Intel_Item_Base",
			"Intel_VideoCamera",
			"Intel_FileDoc",
			"Intel_FilePic",
			"Intel_Map",
			"Intel_Laptop",
			"Intel_MobileO",
			"Intel_MobileN",
			"Intel_Walkie"
		};
		requiredVersion=0.1;
		version=1;
		requiredAddons[]=
		{
			"A3_Characters_F",
			"A3_Weapons_F",
		};
		author[]=
		{
			"J. Shaw [2/5SFG(A)]"
		};
		fileName="ODA_intel.pbo";
	};
};
class cfgWeapons
{
	class ItemCore;
	class InventoryItem_Base_F;
	class Intel_Item_Base: ItemCore
	{
		scope=1;
		access=3;
		displayName="-";
		detectRange=-1;
		simulation="ItemMineDetector";
		useAsBinocular=0;
		type=4096;
		picture="";
		descriptionShort="";
		class ItemInfo: InventoryItem_Base_F
		{
			mass=1;
		};
	};
	class Intel_VideoCamera: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="Video Camera";
		model = "\A3\structures_f\Items\Electronics\HandyCam_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="Video Camera";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
	class Intel_FileDoc: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="File of Documents";
		model = "\A3\structures_f\Items\Documents\File1_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="File full of documents";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
	class Intel_FilePic: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="File of Pictures";
		model = "\A3\structures_f\Items\Documents\FilePhotos_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="File full of pictures";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
	class Intel_Map: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="Sleeved Map";
		model = "\A3\structures_f\Items\Documents\Map_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="Sleeved map with marked locations";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
	class Intel_Laptop: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="Laptop";
		model = "\A3\structures_f\Items\Electronics\Laptop_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="Laptop";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
	class Intel_MobileO: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="Old Cellphone";
		model = "\A3\structures_f\Items\Electronics\MobilePhone_old_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="Old cellphone, like the one Sierra had";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
	class Intel_MobileN: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="New Cellphone";
		model = "\A3\structures_f\Items\Electronics\MobilePhone_smart_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="New cellphone, like the one Sierra has trouble using";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
	class Intel_Walkie: Intel_Item_Base
	{
		scope=2;
		scopeCurator=2;
		displayName="Walkie Talkie";
		model = "\A3\structures_f\Items\Electronics\PortableLongRangeRadio_F.p3d";
		picture="\ODA_intel\cpccoy_ca.paa";
		descriptionShort="Radio Shack style walkie talkie";
		editorSubcategory="EdSubcat_Office";
		class ItemInfo: ItemInfo
		{
			mass=1;
		};
	};
};

As it currently stands, the mod throws no errors when I run it, and the game loads without issue, however it is not visible in the EDEN, or Zeus.

 

Any help is greatly appreciated.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×