Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2014-10-31 17:57        
     
Hello! I am working on my first mod, and I was wondering if you guys could help. I was following a tutorial about creating a config.ccp, but it never specified how to combine the headgear part of the config file and the uniform part. So if somebody can look at it and tell me how royally I F'ed it up for future reference, I would be eternally grateful!

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 CfgPatches {
    class us_navy {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Characters_F_BLUFOR"};
    };
};

class CfgVehicles {

    class B_Soldier_base_F;

    class usn_sailor : B_Soldier_base_F {
        _generalMacro = "B_Soldier_F";
        scope = 2;
        displayName = "USN Sailor";
        nakedUniform = "U_BasicBody";
        uniformClass = "usn_uniform";
        hiddenSelections[] = {"Camo"};
        hiddenSelectionsTextures[] = {"\us_navy\uniforms\Data\usn_uniform_co.paa"};
    };

};

class cfgWeapons {
    class Uniform_Base;
    class UniformItem;
    
    class us_navy : Uniform_Base {
        scope = 2;
        displayName = "Navy Working Uniform";
        picture = "\us_navy\uniforms\icons\us_nwu_pic.paa";
        model = "\us_navy\uniforms\usn_uniform.p3d";
        
        class ItemInfo : UniformItem {
            uniformModel = "-";
            uniformClass = "usn_uniform";
            containerClass = "Supply20";
            mass = 80; //how much it weights
        };
    };
};

class cfgWeapons {
    class ItemCore;
    class HeadgearItem;
    
    class usn_hat : ItemCore {
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Navy Working Uniform Cover";
        picture = "\us_navy\hats\icons\us_hat_pic.paa";
        model = "\us_navy\hats\usn_hat.p3d";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\us_navy\hats\Data\usn_hat.paa"};
        
        class ItemInfo : HeadgearItem {
            mass = 100;
            uniformModel = "\us_navy\hats\usn_hat.p3d";
            modelSides[] = {3, 1};
            armor = 3*0.5;
            passThrough = 0.8;
            hiddenSelections[] = {"camo"};
        };
    };
};