class vurtual_hmmwv_base_ecv: vurtual_hmmwv_base_a2 {
	editorSubcategory = "EdSubCat_hmmwv_ecv";
	enginePower = 142;
	class VehicleTransport: VehicleTransport {
		class Cargo: Cargo {};
		class Carrier: Carrier {
			maxLoadMass = 2300;
		};
	};
	class Wheels: Wheels {
		class LF: LF {
			WHEEL_SPRINGS(5220,4,WHEEL_STRENGTH,WHEEL_DAMPER)
		};
		class RF: RF {
			WHEEL_SPRINGS(5220,4,WHEEL_STRENGTH,WHEEL_DAMPER)
		};
		class LR: LR {
			WHEEL_SPRINGS(5220,4,WHEEL_STRENGTH,WHEEL_DAMPER)
		};
		class RR: RR {
			WHEEL_SPRINGS(5220,4,WHEEL_STRENGTH,WHEEL_DAMPER)
		};
	};
};

class vurtual_hmmwv_base_ecv_a: vurtual_hmmwv_base_ecv {
	editorSubcategory = "EdSubCat_hmmwv_ecv_frag";
	class EventHandlers: EventHandlers {
		Explosion = "_this call vurtual_base_fnc_explosion";
	};
	vurtual_base_explosionhandler = 1;
	vurtual_hmmwv_hardtop = 1;
	vurtual_base_explosion_hitpoints[] = {
		{"HitARockerL",3,"",0},
		{"HitARockerR",3,"",0},
		{"HitAUnderbody",30,"",0},
		{"HitGlass1",2,"",0},
		{"HitGlass2",2,"",0},
		{"HitDoorL",10.5,"",0}, //+2.5
		{"HitDoorR",10.5,"",0}, //+2.5
		{"HitDoorL2",10.5,"",0}, //+2.5
		{"HitDoorR2",10.5,"",0}, //+2.5
		{"HitGlass3",2,"",0},
		{"HitGlass4",2,"",0},
		{"HitGlass5",2,"",0},
		{"HitGlass6",2,"",0},
		{"HitARoof",10,"",0},
		{"HitARear",10,"",0}
	};
	vurtual_base_explosion_maxarmor = 110;
	crewExplosionProtection = 0.9999;
	explosionShielding = 0.4; //scaled up by explosion handler
	class HitPoints: HitPoints {

			

		class HitGlass1: HitGlass1 {
			armor = -250;
			explosionShielding = 0.5;
			armorComponent = "glass1";
		};
		class HitGlass2: HitGlass2 {
			armor = -250;
			explosionShielding = 0.5;
			armorComponent = "glass2";
		};
		class HitGlass3: HitGlass3 {
			armor = -250;
			visual = "glass3";
			explosionShielding = 0.5;
			armorComponent = "glass3";
		};
		class HitGlass4: HitGlass4 {
			armor = -250;
			visual = "glass4";
			explosionShielding = 0.5;
			armorComponent = "glass4";
		};
		class HitGlass5: HitGlass5 {
			armor = -250;
			explosionShielding = 0.5;
			visual = "glass5";
			armorComponent = "glass5";
		};
		class HitGlass6: HitGlass6 {
			armor = -250;
			explosionShielding = 0.5;
			visual = "glass6";
			armorComponent = "glass6";
		};
		class HitGlass_GPK: HitGlass1 {
			armor = -1000;
			visual = "glass_gpk";
			armorComponent = "glass_gpk";
			name = "hit_armor_gpk_p";
		};
		class HitGlass_GSK: HitGlass1 {
			armor = -1000;
			visual = "glass_gsk";
			armorComponent = "glass_gsk";
			name = "hit_armor_shield_p";
		};
		class HitARockerL {
			armor = -300*4;
			armorComponent = "armor_rocker_l";
			name = "hit_armor_rocker_l_p";
			minimalHit = 0.075/4;
			passthrough = 0;
			explosionShielding = 0.6;
			radius = 0.15;
			visual = "armor_rocker_l";
		};
		class HitARockerR: HitARockerL { armorComponent = "armor_rocker_r"; name = "hit_armor_rocker_r_p"; visual = "armor_rocker_r"; };
		class HitARoof: HitARockerL { armorComponent = "armor_roof"; name = "hit_armor_roof_p"; visual = "armor_roof"; };
		class HitDoorL: HitARockerL { armorComponent = "armor_door_left"; name = "hit_door_left_p"; visual = "door_left"; };
		class HitDoorR: HitARockerL { armorComponent = "armor_door_right"; name = "hit_door_right_p"; visual = "door_right"; };
		class HitDoorL2: HitARockerL { armorComponent = "armor_door_left2"; name = "hit_door_left2_p"; visual = "door_left2"; };
		class HitDoorR2: HitARockerL { armorComponent = "armor_door_right2"; name = "hit_door_right2_p"; visual = "door_right2"; };
		class HitAUnderbody: HitARockerL { armorComponent = "armor_underbody"; name = "hit_armor_underbody_p"; visual = "armor_underbody"; };
		class HitArmorGPK: HitARockerL { armorComponent = "GunnerProtectionKit"; name = "hit_armor_gpk_p"; visual = "GunnerProtectionKit"; };

