Jump to content
Sign in to follow this  
ADuke

Ammo replacements not working

Recommended Posts

Hi,

I have been using the AllinArma mod with A3 so I can use A2 content.

One thing that was bothering me was the A2 ammo does not have the correct tracer model associated with it.

So I wrote a small replacement config, but it is not working, here is my config......

#define private 0

#define protected 1

#define public 2

#define true 1

#define false 0

class CfgPatches

{

class ad_ammo_replace

{

units[] = {};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] = {};

};

};

class CfgAmmo

{

class BulletBase; // External class reference

class B_545x39_Ball : BulletBase

{

model = "\A3\Weapons_f\Data\bullettracer\tracer_green";

tracerScale = 1.0;

tracerStartTime = 0.05;

tracerEndTime = 1;

};

class B_556x45_Ball : BulletBase

{

model = "\A3\Weapons_f\Data\bullettracer\tracer_red";

tracerScale = 1.0;

tracerStartTime = 0.05;

tracerEndTime = 1;

};

class B_762x51_Ball : BulletBase

{

model = "\A3\Weapons_f\Data\bullettracer\tracer_red";

tracerScale = 1.0;

tracerStartTime = 0.05;

tracerEndTime = 1;

};

class B_762x54_Ball : BulletBase

{

model = "\A3\Weapons_f\Data\bullettracer\tracer_green";

tracerScale = 1.0;

tracerStartTime = 0.05;

tracerEndTime = 1;

};

class B_127x99_Ball : BulletBase

{

model = "\A3\Weapons_f\Data\bullettracer\tracer_red";

tracerScale = 1.0;

tracerStartTime = 0.05;

tracerEndTime = 1;

};

};

class CfgMagazines

{

class CA_Magazine; // External class reference

class 20Rnd_556x45_Stanag : CA_Magazine

{

tracersEvery=1;

};

class 30Rnd_556x45_Stanag : 20Rnd_556x45_Stanag

{

tracersEvery=1;

};

};

If anyone has any clue as to why this isn't working I would appreciate some tips.

Thanks,

-AD

Share this post


Link to post
Share on other sites

You have no required addons in cfg patches so it's possible your replacement is loading before a3 ammo and being over written.

For replacement you need to ensure the original class is loaded first by adding the correct order of required addons

Additionally be sure You are inheriting from bulletbase is correct and that the original does too

Share this post


Link to post
Share on other sites

1. why dont you indent....

2. what about it isnt working?

3. I would try going one by one to see if it works, it might just be one ammo type that for some reason is messing up the rest

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  

×