// MIRAGE III CZ Nš2 Squadron SAAF (uprated by Atlas Corp) South African Airforce (1982)
// MIRAGE III EZ Nš3 Squadron SAAF (uprated by Atlas Corp) South African Airforce (1984)
// MIRAGE III R2Z Nš3 Squadron SAAF (uprated by Atlas Corp) South African Airforce (1987)
// A BUSH WARS CONFLICT - MOD for Angola Special Operations (The Secret War).
// External skins by TonFig
// Model by TonFig
// some basic defines

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

class CfgPatches
{
	class BWC_Mirage3
	{
		units[] = {BWC_MirageEZ,BWC_MirageEZ_a,BWC_MirageEZ_b,BWC_MirageEZ_c};
		weapons[] = {BWC_MirageGun,BWC_kukri_rail,BWC_kukri2_rail,BWC_matra_rail,BWC_as30_rail,BWC_lgb_rail,BWC_cbu_rail,BWC_mk82_rail,BWC_pb400_rail,BWC_Launcher};
		requiredVersion = 1.85;
	};
};

class CfgModels
{
	class Default{};
	class Weapon: Default{};
	class Vehicle: Default{};
	class BWC_MirageCZ: Vehicle
	{
		sectionsInherit="Vehicle";
		sections[] = {"burn","fwf","fwr","swf","swr","num1","num2","vrtule blur","vrtule textura","zasleh","L svetlo","P svetlo"};
	};

	
	class BWC_MirageEZ_a: BWC_MirageEZ {};
	class BWC_MirageEZ_b: BWC_MirageEZ_a {};
	class BWC_MirageEZ_c: BWC_MirageEZ_b {};
	class BWC_MirageR2Z: BWC_MirageEZ_c {};

	class BWC_ejectseat:vehicle
		
	{
		sections[] ={"flame","vrtule blur"};
	};
	
};

class CfgAmmo
{
	class Default {};
	class BulletSingle: default {};
	class ExplosiveBullet: BulletSingle {};
	class Bullet30: ExplosiveBullet {};

	class BWC_MirageBullet: Bullet30 
	{
		hit=60;
		indirectHit=25;
		explosive=1;		
	};

	class AT3: Default {};
	class Hellfire: AT3 {};
	class Zuni: Hellfire {};
	class CarlGustav: AT3 {};
	class AA : CarlGustav {};

	class BWC_kukri : AA
	{
		simulation=shotMissile;
		model=\BWC_MIII\wep\BWC_kukri_f;
		proxyShape=\BWC_MIII\wep\BWC_kukri;
		soundHit[]={"\BWC_MIII\Sounds\kukriexp.ogg",db+40,1};
		hit=350;indirectHit=175;indirectHitRange=8;
		minRange=200; minRangeProbab=0.9;
		midRange=750; midRangeProbab=0.95;
		maxRange=2000; maxRangeProbab=0.6;
		maneuvrability=75;
		airLock=true;
		initTime=0.15;
		thrustTime=200;
		maxControlRange=2000;
		cost=20000;
		thrust=700;
		maxSpeed=900;
		visibleFire=15;
		audibleFire=30;
		visibleFireTime=50;
	};

	class BWC_matra : AA
	{
		simulation=shotMissile;
		model=\BWC_MIII\wep\BWC_matra_f;
		proxyShape=\BWC_MIII\wep\BWC_matra;
		soundHit[]={"\BWC_MIII\Sounds\kukriexp.ogg",db+40,1};
		hit=410;indirectHit=200;indirectHitRange=10;
		minRange=500; minRangeProbab=0.95;
		midRange=4500; midRangeProbab=0.95;
		maxRange=10000; maxRangeProbab=0.95;
		maneuvrability=75;
		airLock=true;
		initTime=0.1;
		thrustTime=200;
		maxControlRange=10000;
		cost=20000;
		thrust=800;
		maxSpeed=1800;
		visibleFire=25;
		audibleFire=50;
		visibleFireTime=100;
	};

	class BWCProxDetonator : AA
	{
		model=\BWC_MIII\wep\proxdet;
		hit=0;indirectHit=0;indirectHitRange=1;
		maneuvrability=1;
		airLock=false;
		irLock=false;
		laserLock=false;
		initTime=0.01;
		thrustTime=1;
		maxControlRange=1;
		thrust=1;
		maxSpeed=1;
		cost=1;
	};