		class HitARear: HitARockerL { armorComponent = "armor_rear"; name = "hit_armor_rear_p"; visual = "armor_rear_visual"; };

	};
	vurtual_hmmwv_addweight = 0;
	cargoCompartments[] = {"Compartment1","Compartment2"};
	class AnimationSources:AnimationSources {
		class HitARockerL { source = "Hit"; raw = 1; hitpoint = "HitARockerL"; };
		class HitARockerR: HitARockerL { hitpoint = "HitARockerR"; };
		class HitARoof: HitARockerL { hitpoint = "HitARoof"; };
		class HitAUnderbody: HitARockerL { hitpoint = "HitAUnderbody"; };
		class HitArmorGPK: HitARockerL { hitpoint = "HitArmorGPK"; };
		class HitARear: HitARockerL { hitpoint = "HitARear"; };
		class HitGlass_GPK: HitARockerL { hitpoint = "hitGlass_gpk"; };
		class HitGlass_GSK: HitARockerL { hitpoint = "hitGlass_gsk"; };
		class door_armor_hide: door_armor_hide {
			displayName = "";
		};
		class Seats_A1: Seats_A1 {
			displayName = "";
		};
		class Seats_A2: Seats_A2 {
			displayName = "";
		};
		class GPK_hide {
			source = "user";
			initPhase = 0;
			animPeriod = 0.1;
			displayName = "Remove GPK";
			
		};
		class armor_akit_hide {
			source = "user";
			initPhase = 0;
			animPeriod = 0.1;
			//displayName = "Remove A-Kit Armor";
			//mass = -300;
		};
		class armor_roof_hide {
			source = "user";
			initPhase = 0;
			animPeriod = 0.1;
			onPhaseChanged = "(_this select 0) animateSource ['armor_roof_hide',(_this select 1),true]";
			forceAnimate[] = {"roof_hide",0};
			forceAnimatePhase = 0;
			//displayName = "Remove Roof Armor";
			//mass = -270;
		};
		class roof_hide: roof_hide {
			forceAnimate[] = {"armor_roof_hide",1};
			forceAnimatePhase = 1;
			displayName = "";
		};
		class armor_rear_hide {
			source = "user";
			initPhase = 0;
			animPeriod = 0.1;
			//displayName = "Remove Rear Armor";
		};
		class Door_Hide: Door_Hide {
			displayName = "";
		};
		class fordingkit_hide: fordingkit_hide {};
		class tailgate_fold: tailgate_fold {};
		class open_window: open_window {};
		class bedseat_fold: bedseat_fold {};
		class m1151_rear_hatch {
			source = "user";
			initPhase = 0;
			animPeriod = 0.5;
		};
		class m1114_hide {
			source = "user";
			initPhase = 1;
			animPeriod = 0.1;
		};
	};
};


