Forum Jump :

Author Message

Dogma  



Posts: 2
Rank:


Level: Member

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

 
#1 Posted at 2011-02-15 06:22        
     
I am one of the developers for 21cw an online tournament. We started back in the BF1942 days through BF2, and now we're moving onto Arma2.

Onto my question, I know that if I want to change assignments like what weapons, ammo, and magazines I need to make a new config file and pbo it up. Here's an example of a modified A10 that one of our guys made:



enum {
};

class cfgPatches 
{

    class 21CW_A10 
    {
        units[] = { };
        weapons[] = { };
        requiredVersion = 0.100000;
        requiredAddons[] = {
                "CAA10", "CAAir", "CAAir2", "CAAir3", "CAAir2_C130J", "CAWeapons", "CAAir_E_A10"
        };
    };
};

class CfgAddons 
{

    class PreloadAddons 
    {

        class 21CW_A10 
        {
            list[] = {
                    "21CW_A10"
            };
        };
    };
};


class CfgFactionClasses  {

    class 21CW  {
        displayName = "21CW";
        priority = 1;
        side = 1;
    };
};

class CfgVehicleClasses
{
    class 21CWAir
    {
        displayName = "Air";
    };
};

class CfgAmmo 
{

    class B_30mmA10_AP ;

    class 21CW_B_30mmA10_AP : B_30mmA10_AP
    {
        hit = 69;
    };
};

class cfgMagazines 
{



    class 1350Rnd_30mmAP_A10 ;

    class 21CW_750Rnd_30mmAP_A10 : 1350Rnd_30mmAP_A10
    {
        scope = 2;
        count = 750;
    };
};

class cfgWeapons 
{

    class GAU8 ;

    class 21CW_GAU8 : GAU8
    {
        displayName = "30mm";
        cursor = "\ca\Weapons\Data\clear_empty";
        cursorAim = "\ca\Weapons\Data\clear_empty";
        magazines[] = {
                "21CW_750Rnd_30mmAP_A10"
        };
    };

    class BombLauncherA10 ;
};

class cfgVehicles 
{

    class A10_US_EP1 ;

    class 21CW_A10 : A10_US_EP1
    {

        faction = "21CW";
        vehicleClass="21CWAir";
        displayName = "21CW A-10";
        scope = 2;
        weapons[] = {
                "21CW_GAU8", "BombLauncherA10", "SidewinderLaucher_AH1Z"
        };
        magazines[] = {
                        "21CW_750Rnd_30mmAP_A10","4Rnd_GBU12","2Rnd_Sidewinder_AH1Z"
        };
        commanderCanSee = "2+4+16";
        gunnerCanSee = "2+4+16+32";
        driverCanSee = "2+4+16";
    };
    
};

But if I wanted to change, say the speed of the UAZ & HMMWV or the cargo space, can I make a shortened config like this. Or do I need to pull ALL the relevant data to the vehicles out of the default Arma2 vehicles config.bin and put in a config.bin with the vehicle renamed and then pbo it up in my addon? As if I was making a completely new model, just leaving it pointing back to the original locations for sounds, animations, textures, etc.


I hope that makes sense.

-Dogma

This post was edited by Foxhound (2011-02-15 07:28, ago)


Author Message


Posts: 63
Rank:


Level: Member

Country: nz
Location: Auckland
Occupation: Student
Age: 42
In-game name: Джейк Вэдинг

 
#2 Posted at 2011-02-18 03:35        
     
yep, you can do it exactly the same why as that A-10 you have there

All you need is what the Original unit is, and then the lines of code that are different to the original


Advertisement


Author Message


Posts: 312
Rank:


Level: Member

Country: us
Location: Casper, Wyoming
Occupation: Digital Artist / Graphic Designer
Age: 27
In-game name: C. Cunico / WyteOut

 
#3 Posted at 2011-02-18 03:58        
     
where would you find those files at?

My Youtube for noobie scripters: http://www.youtube.com/user/WyteOutAgain

Author Message

Dogma  



Posts: 2
Rank:


Level: Member

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

 
#4 Posted at 2011-02-18 05:56        
     
Which files are you asking about?

Added 1 minute later:

Oh, and thanks Jake for the help.






Tags: Config