	class LaserGuidedBomb: Default {};
	
	class BWC_lgb : LaserGuidedBomb
	{
		hit=4000;indirectHit=2500;indirectHitRange=17;
		soundHit[]={"\BWC_MIII\Sounds\bmbexp.ogg",db50,1};
		soundFly[]={"\BWC_MIII\Sounds\bmbfall.ogg",db30,1};
		model=\BWC_MIII\wep\BWC_lgb.p3d;
		proxyShape=\BWC_MIII\wep\BWC_lgb.p3d;
		irLock=true;
		laserLock=true;
		maxControlRange=10000;
		maneuvrability=16.0;
		sideAirFriction=0.2;
		maxSpeed=200;
		initTime=1.000;
		thrustTime=0;
		thrust=0;
	};

	class BWC_cbu : LaserGuidedBomb
	{
		hit=4000;indirectHit=3500;indirectHitRange=20;
		soundHit[]={"\BWC_MIII\Sounds\bmbexp.ogg",50,1};
		soundFly[]={"\BWC_MIII\Sounds\bmbfall.ogg",30,1};
		model=\BWC_MIII\wep\BWC_cbu.p3d;
		proxyShape=\BWC_MIII\wep\BWC_cbu.p3d;
		irLock=true;
		laserLock=true;
		maxControlRange=10000;
		maneuvrability=16.0;
		sideAirFriction=0.3;
		maxSpeed=100;
		initTime=1.000;
		thrustTime=0;
		thrust=0;
	};

	class BWC_MK82 : LaserGuidedBomb
	{
		hit=3000;indirectHit=1200;indirectHitRange=10;
		soundHit[]={"\BWC_MIII\Sounds\mk82exp.ogg",db100,1};
		soundFly[]={"\BWC_MIII\Sounds\bmbfall.ogg",db30,1};
		model = "\BWC_MIII\wep\BWC_mk82";
		proxyShape="\BWC_MIII\wep\BWC_mk82";
		irLock=1;
		sideAirFriction=0.3;
		maxSpeed=200;
		
	};

	class BWC_pb400 : LaserGuidedBomb
	{
		hit=5000;indirectHit=3500;indirectHitRange=25;
		soundHit[]={"\BWC_MIII\Sounds\pbexp.ogg",db150,1};
		soundFly[]={"\BWC_MIII\Sounds\bmbfall.ogg",db40,1};
		model = "\BWC_MIII\wep\BWC_pb400_f";
		proxyShape="\BWC_MIII\wep\BWC_pb400";
		irLock=1;
		sideAirFriction=0.3;
		maxSpeed=70;
		
	};

	class Maverick: Hellfire {};
	class BWC_as30 : Maverick
		{
		hit=4000;indirectHit=1800;indirectHitRange=15;
		model="\BWC_MIII\wep\BWC_as30_f.p3d";
		proxyShape="\BWC_MIII\wep\BWC_as30";
		maxSpeed=300;
		soundHit[]={"\BWC_MIII\Sounds\as30exp.ogg",60,1};
		simulation=shotMissile;
		maneuvrability=30;
		reloadTime=1.0;
		visibleFire=15;
		audibleFire=30;
		visibleFireTime=60;
		initTime=0.15; 
		thrustTime=7;
		thrust=800; 
	};
};

class CfgWeapons
{	
	class Default {};
	class MGun: Default {};
	class MachineGun7_6: MGun {};
	class MachineGun30: MachineGun7_6 {};

	class BWC_MirageGun: MachineGun30
	{
		displayName="2x30mm Cannon";
		ammo=BWC_MirageBullet;
		count=400;
		reloadTime=0.075;
		sound[]={"\BWC_MIII\Sounds\canon.ogg",20,1};
		soundContinuous=1;
		aiRateOfFire=0.1;
		aiRateOfFireDistance=200;
	};

	class LAWLauncher: Default {};
	class CarlGustavLauncher : LAWLauncher {};
	class AT3Launcher: CarlGustavLauncher {};
	class HellfireLauncher: AT3Launcher {};
	class MaverickLauncher: HellfireLauncher {};

	class BWC_kukri_rail: MaverickLauncher 
	{
		ammo=BWC_kukri;
		displayName="Kukri V3B";
		displayNameMagazine="Kukri";
		shortNameMagazine="Kukri";
		count=2;
		initspeed=40;
		reloadTime =2;
		sound[]={"\BWC_MIII\Sounds\missile.ogg",30,1};
		aiRateOfFire=10.0;
		aiRateOfFireDistance=0.01;
		canLock=2;
		maxLeadSpeed=800;
	};

