Jump to content
AAB_EAGLE

[MOD]Helmet Config isn't working

Recommended Posts

so i ran up into some errors when i decided to re texture some helmets and make them a mod.Here is  the config

 

 

class CfgPatches
{
    class custom_helmets
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F_BLUFOR"};
    };
};
 
class cfgWeapons
{
    class ItemCore;
    class HeadgearItem;
 
    class helmet1 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Green-Yellow Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet1.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.9;
            hiddenSelections[] = {"camo"};
        };

    class helmet2 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Black Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet2.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.9;
            hiddenSelections[] = {"camo"};
        };

    class helmet4 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Red-Yellow Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet4.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.8;
            hiddenSelections[] = {"camo"};
        };

    class helmet3 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Red-Green Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet3.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.9;
            hiddenSelections[] = {"camo"};
        };
    };
};

 

Any help is welcome and the error message says that  }s are missing

 

 

Share this post


Link to post
Share on other sites

Missing a few instances of }; to close your classes for helmet1, helmet2 and helmet4.

 

Also, you might want to change your class names to avoid potential mod conflicts. Like class AAB_custom_helmets and class AAB_helmet1.

 

 

class CfgPatches
{
    class custom_helmets
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F_BLUFOR"};
    };
};
 
class cfgWeapons
{
    class ItemCore;
    class HeadgearItem;
 
    class helmet1 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Green-Yellow Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet1.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.9;
            hiddenSelections[] = {"camo"};
        };
    };
    class helmet2 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Black Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet2.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.9;
            hiddenSelections[] = {"camo"};
        };
    };
    class helmet4 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Red-Yellow Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet4.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.8;
            hiddenSelections[] = {"camo"};
        };
    };
    class helmet3 : ItemCore
    {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Red-Green Variant";
        picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
        model = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\Helmets\data\helmet3.paa"};
 
        class ItemInfo : HeadgearItem
        {
            mass = 100;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_ballistic";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.9;
            hiddenSelections[] = {"camo"};
        };
    };
};

[/spoiler]

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

×