class CfgPatches
{
    class braf_structures_ammoboxes
    {
        author = "BRAF Team";
        units[] = {};
        weapons[] = {};
        requiredAddons[] =
            {
                "A3_Characters_F",
                "A3_Data_F",
                "A3_Characters_F_Heads",
                "A3Data",
                "A3_Characters_F_BLUFOR",
                "A3_Characters_F_Proxies",
                "braf_main",
                "braf_weapons_assault_rifles",
                "braf_weapons_sniper_rifles",
                "braf_weapons_core",
                "braf_weapons_pistols",
                "braf_weapons_launchers",
                "braf_weapons_scopes",
                "braf_weapons_machine_guns",
                "braf_weapons_muzzle",
                "braf_weapons_shotguns",
                "braf_weapons_smg",
                "braf_weapons_sniper_rifles",
        };
        requiredVersion = 0.1;
    };
};

class CfgEditorCategories
{
    class braf_buildings_objects // Category class, you point to it in editorCategory property
    {
        displayName = "Structures (BRAF)"; // Name visible in the list
    };
};

class CfgEditorSubcategories
{
    class braf_ammoboxes // Category class, you point to it in editorSubcategory property
    {
        displayName = "Supplies"; // Name visible in the list
    };
};

class CfgVehicles
{
    class NATO_Box_base;
    class Box_NATO_Wps_F;
    class braf_crate_base_box : NATO_Box_Base
    {
        _generalMacro = "braf_crate_weapon_base_box";
        scope = 0;
        author = "BRAF Team";
        mapSize = 1.8099999;
        class SimpleObject
        {
            eden = 1;
            animate[] = {};
            hide[] = {};
            verticalOffset = 0.189;
            verticalOffsetWorld = 0;
            init = "''";
        };
        editorPreview = "";
        editorCategory = "braf_buildings_objects";
        editorSubcategory = "braf_ammoboxes";
        displayName = "Base BRAF Crate";
        model = "";
        icon = "iconCrateWpns";
        maximumLoad = 3500;
        class TransportMagazines
        {
        };
        class TransportWeapons
        {
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_fal : braf_crate_base_box
    {
        _generalMacro = "braf_crate_weapon_fal";
        scope = 2;
        displayName = "Weapon crate (FAL)";
        editorPreview = "braf\braf_structures_ammoboxes\data\ammo_crate\editorpreview.paa";
        model = "braf\braf_structures_ammoboxes\braf_mediumbox.p3d";
        class TransportMagazines
        {
            class _xx_braf_20Rnd_762x51
            {
                magazine = "braf_20Rnd_762x51";
                count = 10;
            };
            class _xx_braf_20Rnd_762x51_red
            {
                magazine = "braf_20Rnd_762x51_red";
                count = 10;
            };
            class _xx_16Rnd_9x21_Mag
            {
                magazine = "16Rnd_9x21_Mag";
                count = 8;
            };
        };
        class TransportWeapons
        {
            class _xx_Braf_md1a1
            {
                weapon = "Braf_md1a1";
                count = 4;
            };
            class _xx_Braf_ParaFal
            {
                weapon = "Braf_ParaFal";
                count = 4;
            };
            class _xx_braf_PT92
            {
                weapon = "braf_PT92";
                count = 4;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_ia2 : braf_crate_weapon_fal
    {
        _generalMacro = "braf_crate_weapon_ia2";
        displayName = "Weapon crate (IA2)";
        class TransportMagazines
        {
            class _xx_braf_30Rnd_556x45
            {
                magazine = "braf_30Rnd_556x45";
                count = 10;
            };
            class _xx_braf_30Rnd_556x45_red
            {
                magazine = "braf_30Rnd_556x45_red";
                count = 10;
            };
            class _xx_16Rnd_9x21_Mag
            {
                magazine = "16Rnd_9x21_Mag";
                count = 8;
            };
        };
        class TransportWeapons
        {
            class _xx_Braf_IA2
            {
                weapon = "Braf_IA2";
                count = 10;
            };
            class _xx_braf_PT92
            {
                weapon = "braf_PT92";
                count = 4;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_mag : braf_crate_weapon_fal
    {
        _generalMacro = "braf_crate_weapon_mag";
        displayName = "Weapon crate (MAG)";
        class TransportMagazines
        {
            class _xx_Braf_75Rnd_mag58_mag
            {
                magazine = "Braf_75Rnd_mag58_mag";
                count = 10;
            };
            class _xx_Braf_75Rnd_mag58_mag_Tracer_red
            {
                magazine = "Braf_75Rnd_mag58_mag_Tracer_red";
                count = 10;
            };
        };
        class TransportWeapons
        {
            class _xx_braf_mag
            {
                weapon = "braf_mag";
                count = 8;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_minimi : braf_crate_weapon_fal
    {
        _generalMacro = "braf_crate_weapon_minimi";
        displayName = "Weapon crate (MINIMI)";
        class TransportMagazines
        {
            class _xx_200Rnd_556x45_Box_F
            {
                magazine = "200Rnd_556x45_Box_F";
                count = 10;
            };
            class _xx_200Rnd_556x45_Box_Red_F
            {
                magazine = "200Rnd_556x45_Box_Red_F";
                count = 10;
            };
        };
        class TransportWeapons
        {
            class _xx_braf_Minimi
            {
                weapon = "braf_Minimi";
                count = 8;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_colt_m4a1 : Box_NATO_Wps_F
    {
        _generalMacro = "braf_crate_weapon_colt_m4a1";
        author = "BRAF Team";
        displayName = "Weapon crate (Colt M4A1)";
        editorCategory = "braf_buildings_objects";
        editorSubcategory = "braf_ammoboxes";
        class TransportMagazines
        {
            class _xx_braf_30Rnd_556x45
            {
                magazine = "braf_30Rnd_556x45";
                count = 10;
            };
            class _xx_braf_30Rnd_556x45_red
            {
                magazine = "braf_30Rnd_556x45_red";
                count = 10;
            };
        };
        class TransportWeapons
        {
            class _xx_Braf_m4a1
            {
                weapon = "Braf_m4a1";
                count = 8;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_colt_m16a2 : braf_crate_base_box
    {
        _generalMacro = "braf_crate_weapon_colt_m16a2";
        scope = 2;
        displayName = "Weapon crate (M16A2)";
        editorPreview = "braf\braf_structures_ammoboxes\data\ammo_crate\editorpreview.paa";
        model = "braf\braf_structures_ammoboxes\braf_AmmoBox.p3d";
        class TransportMagazines
        {
            class _xx_braf_30Rnd_556x45
            {
                magazine = "braf_30Rnd_556x45";
                count = 10;
            };
            class _xx_braf_30Rnd_556x45_red
            {
                magazine = "braf_30Rnd_556x45_red";
                count = 10;
            };
            class _xx_16Rnd_9x21_Mag
            {
                magazine = "16Rnd_9x21_Mag";
                count = 8;
            };
        };
        class TransportWeapons
        {
            class _xx_Braf_m16a2
            {
                weapon = "Braf_m16a2";
                count = 10;
            };
            class _xx_braf_PT92
            {
                weapon = "braf_PT92";
                count = 4;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_hk33 : braf_crate_weapon_colt_m16a2
    {
        _generalMacro = "braf_crate_weapon_hk33";
        displayName = "Weapon crate (HK 33)";
        class TransportMagazines
        {
            class _xx_braf_30Rnd_556x45_HK
            {
                magazine = "braf_30Rnd_556x45_HK";
                count = 20;
            };
            class _xx_16Rnd_9x21_Mag
            {
                magazine = "16Rnd_9x21_Mag";
                count = 8;
            };
        };
        class TransportWeapons
        {
            class _xx_braf_hk33
            {
                weapon = "braf_hk33";
                count = 10;
            };
            class _xx_braf_PT92
            {
                weapon = "braf_PT92";
                count = 4;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_sig551 : braf_crate_weapon_colt_m16a2
    {
        _generalMacro = "braf_crate_weapon_sig551";
        displayName = "Weapon crate (Sig 551)";
        class TransportMagazines
        {
            class _xx_braf_sig_556x45
            {
                magazine = "braf_sig_556x45";
                count = 15;
            };
            class _xx_braf_sig_556x45_Mix_red
            {
                magazine = "braf_sig_556x45_Mix_red";
                count = 5;
            };
            class _xx_16Rnd_9x21_Mag
            {
                magazine = "16Rnd_9x21_Mag";
                count = 8;
            };
        };
        class TransportWeapons
        {
            class _xx_braf_sig_551
            {
                weapon = "braf_sig_551";
                count = 10;
            };
            class _xx_braf_PT92
            {
                weapon = "braf_PT92";
                count = 4;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_igla : braf_crate_base_box
    {
        _generalMacro = "braf_crate_weapon_igla";
        scope = 2;
        model = "braf\braf_structures_ammoboxes\braf_launcherbox.p3d";
        displayName = "Launcher crate (IGLA)";
        class TransportMagazines
        {
            class _xx_braf_Igla_missile
            {
                magazine = "braf_Igla_missile";
                count = 10;
            };
        };
        class TransportWeapons
        {
            class _xx_braf_Igla
            {
                weapon = "braf_Igla";
                count = 2;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_AT4 : braf_crate_weapon_igla
    {
        _generalMacro = "braf_crate_weapon_AT4";
        displayName = "Launcher crate (AT4)";
        class TransportMagazines
        {
        };
        class TransportWeapons
        {
            class _xx_braf_launch_alac
            {
                weapon = "braf_launch_alac";
                count = 4;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_weapon_carl_gustav : braf_crate_weapon_igla
    {
        _generalMacro = "braf_crate_weapon_carl_gustav";
        model = "braf\braf_structures_ammoboxes\braf_launcherbox.p3d";
        displayName = "Launcher crate (Carl Gustav)";
        class TransportMagazines
        {
            class _xx_MRAWS_HEAT_F
            {
                magazine = "MRAWS_HEAT_F";
                count = 8;
            };
        };
        class TransportWeapons
        {
            class _xx_braf_Gustav
            {
                weapon = "braf_Gustav";
                count = 2;
            };
        };
        class TransportItems
        {
        };
    };
    class braf_crate_large_explosives : braf_crate_weapon_fal
    {
        _generalMacro = "braf_crate_large_explosives";
        displayName = "Explosive crate";
        class TransportItems
        {
            class _xx_ToolKit
            {
                name = "ToolKit";
                count = 1;
            };
            class _xx_MineDetector
            {
                name = "MineDetector";
                count = 1;
            };
        };
        class TransportMagazines
        {
            class _xx_ATMine_Range_Mag
            {
                magazine = "ATMine_Range_Mag";
                count = 5;
            };
            class _xx_APERSMine_Range_Mag
            {
                magazine = "APERSMine_Range_Mag";
                count = 5;
            };
            class _xx_APERSBoundingMine_Range_Mag
            {
                magazine = "APERSBoundingMine_Range_Mag";
                count = 5;
            };
            class _xx_SLAMDirectionalMine_Wire_Mag
            {
                magazine = "SLAMDirectionalMine_Wire_Mag";
                count = 5;
            };
            class _xx_APERSTripMine_Wire_Mag
            {
                magazine = "APERSTripMine_Wire_Mag";
                count = 5;
            };
            class _xx_ClaymoreDirectionalMine_Remote_Mag
            {
                magazine = "ClaymoreDirectionalMine_Remote_Mag";
                count = 5;
            };
            class _xx_DemoCharge_Remote_Mag
            {
                magazine = "DemoCharge_Remote_Mag";
                count = 5;
            };
            class _xx_SatchelCharge_Remote_Mag
            {
                magazine = "SatchelCharge_Remote_Mag";
                count = 5;
            };
        };
    };

    class braf_crate_ammo_556_stanag : braf_crate_weapon_fal
    {
        _generalMacro = "braf_crate_weapon_fal";
        displayName = "Ammo crate (5,56mm STANAG)";
        class TransportMagazines
        {
            class _xx_braf_30Rnd_556x45
            {
                magazine = "braf_30Rnd_556x45";
                count = 30;
            };
            class _xx_braf_30Rnd_556x45_red
            {
                magazine = "braf_30Rnd_556x45_red";
                count = 10;
            };
        };
        class TransportWeapons
        {
        };
        class TransportItems
        {
        };
    };
    class braf_crate_ammo_556_hk33 : braf_crate_ammo_556_stanag
    {
        _generalMacro = "braf_crate_ammo_556_hk33";
        displayName = "Ammo crate (5,56mm HK Mags)";
        class TransportMagazines
        {
            class _xx_braf_30Rnd_556x45_HK
            {
                magazine = "braf_30Rnd_556x45_HK";
                count = 30;
            };
            class _xx_braf_30Rnd_556x45_HK_Mix_red
            {
                magazine = "braf_30Rnd_556x45_HK_Mix_red";
                count = 10;
            };
        };
    };
    class braf_crate_ammo_556_sig551 : braf_crate_ammo_556_stanag
    {
        _generalMacro = "braf_crate_ammo_556_sig551";
        displayName = "Ammo crate (5,56mm SigSauer Mags)";
        class TransportMagazines
        {
            class _xx_braf_sig_556x45
            {
                magazine = "braf_sig_556x45";
                count = 30;
            };
            class _xx_braf_sig_556x45_Mix_red
            {
                magazine = "braf_sig_556x45_Mix_red";
                count = 10;
            };
        };
    };
    class braf_crate_ammo_762 : braf_crate_ammo_556_stanag
    {
        _generalMacro = "braf_crate_ammo_762";
        displayName = "Ammo crate (7,62mm)";
        class TransportMagazines
        {
            class _xx_braf_20Rnd_762x51
            {
                magazine = "braf_20Rnd_762x51";
                count = 30;
            };
            class _xx_braf_20Rnd_762x51_red
            {
                magazine = "braf_20Rnd_762x51_red";
                count = 10;
            };
        };
    };
    class braf_crate_ammo_762_mag : braf_crate_ammo_556_stanag
    {
        _generalMacro = "braf_crate_ammo_762_mag";
        displayName = "Ammo crate (7,62mm belts)";
        class TransportMagazines
        {
            class _xx_Braf_75Rnd_mag58_mag
            {
                magazine = "Braf_75Rnd_mag58_mag";
                count = 12;
            };
            class _xx_Braf_75Rnd_mag58_mag_Tracer_red
            {
                magazine = "Braf_75Rnd_mag58_mag_Tracer_red";
                count = 5;
            };
        };
    };
    class braf_crate_ammo_556_minimi : braf_crate_ammo_556_stanag
    {
        _generalMacro = "braf_crate_ammo_556_minimi";
        displayName = "Ammo crate (5,56mm boxes)";
        class TransportMagazines
        {
            class _xx_200Rnd_556x45_Box_F
            {
                magazine = "200Rnd_556x45_Box_F";
                count = 12;
            };
            class _xx_200Rnd_556x45_Box_Tracer_Red_F
            {
                magazine = "200Rnd_556x45_Box_Tracer_Red_F";
                count = 5;
            };
        };
    };

    class braf_crate_ammo_small_556_stanag : braf_crate_base_box
    {
        _generalMacro = "braf_crate_ammo_small_mag";
        scope = 2;
        editorPreview = "";
        displayName = "Small Ammo crate (5,56mm STANAG)";
        model = "braf\braf_structures_ammoboxes\braf_ammobox_762.p3d";
        class TransportMagazines
        {
            class _xx_braf_30Rnd_556x45
            {
                magazine = "braf_30Rnd_556x45";
                count = 10;
            };
            class _xx_braf_30Rnd_556x45_red
            {
                magazine = "braf_30Rnd_556x45_red";
                count = 3;
            };
        };
    };
    class braf_crate_ammo_small_762 : braf_crate_ammo_small_556_stanag
    {
        _generalMacro = "braf_crate_ammo_small_762";
        displayName = "Small Ammo crate (7,62mm)";
        model = "braf\braf_structures_ammoboxes\braf_ammobox_762.p3d";
        class TransportMagazines
        {
            class _xx_braf_20Rnd_762x51
            {
                magazine = "braf_20Rnd_762x51";
                count = 10;
            };
            class _xx_braf_20Rnd_762x51_red
            {
                magazine = "braf_20Rnd_762x51_red";
                count = 2;
            };
        };
    };

    class braf_crate_pallet_vehicle_ammo : braf_crate_base_box
    {
        _generalMacro = "braf_crate_stack_vehicle_ammo";
        scope = 2;
        mapSize = 1.8099999;
        class SimpleObject
        {
            eden = 1;
            animate[] = {};
            hide[] = {};
            verticalOffset = 0.189;
            verticalOffsetWorld = 0;
            init = "''";
        };
        editorPreview = "";
        editorCategory = "braf_buildings_objects";
        editorSubcategory = "braf_ammoboxes";
        displayName = "Vehicle Ammo Crates";
        model = "braf\braf_structures_ammoboxes\braf_mediumbox_stack.p3d";
        icon = "iconCrateWpns";
        maximumLoad = 21000;
        transportAmmo = 5e+08;
        ace_rearm_defaultSupply = 1200;
        ace_cargo_space = 13;
        supplyRadius = 10;
        secondaryExplosion = 10000;
        fuelExplosionPower = 5;
        explosionEffect = "FuelExplosion";
        class TransportMagazines
        {
        };
        class TransportWeapons
        {
        };
        class TransportItems
        {
        };
    };
};