	class BWC_kukri2_rail: BWC_kukri_rail 
	{
		ammo=BWC_kukri;
		count=4;
	};

	class BWC_as30_rail: BWC_kukri2_rail
	{
		ammo=BWC_as30;
		count=2;
		displayName="Nord AS-30";
		displayNameMagazine="AS30";
		shortNameMagazine="AS30";
		initspeed=15;
		canLock=2; 
		reloadTime=3;
	};

	class BWC_matra_rail: MaverickLauncher 
	{
		ammo=BWC_matra;
		displayName="MATRA R530 RF";
		displayNameMagazine="Matra";
		shortNameMagazine="Matra";
		count=1;
		initspeed=40;
		reloadTime =2;
		sound[]={"\BWC_MIII\Sounds\missile.ogg",30,1};
		aiRateOfFire=10.0;
		aiRateOfFireDistance=0.01;
		canLock=2;
		maxLeadSpeed=800;
	};
	
	class ZuniLauncher38: AT3Launcher {};
	class BWC_Launcher: ZuniLauncher38
	{
		displayName ="68mm SNEB Rockets";
		displayNameMagazine="SNEB";
		shortNameMagazine="SNEB";
		count=36;
		reloadTime=0.1;
		initSpeed=0;
		aiRateOfFire=1.0;
		aiRateOfFireDistance=0.01;
		autofire=true;
	};
		
	class LaserGuidedBombLauncher: HellfireLauncher {};
	class BWC_lgb_rail :  LaserGuidedBombLauncher
	{
		ammo="BWC_lgb";
		displayName="745 Paveway";
		displayNameMagazine="Paveway";
		shortNameMagazine="Paveway";
		count=3;
		reloadTime=0.5;
		sound[]={"\BWC_MIII\sounds\bmbdrop.ogg",40,1};
		initSpeed=10;
		canLock=2;
		aiRateOfFire=6.0;
		aiRateOfFireDistance=0.01;
		maxLeadSpeed=2500;
	};

	class BWC_cbu_rail :  BWC_lgb_rail
	{
		ammo="BWC_cbu";
		displayName="CB-470 ClusterBomb";
		displayNameMagazine="CB-470";
		shortNameMagazine="CB-470";
		count=2;
		reloadTime=0.5;
		sound[]={"\BWC_MIII\sounds\bmbdrop.ogg",40,1};
		initSpeed=10;
		canLock=2;
		aiRateOfFire=6.0;
		aiRateOfFireDistance=0.01;
		maxLeadSpeed=2500;
	};

	class BWC_mk82_rail: default	
	{
		ammo=BWC_mk82;
		displayName="MK82";
		displayNameMagazine="MK82";
		shortNameMagazine="MK82";
		count=4;
		reloadTime=0.5;
           	sound[]={"\BWC_MIII\sounds\bmbdrop.ogg",40,1};
		initSpeed=0;
		canLock=2;
		aiRateOfFire=10.0;
		aiRateOfFireDistance=0.01;
	};

	class BWC_pb400_rail: default	
	{
		ammo=BWC_pb400;
		displayName="400kg ParaBomb";
		displayNameMagazine="PB400";
		shortNameMagazine="PB400";
		count=4;
		reloadTime=0.5;
           	sound[]={"\BWC_MIII\sounds\pbchute.ogg",50,1};
		initSpeed=0;
		canLock=2;
		aiRateOfFire=10.0;
		aiRateOfFireDistance=0.01;
	};
};

class CfgVehicles
{	
class All{};
	class AllVehicles: All{};
	class Land : AllVehicles {};
	class LandVehicle: Land {};
	class Car : LandVehicle {};
	class BWC_ejectseat: Car 
	{
		scope =protected;
		crew = BWC_m3pilot;
		picture="";
		icon= "";
		side=1;
		vehicleclass="";
		gearRetracting = false;
		model =\BWC_MIII\BWC_ejectseat;
		displayName="Ejection Seat";
		threat[]={0,0,0};
		irTarget=0;
		cost=25;
		driverAction = ManActA10Pilot;
		weapons[]={};
		magazines[]={};
    		maxSpeed=280;
		soundEngine[]={"",1,1};
		soundEnviron[]={};
		soundDammage[]={db-10,1};
		nameSound="man";
		hiddenselections[] ={"flame"};
		armor=20;
	};

