class CfgPatches {
	class vurtual_m998_avenger {
		units[] = {
		"vurtual_m1097a2_avenger"
		};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"vurtual_m998"};
	};
};


class DefaultVehicleSystemsDisplayManagerLeftSensors {
	class Components {
		class SensorDisplay;
	};
};
class SensorTemplateActiveRadar;
class SensorTemplateIR;
class SensorTemplateDataLink;
#include "../acre_pos.hpp"
class CfgVehicles {
	#include "../cfgVehicles.hpp"
	class vurtual_m1097a2_avenger: vurtual_hmmwv_base_a2 {
		scope = 2;
		displayName = "M1097A2 Avenger";
		model = "\vurtual_m998_avenger\vurtual_m1097_avenger.p3d";
		threat[]={1, 0.3, 1};
		receiveRemoteTargets = 1;
		vurtual_base_spares[] = {};
		class Components: Components {
			class SensorsManagerComponent {
				class Components {
					/*
					class ActiveRadarSensorComponent: SensorTemplateActiveRadar {
						animDirection = "mainGun";
						angleRangeHorizontal = 45;
						angleRangeVertical = 30;
						aimDown = 0;
						class AirTarget {
							minRange = 4500;
							maxRange = 4500;
							objectDistanceLimitCoef = -1;
							viewDistanceLimitCoef = -1;
						};
						maxTrackableSpeed = 1388.89;
						typeRecognitionDistance = 4500;
					};*/
					class IRSensorComponent: SensorTemplateIR {
						animDirection = "mainGun";
						angleRangeHorizontal = 45;
						angleRangeVertical = 30;
						aimDown = 0;
						class AirTarget {
							minRange = 4500;
							maxRange = 4500;
							objectDistanceLimitCoef = -1;
							viewDistanceLimitCoef = -1;
						};
					};
					class DataLinkSensorComponent: SensorTemplateDataLink {};
						
				};
			};
		};
		class Turrets: Turrets {
			class MainTurret: MainTurret {
				
