Jump to content
Sign in to follow this  
R3vo

Makes ammobox and items available in Zeus/Arsenal

Recommended Posts

I can't get my mod items and ammoboxes to be available for Zeus and/or Arsenal. Everything else works as intended.
 
 

class CfgVehicles
{
    class NATO_Box_Base;
    class Revo_mD_flags_box: NATO_Box_Base
    {
        scope = 2;
        scopeCurator = 2;          
        vehicleClass = "Ammo";
        displayName = $STR_mD_box;
        model = "\A3\weapons_F\AmmoBoxes\AmmoBox_F";
        icon = "iconCrateWpns";
        class TransportMagazines{};
        class TransportWeapons{};
        class TransportItems
        {
            class _xx_Item_Revo_mD_flag
            {
                name = "Revo_mD_flag";
                count = 50;
            };
            class _xx_MineDetector
            {
                name = "MineDetector";
                count = 5;
            };
            class _xx_Revo_mD_battery
            {
                name = "Revo_mD_battery";
                count = 20;
            };
            class _xx_Revo_mD_batteryEmpty
            {
                name = "Revo_mD_batteryEmpty";
                count = 5;
            };
        };
    };
};
class CfgMagazines
{
    class CA_Magazine;
    class Revo_mD_flag: CA_Magazine
    {
        author = "Revo";
        displayName = $STR_mD_flag;
        model = "\A3\Signs_F\SignSpecial\FlagSmall_F.p3d";
        count = 1;
        scope = 2;
        scopeCurator = 2;          
        scopeArsenal = 2;
        mass = 10;
        picture = "\Revo_mineDetector\images\flag_icon.paa";
        descriptionShort = $STR_mD_flagDesription;
    };
};

 

I thought adding scopeCurator = 2; and scopeArsenal = 2; would suffice, but guess I was wrong there. Any help would be apprechiated.

Share this post


Link to post
Share on other sites

Have you placed the class Revo_mD_flags_box into the units array, inside CfgPatches? For example:
 

class CfgPatches
{
    class YourPatchesClass
    {
        units[] = {"Revo_mD_flags_box"};
        weapons[] = {};
        requiredVersion = 1.5;
        requiredAddons[] = {};
    };
};

Share this post


Link to post
Share on other sites

Thanks for your help. The box is now available in Zeus, but not he items in Arsenal. Anything else I am missing?

Share this post


Link to post
Share on other sites

The box is now available in Zeus, but not he items in Arsenal. Anything else I am missing?

 

Ahoy there! Did you manage to solve this issue? Because I am having the same problem

Share this post


Link to post
Share on other sites

For "magazine" class items to be selectable in the Arsenal the game requires you to have a weapon that actually uses the magazines in question actually in your inventory/on your person. If the item you're making is just a "flag" item, you're better off inheriting from 'ItemCore' rather than 'CA_Magazine'. That way you should be able to select your item in the '+' item list for any storage uniform item (uniform, vest, rucksack etc.)

Share this post


Link to post
Share on other sites

I used the class ItemCore instead of CA_Magazine, that's actually the proper way of doing it, despite some suggestion in an other thread.

Share this post


Link to post
Share on other sites

I used the class ItemCore instead of CA_Magazine, that's actually the proper way of doing it, despite some suggestion in an other thread.

Ah, fair enough. I was basing my post on your initial post that inherits from 'CA_Magazine'

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
Sign in to follow this  

×