	class Air : AllVehicles {};
	class Plane : Air {};
	class BWC_MirageCZ : Plane
	{
		scope = public;
		crew = BWC_m3pilot;
		side = 1;
		model="\BWC_MIII\BWC_MirageCZ";
		displayName="Mirage III CZ (Kukri AA)";
		vehicleClass="-BUSH WARS- Air";
		//accuracy=0.3;
		accuracy=0.20;
		picture = "\BWC_MIII\Icon\cz_icon.paa";
		icon = "\BWC_MIII\Icon\mirage1_icon.paa";
		mapSize=17;

		driverAction = ManActA10Pilot;

		hiddenselections[] = {"burn","fwf","fwr","swf","swr","num1","num2"};

		maxSpeed = 1000;
		precision=200;
		landingAoa = 10*3.1415/180;
		brakeDistance=250; 
		steerAheadSimul=1.0;
		steerAheadPlan=2.0;
		aileronSensitivity = 0.5; 
		elevatorSensitivity = 0.85;
		noseDownCoef = 0.2;
		landingSpeed =200;
		manuverability=25.0;
		fov=0.5;

		formationX=20;
		formationZ=40;
		formationTime=10;

		irScanRange=6000;
		irScanRangeMax=10000;
		irScanRangeMin=100;
		irScanToEyeFactor = 5;
		irTarget=1;
		irScanGround=1;
		laserScanner=1;
		nightVision=1;

		soundEngine[]={"\BWC_MIII\Sounds\CZ_engine.ogg",db-20,1};
		soundGetIn[]={"\BWC_MIII\Sounds\in.ogg",1,0.8};
		soundGetOut[]={"\BWC_MIII\Sounds\out.ogg",1,0.8};
		insideSoundCoef = 0.008;

		armor=90;
		cost=5000;

		type=VAir;
		threat[]={0.9,0.8,1};

		weapons[]={BWC_kukri2_rail, BWC_MirageGun};
		magazines[]={BWC_kukri2_rail, BWC_MirageGun};

		dammageHalf[]={\BWC_MIII\T\glass.paa,\BWC_MIII\T\glassb.paa,};
        	dammageFull[]={\BWC_MIII\T\glass.paa,\BWC_MIII\T\glassc.paa,};
		
		class ViewPilotBase {};
		class ViewPilot: ViewPilotBase
			{
			// view - zoom+ - zoom-
			initFov=0.50;minFov=0.2999;maxFov=0.80;
			initAngleX=0;minAngleX=-25;maxAngleX=35;
			initAngleY=0;minAngleY=-130;maxAngleY=130;
			};

		class Reflectors
			{
			class Left
			{
				color[] = {0.8, 0.8, 1.0, 1.0};
				ambient[] = {0.07, 0.07, 0.07, 1.0};
				position = "L svetlo";
				direction = "konec L svetla";
				hitpoint = "L svetlo";
				selection = "L svetlo";
				size = 0.5;
				brightness = 2.0;
			};
			class Right
			{
				color[] = {0.8, 0.8, 1.0, 1.0};
				ambient[] = {0.07, 0.07, 0.07, 1.0};
				position = "P svetlo";
				direction = "konec P svetla";
				hitpoint = "P svetlo";
				selection = "P svetlo";
				size = 0.5;
				brightness = 2.0;
			};
		};

		class IndicatorSpeed
		{
			selection = "mph";
			axis = "osa_mph";
			angle = -360;
			min = 0;
			max = 320;
		};

		class IndicatorAltRadar
		{
			selection = "alt";
			axis = "osa_alt";
			angle = -350;
			min = 0;
			max = 304;
		};

		class IndicatorRPM
		{
			selection = "rpm";
			axis = "osa_rpm";
			angle = -320;
			min = 0;
			max = 1;
		};

		class IndicatorWatch
		{
			hour = "hodinova";
			minute = "minutova";
			axis = "osa_time";
			reversed = true;
		};

		class IndicatorCompass
		{
			selection = "kompas";
			axis = "osa_kompas";
			angle = -360;
			min = -3.1415926536;
			max = 3.1415926536;
			reversed = true;
		};

