Can someone explain this?
I'm trying to change some small bits here and there. F.ex I tried to change the magasines for the AKS74U and the AKS74UN.
For some reason I couldnt change the mags for AKS74UN. AKS74U's magasines changed to whatever I wanted, I could change whatever I wanted for the AKS74UN except the magasines...
So I started digging in my addonfolders, disabling and activating until I found the problem. It was NWD_Ballistics.pbo.
I opened up that config and this is the part:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">...more code
class AKS74U : AK74
{
distanceZoomMin = 228; // Real gun has flip-up sights for 200 or 400 m.
distanceZoomMax = 228; // Model has sights set to 400 m, but that's stupid.
};
class AKS74UN : AKS74U
{
magazines[] = {
"30Rnd_545x39_AKSD", "30Rnd_545x39_AK"
};
distanceZoomMin = 110;
distanceZoomMax = 110;
};
class G36a : Rifle
{
distanceZoomMin = 236; // adjusted for 2.5 inch (?) scope height
distanceZoomMax = 236; // zeroed to 200 m
};
...more code[/QUOTE]
I cant see any wrong with that..
My config:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches
{
class andy_fixes
{
units[] = {};
weapons[] = {};
requiredVersion = 1.09.5208;
requiredAddons[] = {"CAWeapons"};
};
};
class CfgWeapons
{
class ak74;
class AKS74U : AK74
{
magazines[] = {"30Rnd_545x39_AK"};
};
class AKS74UN : AKS74U
{
magazines[] = {"30Rnd_545x39_AKSD"};
};
};
[/QUOTE]
I cant see any wrong with that either.. And my addon works when I disable NWD_Ballistics.pbo.
Now to the point, why isnt my addon overwriting his? My addon is in a modfolder after NWD_Ballistics.pbo.
And it doesnt matter if I load mine before or after..
How can another addon make all attempts to change the same values no-go? I can change whatever I want for the AKS74UN except the magasines..
HOME 
Reply With Quote
