Hi everybody, I'm currently working on an addon that adds new magazines for vanilla weapons. What I am having trouble with is configuring the weapons to accept them. I'm trying to add the magazines to the magazines array without overwriting the default one for compatibility with other addons. I've taken a look into one of toadie2k's NIArms compatibility patches for CUP and he uses something like this:
class Gun1_base : Rifle_Base_F
{
magazines[] += {"Mag1", "Mag2"};
};
I tried using the same method, but nothing seems to work. Here's something from my config:
class Rifle_Base_F;
class arifle_Katiba_Base_F : Rifle_Base_F
{
magazines[] += {"30Rnd_65x39_caseless_yellow_mag_Tracer", "30Rnd_65x39_caseless_red_mag_Tracer" };
};
Am I missing something? Might I have written something wrong? I even checked in the config viewer and the new magazines DO exist, but they don't appear in the magazines array of CfgWeapons.