		class IndicatorAltBaro
		{
			// max for this indicator is 200 feet (i.e. 61m)
			// note: this is actualy Radar altitude (name is wrong)
			selection = "nm_alt";
			axis = "osa_nm_alt";
			angle = -360;
			min = 0;
			max =2500;
		};


		class IndicatorVertSpeed
		{
			selection = "vert_speed";
			axis = "osa_vert_speed";
			angle = -180;
			min = -30;
			max = 30;
			reversed=true;
		};


		animated =1;
		class Animations
		{
			class LeftGear
			{
				type ="rotation";
				animPeriod =2;
				selection ="left gear";
				axis ="osa left gear";
				angle0 =0;
				angle1 =1.57;
			};

			class LGD
			{
				type ="rotation";
				animPeriod =2;
				selection ="left gd";
				axis ="osa left gd";
				angle0 =0;
				angle1 =1.57;
			};

			class RightGear
			{
				type ="rotation";
				animPeriod =2;
				selection ="right gear";
				axis ="osa right gear";
				angle0 =0;
				angle1 =-1.57;
			};

			class RGD
			{
				type ="rotation";
				animPeriod =2;
				selection ="right gd";
				axis ="osa right gd";
				angle0 =0;
				angle1 =-1.57;
			};

			class NoseGear
			{
				type ="rotation";
				animPeriod =2;
				selection ="front gear";
				axis ="osa front gear";
				angle0 =0;
				angle1 =-1.57;
			};

			class NGDL
			{
				type ="rotation";
				animPeriod =2;
				selection ="front ld";
				axis ="osa front ld";
				angle0 =0;
				angle1 =-1.23;
			};

			class NGDR
			{
				type ="rotation";
				animPeriod =2;
				selection ="front rd";
				axis ="osa front rd";
				angle0 =0;
				angle1 =1.23;
			};

			class Canopy
			{
				type ="rotation";
				animPeriod =2;
				selection ="canopy";
				axis ="osa canopy";
				angle0 =0;
				angle1 =-.45;
			};

			class Handle
			{
				type ="rotation";
				animPeriod =0.5;
				selection ="handle";
				axis ="osa handle";
				angle0 =0;
				angle1 =-0.6;
			};
			
			class SWF
			{
				type ="rotation"; animPeriod =.0001;
				selection ="swf";axis="axis_swf";
				angle0=0;angle1=6.28;
			};

			class SWR
			{
				type ="rotation"; animPeriod =.0001;
				selection ="swr";axis ="axis_swr";
				angle0=0;angle1=6.28;
			};

			class ablb
			{
				type ="rotation";animPeriod =1;
				selection ="ablb";axis ="osa_ablb";
				angle0 =0;angle1 =-1.48;
			};
			
			class ablt
			{
				type ="rotation";animPeriod =1;
				selection ="ablt";axis ="osa_ablt";
				angle0 =0;angle1 =1.48;
			};
			class abrb
			{
				type ="rotation";animPeriod =1;
				selection ="abrb";axis ="osa_abrb";
				angle0 =0;angle1 =1.48;
			};
			
			class abrt
			{
				type ="rotation";animPeriod =1;
				selection ="abrt";axis ="osa_abrt";
				angle0 =0;angle1 =-1.48;
			};

			class Radarl
			{
				type ="rotation";
				animPeriod =100000;
				selection ="radarl";
				axis ="axis_radarl";
				angle0 =0;
				angle1 ="-20000 * 3.141592654";
			};

