Jump to content
Sign in to follow this  
2fast

Config cfgWeapons error since APEX 1.62 update

Recommended Posts

This config was first developed for my own mod and has been working as intended before the APEX update. I have seen quite a number of threads talking about the change but I still cannot figure out how to fix my code for the past 3 days. I keep getting the "error creating class XXXXX scope = private" and "no config entry ...." errors in my rpt.


	class  V_PlateCarrier2_rgr{
		class VestItem;
	};
	class  V_PlateCarrier2_rgr_custom : V_PlateCarrier2_rgr{
		class ItemInfo : VestItem{
			containerclass = "Supply3000";	//defined in cfgVehicles
			mass = 1;
			//armor = "5*0.6";	//??
			//passthrough = 0.75;	//??
		};
	};
	
	class srifle_EBR_SOS_F{
		class WeaponSlotsInfo;		
		class Single;
	}
	class Custom_srifle_EBR_SOS_F : srifle_EBR_SOS_F
	{
		magazines[] = {"Custom_762x51_Mag"};
		displayName = "EBR Custom Rifle";
		class Single : Single{
			dispersion = 0.00001;
		};
		class WeaponSlotsInfo : WeaponSlotsInfo{
			mass = 1;
		};
	};
	
	
	class srifle_GM6_SOS_F{
		class WeaponSlotsInfo;		
		class Single;
	}
	class Custom_srifle_GM6_SOS_F : srifle_GM6_SOS_F
	{
		magazines[] = {"Custom_127x108_AP_Mag","Custom_HE_Shell"};
		displayName = "GM6 Anti-Armor Custom Rifle";
		class Single : Single{
			dispersion = 0.00001;
		};
		class WeaponSlotsInfo : WeaponSlotsInfo{
			mass = 1;
		};
	};
	
	class LaserDesignator{
		class WeaponSlotsInfo;		
	}
	class Custom_LaserDesignator : LaserDesignator
	{
		displayName = "Custom LaserDesignator";
		//visionMode[] = {"Normal","NVG","Ti"};
		thermalmode[] = {0};
		opticsZoomInit = 1;	//0.1242
		opticsZoomMax = 1; 	//0.1242
		opticsZoomMin =  0.0125;	//0.0125
		
		class WeaponSlotsInfo : WeaponSlotsInfo{
			mass = 1;
		};
	};
		
	class NVGoggles{
		class WeaponSlotsInfo;		
	}
	class Custom_NVGoggles : NVGoggles
	{
		displayName = "Custom NVGoggles";
		//model = "\<addon>\tvg_proxy";
		//visionMode[] = {"Ti"};
		//thermalMode[] = {0};
		modelOptics = "";	//full screen NVG
		//opticsPPEffects[] = {};
		//simulation = "TIGoggles";
		
		
		class WeaponSlotsInfo : WeaponSlotsInfo{
			mass = 1;
		};

        };	
};

I have problem with all the custom weapons except the laser designator and NVGoggles.

 

I am guess I am not following the inheritance rule correctly, but I cannot figure out how I can fix it.

 

Can someone kindly enlighten me please.

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  

×