Jump to content
Sign in to follow this  
champ-1

Can't overwrite turret config

Recommended Posts

Hey guys. I've been configuring stuff and I face this problem. I can overwrite SOME turrets configs, when other work just fine.

class CfgPatches
{
class noThermalVehicles
{
	units[]={};
	weapons[]={};
	requiredVersion=0.1;
	requiredAddons[]=
	{
		"A3_Air_F",
		"A3_Soft_F",
		"A3_Armor_F",
		"A3_Boat_F",
		"A3_Static_F"
	};
};
};
class DefaultOptics
{
visionMode[] = {"Normal", "NVG"};
thermalMode[] = {};
};
class RCWSOptics: DefaultOptics
{
visionMode[] = {"Normal", "NVG"};
};
class Optics_Armored: RCWSOptics
{
class Wide: RCWSOptics 
{
	visionMode[] = {"Normal", "NVG"};
};
};
class Optics_Gunner_MBT_01: Optics_Armored {};
class CfgVehicles
{
class All
{
	class Turrets {};
	class ViewOptics {};
};
class AllVehicles: All
{
	class NewTurret 
	{
		class ViewOptics {};
		class Turrets {};
	};
};
class Land: AllVehicles {};
class LandVehicle: Land 
{
	class CommanderOptics: NewTurret {}
};
class Car: LandVehicle {};
class Car_F: Car
{
	class Turrets
	{
		class MainTurret {};
	};
};
class Wheeled_APC_F: Car_F 
{
	class Turrets 
	{
		class MainTurret: NewTurret 
		{
			class Turrets {};
		};
	};
};
class APC_Wheeled_02_base_F: Wheeled_APC_F 
{
	class Turrets: Turrets 
	{
		class MainTurret: MainTurret 
		{
			class ViewOptics: RCWSOptics 
			{
				visionMode[] = {"Normal", "NVG"};	// THIS DOESN'T WORK
			};
		};
		class CommanderOptics: CommanderOptics 
		{
			class ViewOptics: ViewOptics 
			{
				visionMode[] = {"Normal", "NVG"};	// THIS DOESN'T WORK
			};
		};
	};
};
class UGV_01_base_F: Car_F {};
class UGV_01_rcws_base_F: UGV_01_base_F
{
	class Turrets: Turrets 
	{
		class MainTurret: NewTurret 
		{
			class ViewOptics: RCWSOptics 
			{
				visionMode[] = {"Normal", "NVG"};  // THIS DOESN'T WORK
			};
		};
	};
};
};

Help me out. PLZ

Edit:

Fixed somehow, still don't know what exactly was wrong.

Edited by Champ-1

Share this post


Link to post
Share on other sites

I don't need to do that. I just added another addon to "requiredAddons" list and it works now.

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  

×