			class Nozzle1
			{	type ="rotation"; animPeriod =1; selection ="noz01"; axis ="axisnoz01"; angle0 =0; angle1 =-.053;}
			class Nozzle2
			{	type ="rotation"; animPeriod =1; selection ="noz02"; axis ="axisnoz02"; angle0 =0; angle1 =-.053;}
			class Nozzle3
			{	type ="rotation"; animPeriod =1; selection ="noz03"; axis ="axisnoz03"; angle0 =0; angle1 =-.053;}
			class Nozzle4
			{	type ="rotation"; animPeriod =1; selection ="noz04"; axis ="axisnoz04"; angle0 =0; angle1 =.053;}
			class Nozzle5
			{	type ="rotation"; animPeriod =1; selection ="noz05"; axis ="axisnoz05"; angle0 =0; angle1 =.053;}
			class Nozzle6
			{	type ="rotation"; animPeriod =1; selection ="noz06"; axis ="axisnoz06"; angle0 =0; angle1 =.053;}
			class Nozzle7
			{	type ="rotation"; animPeriod =1; selection ="noz07"; axis ="axisnoz07"; angle0 =0; angle1 =.053;}
			class Nozzle8
			{	type ="rotation"; animPeriod =1; selection ="noz08"; axis ="axisnoz08"; angle0 =0; angle1 =.053;}
			class Nozzle9
			{	type ="rotation"; animPeriod =1; selection ="noz09"; axis ="axisnoz09"; angle0 =0; angle1 =-.053;}
			class Nozzle10
			{	type ="rotation"; animPeriod =1; selection ="noz10"; axis ="axisnoz10"; angle0 =0; angle1 =-.053;}			
		};
		class UserActions
		{
			class BWC_OpenCanopy
			{
				displayName ="Open Canopy";
				position = "doors";
				radius =10;
				condition = "player in this and this animationphase ""canopy"" < 0.5 and speed this < 45 and ((getpos this) select 2) < 30";
				statement = "this animate [""canopy"",1]; this animate [""handle"",1];this say [""CANOPY"", 1]";
			};

			class BWC_CloseCanopy
			{
				displayName ="Close Canopy";
				position = "doors";
				radius =10;
				condition = "player in this and this animationphase ""canopy"" > 0.5";
				statement = "this animate [""canopy"",0]; this animate [""handle"",0];this say [""CANOPY"", 0]";
			};
			class Airbrakedown
                   	{
                  		displayName="Air Brake On";
                   		position="doors";
                   		radius=5;
                   		condition="(this animationPhase ""ablb"" < 0.15) and (player in this)";
				statement="[this] exec""\BWC_MIII\scr\airbrakedown.sqs"""; 
					   
                   	};
		
			class Airbrakeup
                   	{
                  		displayName="Air Brake Off";
                   		position="doors";
                   		radius=5;
                   		condition="(this animationPhase ""ablb"" >= 0.5) and (player in this)";
				statement="[this] exec""\BWC_MIII\scr\airbrakeup.sqs"""; 		                      	};

		};

		class EventHandlers
		{
			init = "[_this select 0] exec ""\BWC_MIII\scr\common_init.sqs""; (_this select 0) animate [""Radarl"",1]"; 
			getout = "[_this] exec {\BWC_MIII\scr\eject.sqs}";
			fired = "[_this] exec {\BWC_MIII\scr\prox.sqs}";
			incomingMissile = " if ((_this select 0)==(_this select 0)) then { [_this] exec ""\BWC_MIII\scr\SpoofMissile.sqs""; [_this] exec ""\BWC_MIII\scr\autoflares.sqs""; } ";
		};
	};

	class BWC_MirageCZ_a : BWC_MirageCZ
	{
		model="\BWC_MIII\BWC_MirageCZ_a";
		picture = "\BWC_MIII\Icon\cz_icon.paa";
		icon = "\BWC_MIII\Icon\mirage_icon.paa";
		displayName="Mirage III CZ (Matra AA)";
		vehicleClass="-BUSH WARS- Air";
		irScanRangeMin = 2000;
		irScanRangeMax = 10000;
		fov=0.5;

		weapons[]={BWC_matra_Rail, BWC_MirageGun};
		magazines[]={BWC_matra_Rail, BWC_MirageGun};
		threat[]={1.0, 0.9, 1.0};
	};

	class BWC_MirageEZ : BWC_MirageCZ_a
	{
		model="\BWC_MIII\BWC_MirageEZ";
		picture = "\BWC_MIII\Icon\ez_icon.paa";
		icon = "\BWC_MIII\Icon\mirage1_icon.paa";
		displayName="Mirage III EZ (PB400 AG)";
		vehicleClass="-BUSH WARS- Air";
		irScanRangeMin = 2000;
		irScanRangeMax = 10000;
		fov=0.8;

		weapons[]={BWC_pb400_Rail, BWC_MirageGun};
		magazines[]={BWC_pb400_Rail, BWC_MirageGun};
		threat[]={0.7, 1.0, 0.7};
	};

	class BWC_MirageEZ_a : BWC_MirageEZ
	{
		model="\BWC_MIII\BWC_MirageEZ_a";
		picture = "\BWC_MIII\Icon\ez_icon.paa";
		icon = "\BWC_MIII\Icon\mirage1_icon.paa";
		displayName="Mirage III EZ (AS30 AG)";
		vehicleClass="-BUSH WARS- Air";

