Jump to content
Styles2304

Custom Vest Appears in ACE Arsenal but not BI Arsenal

Recommended Posts

I cobbled together a rebreather that works on land from different posts across the internet. It works if I manually add the vest with a script and it is visible in the ACE Arsenal. However, I can't see it in the BI Arsenal. I stumbled across the following link:

I made what changes I could determine had been made in that post but my vest is still not visible.

Here is my cfg:

 

Spoiler

enum {
	destructengine = 2,
	destructdefault = 6,
	destructwreck = 7,
	destructtree = 3,
	destructtent = 4,
	stabilizedinaxisx = 1,
	stabilizedinaxesxyz = 4,
	stabilizedinaxisy = 2,
	stabilizedinaxesboth = 3,
	destructno = 0,
	stabilizedinaxesnone = 0,
	destructman = 5,
	destructbuilding = 1
};

class DefaultEventhandlers;
class CfgPatches {
	class ST2304_HALO_Config {
		units[] = {};
		weapons[] = { "V_ST2304_HALO" };
		requiredVersion = 0.1;
		requiredAddons[] = {
			"A3_Characters_F",
			"A3_Weapons_F"
		};
	};
};
class cfgWeapons {
	class ItemCore;
	class InventoryItem_Base_F;
	class HeadgearItem;
	class Uniform_Base;
	class UniformItem;
	class Vest_Camo_Base;
	class Vest_NoCamo_Base;
	class VestItem;

	class V_ST2304_HALO: Vest_Camo_Base {
		access = 3;
		scope = 2;
		scopeArsenal = 2;
		canShootInWater = 1;
		disposableWeapon = 0;
		selectionFireAnim = "zasleh";
		type = 701;
		nameSound = "";
		displayName = "HALO Rebreather";
		author = "Styles2304";
		picture = "\A3\characters_f\Data\UI\icon_V_RebreatherB_CA.paa";
		model = "\A3\Characters_F\Common\equip_rebreather";
		hiddenSelections[] = { "camo" };
		hiddenSelectionsTextures[] = {
			"\A3\characters_f\common\data\diver_equip_nato_co.paa",
			"\A3\characters_f\data\visors_ca.paa"
		};
		hiddenUnderwaterSelections[] = { "hide" };
		hiddenUnderwaterSelectionsTextures[] = {
			"\A3\characters_f\common\data\diver_equip_nato_co.paa",
			"\A3\characters_f\data\visors_ca.paa"
		};
		class ItemInfo: VestItem {
			uniformModel = "\A3\Characters_F\Common\equip_rebreather";
			vestType = "Rebreather";
			containerClass = "Supply0";
			mass = 80;
			armor = "20";
			passThrough = 1;
			hiddenSelections[] = { "camo" };
		};
	};
};

 

 

Obviously there is something here I'm missing... if someone else can see what it is, would you be so kind as to point it out so I can quit ripping out my hair?

 

Share this post


Link to post
Share on other sites

doesn't vest also need cfgVehicles entry?

 

e.g. for creating cfgweapons vest:

 

Quote

class V_PlateCarrierIA1_BLKl: V_PlateCarrierIA1_dgtl
    {    
        author="LordFrith";
        displayName="GA Carrier lite (Black)"
        scope=2;
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[]=
        {
            "\LF_AAFreplacer_F\data\LF_equip_AAFblk_vest.paa"
        };
    };

 

i need to also add this in cfg vehicles:

 

Quote

class Vest_V_PlateCarrierIA1_BLKl: Vest_Base_F
    {
        scope=2;
        scopeCurator=2;
        displayName="GA Carrier lite (Black)";
        author="LordFrith";
        editorCategory="EdCat_Equipment";
        editorSubcategory="EdSubcat_Vests";
        vehicleClass="ItemsVests";
        class TransportItems
        {
            class V_PlateCarrierIA1_BLKl
            {
                name="V_PlateCarrierIA1_BLKl";
                count=1;
            };
        };
    };

 

Share this post


Link to post
Share on other sites

Your ItemInfo subclass needs to contain the "type" entry and have it set to 701.

I can't see that in your class. It should be included from the inheritance. Best recheck in configViewer if that entry is there.

Also I haven't seen "access = 3" anywhere yet. Don't know if that could cause a problem though.

Missing CfgVehicles class I also don't know. Shouldn't cause a problem afaik.

Share this post


Link to post
Share on other sites

be aware also that post you're quoting is from 2013 and configs have changed a bit, your 'armor' and 'passthrough' have been replaced by body part hitpoints, see this link for more up to date example

 

 

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

×