				//turretInfoType = "RscOptics_UGV_gunner";
				turretInfoType = "vurtual_rscTurretInfoAvenger";
				forceHideGunner = 1;
				gunnerCompartments = "Compartment2";
				primaryGunner = 1;
				isPersonTurret = 0;
				gunnerName = "Gunner (Avenger)";
				discreteDistance[] = {100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1200, 1500};
				discreteDistanceInitIndex = 2;
				gunnerAction = "passenger_low01";
				gunnerInAction = "passenger_low01";
				memoryPointGun = "machinegun";
				weapons[]={"vurtual_stinger_veh","vurtual_m3p"};
				magazines[]={"vurtual_8Rnd_stinger","100Rnd_127x99_mag_Tracer_Yellow","100Rnd_127x99_mag_Tracer_Yellow","100Rnd_127x99_mag_Tracer_Yellow"};
				minElev=-10; maxElev=+70; initElev=0;
				minTurn=-180; maxTurn=+180; initTurn=0;
				gunnerOpticsModel = "vurtual_m998\2Dscope_Avenger.p3d";
				class ViewOptics {
					initAngleX=0; minAngleX=-30; maxAngleX=+30;
					initAngleY=0; minAngleY=-100; maxAngleY=+100;
					initFov=0.155; minFov=0.047; maxFov=0.155;
					thermalMode[] = {2,3};
					visionMode[] = {"Normal","Ti"};
				};
				//TODO hitpoints
				class Components {
					class VehicleSystemsDisplayManagerLeft: DefaultVehicleSystemsDisplayManagerLeftSensors {
						class Components: Components {
							class SensorDisplay: SensorDisplay {
								range[] = {8000,4000,2000,1000};
							};
						};
					};
					class VehicleSystemsDisplayManagerRight: VehicleSystemsDisplayManagerLeft {
						x = "(profilenamespace getvariable [""IGUI_GRID_CUSTOMINFORIGHT_X"",	((safezoneX + safezoneW) - (		(10 * 			(			((safezoneW / safezoneH) min 1.2) / 40)) + 0.5 * 			(			((safezoneW / safezoneH) min 1.2) / 40)))])";
						left = 0;
						right = 1;
						defaultDisplay = "SensorDisplay";
					};
				};
			};
			class CargoTurret_CoDriver: CargoTurret_CoDriver {};
		};
		class HitPoints: HitPoints {
			class HitGlass7: HitGlass1 {name="glass7";visual="glass7";armorComponent = "glass7";};
		};
		class VehicleTransport {
			class Cargo {
				dimensions[]				= {"VTV_Cargo_Base","VTV_Cargo_Corner"};
				parachuteClass				= "B_Parachute_02_F";
				canBeTransported            = 1;
				parachuteHeightLimit		= 5;
			};
		};
		vurtual_hmmwv_rear_curtain = 0;
		vurtual_hmmwv_cargo_cover = 0;
		vurtual_hmmwv_always_cargo = 1;
		transportSoldier = 0;
		class AnimationSources: AnimationSources {
			class spare_hide: spare_hide {
				displayName = "";
				initPhase = 1;
			};
			class tailgate_fold: tailgate_fold {};
			class fordingkit_hide: fordingkit_hide {};
			class open_window: open_window {};
			class tailgate_hide: tailgate_hide {};
			class roof_hide: roof_hide {};
			class bedseat_fold: bedseat_fold {
				displayName = "";
				onPhaseChanged = "";
			};
			class Bumper_A2: Bumper_A2 {
				displayName = "";
			};
			class Seats_A1: Seats_A1 {
				displayName = "";
			};
			class Seats_A2: Seats_A2 {
				displayName = "";
			};
			class cover_rear_fold: cover_rear_fold {
				displayName = "";
			};
		};
		hiddenSelections[] = {"Camo", "Camo1", "Camo2", "Camo3", "Camo4","Camo5","Camo6","Camo7"};
		hiddenSelectionsTextures[] = {
			"\vurtual_m998\Data\hmmwv_body_canvas_1_co.paa",
			"\vurtual_m998\data\hmmwv_hood_canvas_co.paa",
			"\vurtual_m998\data\hmmwv_regular_1_co.paa",
			"\vurtual_m998\data\hmmwv_parts_1_ca.paa",
			"\vurtual_m998\data\hmmwv_canvas_1_co.paa",
			"\vurtual_m998\data\hmmwv_troopseat_sand_co.paa",
			"\vurtual_m998\data\hmmwv_body_co.paa",
			"\vurtual_m998\data\hmmwv_avenger_co.paa"
		};
		class textureSources {
			class woodland_old {
				displayname = "Woodland (Worn)";
				author = "vurtual";
				textures[] = {
					"\vurtual_m998\Data\hmmwv_body_canvas_1_wl_co.paa",
					"\vurtual_m998\data\hmmwv_hood_canvas_wl_co.paa",
					"\vurtual_m998\data\hmmwv_regular_wl_1_co.paa",
					"\vurtual_m998\data\hmmwv_parts_wl_1_ca.paa",
					"\vurtual_m998\data\hmmwv_canvas_1_green_co.paa",
					"\vurtual_m998\data\hmmwv_troopseat_green_co.paa",
					"\vurtual_m998\data\hmmwv_body_wl_co.paa",
					"\vurtual_m998\data\hmmwv_avenger_wl_co.paa"
				};
				factions[] = {};
			};
			class woodland_new {
				displayname = "Woodland";
				author = "vurtual";
				textures[] = {
					"\vurtual_m998\Data\hmmwv_body_canvas_1_wl2_co.paa",
					"\vurtual_m998\data\hmmwv_hood_canvas_wl2_co.paa",
					"\vurtual_m998\data\hmmwv_regular_1_wl2_co.paa",
					"\vurtual_m998\data\hmmwv_parts_1_wl2_ca.paa",
					"\vurtual_m998\data\hmmwv_canvas_1_wl2_co.paa",
					"\vurtual_m998\data\hmmwv_troopseat_green_co.paa",
					"\vurtual_m998\data\hmmwv_body_wl2_co.paa",
					"\vurtual_m998\data\hmmwv_avenger_green_co.paa"
				};
				factions[] = {};
			};
			class green {
				displayname = "Green";
				author = "vurtual";
				textures[] = {
					"\vurtual_m998\Data\hmmwv_body_canvas_1_green_co.paa",
					"\vurtual_m998\data\hmmwv_hood_canvas_green_co.paa",
					"\vurtual_m998\data\hmmwv_regular_1_green_co.paa", 
					"\vurtual_m998\data\hmmwv_parts_1_green_ca.paa",
					"\vurtual_m998\data\hmmwv_canvas_1_green_co.paa",
					"\vurtual_m998\data\hmmwv_troopseat_green_co.paa", 
					"\vurtual_m998\data\hmmwv_body_green_co.paa",
					"\vurtual_m998\data\hmmwv_avenger_green_co.paa"
				};
				factions[] = {};
			};
			class desert {
				displayname = "Desert";
				author = "vurtual";
				textures[] = {
					"\vurtual_m998\Data\hmmwv_body_canvas_1_co.paa",
					"\vurtual_m998\data\hmmwv_hood_canvas_co.paa",
					"\vurtual_m998\data\hmmwv_regular_1_co.paa",
					"\vurtual_m998\data\hmmwv_parts_1_ca.paa",
					"\vurtual_m998\data\hmmwv_canvas_1_co.paa",
					"\vurtual_m998\data\hmmwv_troopseat_sand_co.paa",
					"\vurtual_m998\data\hmmwv_body_co.paa",
					"\vurtual_m998\data\hmmwv_avenger_co.paa"
				};
				factions[] = {};
			};
		};
	};
};



	
