Jump to content
Richards.D

Custom Headgear doesn't work in Zeus?

Recommended Posts

Hello all:

 

I did a mod a long time ago that adds some simple re-textured Berets. The model works completely fine, and shows up in the Virtual Arsenal.

 

Unfortunately, it never shows in Zeus when you go to create a custom ammo crate. (The menu where you click through the tabs on a custom crate). This means mid mission, a Zeus cannot add it.

 

Any thoughts?

 

Config.CPP

 


#define private        0
#define protected        1
#define public        2

class CfgPatches {
    class DAR_Stetson {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {};
    };
};

class CfgVehicleClasses {
    class DAR_Stetson {
        displayName = "US Army Headwear";
    };
};

class CfgVehicles
{
    class B_Soldier_base_F;
};

class cfgWeapons {
    class ItemCore;    // External class reference
    class InventoryItem_Base_F;    // External class reference
    class HeadgearItem;    // External class reference
    
    class DAR_Stetson : ItemCore {
        scope = public;
        weaponPoolAvailable = 1;
        displayName = "Cav Stetson";
        author = "Richards.D";
        picture = "\DAR_Stetson\UI\icon_h_stetson_ca.paa";
        model = "\DAR_Stetson\DAR_Stetson";
        hiddenSelectionsTextures[] = {"\DAR_Stetson\Data\Stetson_co.paa"};
        hiddenSelections[] = {"Camo"};
        
        class ItemInfo : HeadgearItem {
            mass = 5;
            uniformmodel = "\DAR_Stetson\DAR_Stetson";
            modelSides[] = {3, 1};
            armor = 0;
            passThrough = 0.95;
            hiddenSelectionsTextures[] = {"\DAR_Stetson\Data\Stetson_co.paa"};
            hiddenSelections[] = {"Camo"};
        };
    };
};

Share this post


Link to post
Share on other sites

You need to tell the game you want it available in Zeus. https://community.bistudio.com/wiki/Arma_3_Characters_And_Gear_Encoding_Guide

 

        scope = 2;                          // 2 = class is available in the editor; 1 = class is unavailable in the editor, but can be accessed via a macro; 0 = class is unavailable (and used for inheritance only).
        scopeCurator = 2;                   // 2 = class is available in Zeus; 0 = class is unavailable in Zeus.
        scopeArsenal = 2;                   // 2 = class is available in the Virtual Arsenal; 0 = class is unavailable in the Virtual Arsenal.

 

 

This might be a good time to update the whole config in fact :)

 

 

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

×