		weapons[]={BWC_as30_Rail, BWC_MirageGun};
		magazines[]={BWC_as30_Rail, BWC_MirageGun};
		threat[]={0.7, 1.0, 0.5};
	};

	class BWC_MirageEZ_b : BWC_MirageEZ_a
	{
		model="\BWC_MIII\BWC_MirageEZ_b";
		picture = "\BWC_MIII\Icon\ez_icon.paa";
		icon = "\BWC_MIII\Icon\mirage_icon.paa";
		displayName="Mirage III EZ (Paveway AG)";
		vehicleClass="-BUSH WARS- Air";

		weapons[]={BWC_lgb_Rail, BWC_MirageGun};
		magazines[]={BWC_lgb_Rail, BWC_MirageGun};
		threat[]={0.7, 1.0, 0.6};
	};

	class BWC_MirageEZ_c : BWC_MirageEZ_b
	{
		model="\BWC_MIII\BWC_MirageEZ_c";
		picture = "\BWC_MIII\Icon\ez_icon.paa";
		icon = "\BWC_MIII\Icon\mirage_icon.paa";
		displayName="Mirage III EZ (JL100 + MK82 AG)";
		vehicleClass="-BUSH WARS- Air";

		weapons[]={BWC_mk82_Rail, BWC_Launcher, BWC_MirageGun};
		magazines[]={BWC_mk82_Rail, BWC_Launcher, BWC_MirageGun};
		threat[]={0.6, 0.8, 0.5};
	};
};

class CfgSounds

	{
	class GEAR
	{
	   	sound[]={"\BWC_MIII\Sounds\gear.ogg",50,0.5};
   		name = "MIRAGEGEAR";
		titles[] = {};
	};

	class TOUCH
	{
		sound[]={"\BWC_MIII\Sounds\cz_touch.ogg",30,1};
		name = "TOUCH";
		titles[] = {};
 	};

	class CANOPY
	{
	   	sound[]={"\BWC_MIII\Sounds\canopy.ogg",db-70,0.8};
   		name = "CANOPY";
		titles[] = {};
	};

	class FLARE
	{
	   	sound[]={"\BWC_MIII\Sounds\flare.ogg",40,1};
   		name = "FLARE";
		titles[] = {};
	};

	class EJECT
	{
	   	sound[]={"\BWC_MIII\Sounds\eject.ogg",1,1};
   		name = "EJECT";
		titles[] = {};
		};
	};

class CfgRadio

	{
	class CANOPY
	{
	   	sound[]={"\BWC_MIII\Sounds\canopy.ogg",db-70,0.8};
   		name = "CANOPY";
		title = "";
	};

	class IncomingPips
 	{
   		sound[]={"\BWC_MIII\Sounds\incoming.ogg",10,1};
	   	name = "IncomingPips";
		title = "";
 	};

	class Afterburn
	{
	   	sound[]={"\BWC_MIII\Sounds\afterburn.ogg",db-60,1};
   		name = "AFTERBURN";
		title = "";
	};
};

class CfgNonAIVehicles
{
	class ProxyWeapon {};
	class ProxyBWC_kukri: ProxyWeapon
	{
		model="\BWC_MIII\wep\BWC_kukri.p3d";
		simulation="maverickweapon";
	};

	class ProxyBWC_lgb: ProxyWeapon
	{
		model="\BWC_MIII\wep\BwC_lgb.p3d";
		simulation="maverickweapon";
	};

	class ProxyBWC_cbu: ProxyWeapon
	{
		model="\BWC_MIII\wep\BwC_cbu.p3d";
		simulation="maverickweapon";
	};

	class ProxyBWC_as30: ProxyWeapon
	{
		model="\BWC_MIII\wep\BwC_as30.p3d";
		simulation="maverickweapon";
	};

	class ProxyBWC_mk82: ProxyWeapon
	{
		model="\BWC_MIII\wep\BwC_mk82.p3d";
		simulation="maverickweapon";
	};

	class ProxyBWC_pb400: ProxyWeapon
	{
		model="\BWC_MIII\wep\BwC_pb400.p3d";
		simulation="maverickweapon";
	};

	class ProxyBWC_matra: ProxyWeapon
	{
		model="\BWC_MIII\wep\BwC_matra.p3d";
		simulation="maverickweapon";
	};
};

