package Vehicle
using RTDB, BaseStats, Driving, Camera

v_sport2_villefort_alvarado_hearse : v_sport2_villefort_alvarado
{
	entityTemplatePath = "ep1\vehicles\sport\v_sport2_villefort_alvarado__hearse_01.ent";
	displayName = "LocKey#94013";
	vehicleUIData = "Vehicle.VehicleVillefortAlvaradoHearseUIData";
	destroyedAppearance = "villefort_alvarado_hearse_01_basic_burnt_01";
	destruction = "Vehicle.VehicleDestructionParamsAlvaradoHearse";
	model = "Vehicle.Hearse";
	player_audio_resource = "v_car_villefort_alvarado_wagon";
	traffic_audio_resource = "v_car_villefort_alvarado_wagon_traffic";
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.40f;
			rimRadius = 0.315f;
			tireWidth = 0.29f;
			wheelOffset = 0.05f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.40f;
			rimRadius = 0.34f;
			tireWidth = 0.29f;
			wheelOffset = 0.05f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
	vehDriveModelData = "Vehicle.VehicleDriveModelData_Alvarado_Hearse";
	vehDriver_FPPCameraParams = 
	{
		lookat_offset_vertical = 0.07f;
		enable_rear_view = true;
		rear_view_offset = ( 0.0000, -3.3507, 0.2962 );
	} : VehicleDriverFPPCameraParamsDefault;
}

VehicleDriveModelData_Alvarado_Hearse : VehicleDriveModelData_Alvarado
{
	center_of_mass_offset = ( 0.0f, 0.16f, 0.23f );
	momentOfInertia = ( 7400.0f, 1170.0f, 8020.0f );
	chassis_mass = 2404.0f;
	total_mass = 2404.0f;
}

v_sport2_villefort_alvarado_hearse_poor : v_sport2_villefort_alvarado_hearse
{
	visualTags = 
	[
		"Poor"
	];
	randomPassengers = 
	[
		"Passengers.LowlifeDriverEntry", "Passengers.LowlifePassengerFrontEntry"
	];
}

v_sport2_villefort_alvarado_hearse_premium : v_sport2_villefort_alvarado_hearse
{
	visualTags = 
	[
		"Premium"
	];
	randomPassengers = 
	[
		"Passengers.CorporatDriverEntry", "Passengers.CorporatPassengerFrontEntry"
	];
}

VehicleDestructionParamsAlvaradoHearse : VehicleDestructionParamsDefault_4w
{
	chargePortCenter = ( -1.05772018f, -2.76122379f, 0.472473741f );
	glass = 
	[
		{
			component = "window_f_01";
			effect = "damage_windshield";
			isWindshield = true;
			gridCells = 
			[
				4, 5, 12, 13
			];
			threshold = 0.15;
		}, 
		{
			component = "window_fl_01";
			effect = "damage_glass_fl_01";
			gridCells = 
			[
				2, 10
			];
			threshold = 0.1;
		}, 
		{
			component = "window_fr_01";
			effect = "damage_glass_fr_01";
			gridCells = 
			[
				3, 11
			];
			threshold = 0.1;
		}, 
		{
			component = "window_bl_02";
			effect = "damage_glass_bl_02";
			gridCells = 
			[
				2, 10
			];
			threshold = 0.1;
		}, 
		{
			component = "window_bl_03";
			effect = "damage_glass_bl_03";
			gridCells = 
			[
				0, 2, 8, 10
			];
			threshold = 0.1;
		}, 
		{
			component = "window_l_01";
			effect = "damage_glass_l_01";
			gridCells = 
			[
				0, 8
			];
			threshold = 0.1;
		}, 
		{
			component = "window_br_02";
			effect = "damage_glass_br_02";
			gridCells = 
			[
				11, 3
			];
			threshold = 0.1;
		}, 
		{
			component = "window_br_03";
			effect = "damage_glass_br_03";
			gridCells = 
			[
				1, 3, 9, 11
			];
			threshold = 0.1;
		}, 
		{
			component = "window_r_01";
			effect = "damage_glass_r_01";
			gridCells = 
			[
				1, 9
			];
			threshold = 0.1;
		}, 
		{
			component = "trunk_window_01";
			effect = "damage_glass_b";
			gridCells = 
			[
				0, 1, 8, 9
			];
			threshold = 0.1;
		}
	];
	detachableParts = 
	[
		{
			name = "Trunk_a";
			gridCells = 
			[
				0, 1, 8, 9
			];
			threshold = 0.6;
			components = 
			[
				"trunk_a", "trunk_a_shadow"
			];
		}, 
		{
			name = "Trunk_b";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.6;
			components = 
			[
				"trunk_b", "trunk_b_shadow"
			];
		}, 
		{
			name = "Hood";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.7;
			components = 
			[
				"hood_a", "hood_a_shadow"
			];
		}, 
		{
			name = "license_plate";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.07;
			components = 
			[
				"license_plate"
			];
		}, 
		{
			name = "BumperFront";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.6;
			components = 
			[
				"bumper_f_01", "bumper_f_shadow"
			];
		}, 
		{
			name = "BumperBack";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.6;
			components = 
			[
				"bumper_hearse_b_01", "bumper_b_shadow", "bumper_b_01_lights", "license_plate"
			];
		}, 
		{
			name = "MirrorLeft";
			gridCells = 
			[
				4
			];
			threshold = 0.07;
			components = 
			[
				"mirror_fl"
			];
		}, 
		{
			name = "MirrorRight";
			gridCells = 
			[
				5
			];
			threshold = 0.07;
			components = 
			[
				"mirror_fr"
			];
		}, 
		{
			name = "DoorFrontLeft";
			gridCells = 
			[
				4
			];
			threshold = 0.5;
			components = 
			[
				"door_fl_a", "door_fl_shadow", "window_fl_01"
			];
		}, 
		{
			name = "DoorFrontRight";
			gridCells = 
			[
				5
			];
			threshold = 0.5;
			components = 
			[
				"door_fr_a", "door_fr_shadow", "window_fr_01"
			];
		}, 
		{
			name = "DoorBackLeft";
			gridCells = 
			[
				4
			];
			threshold = 0.5;
			components = 
			[
				"door_bl_a", "door_bl_shadow", "window_bl_02"
			];
		}, 
		{
			name = "DoorBackRight";
			gridCells = 
			[
				5
			];
			threshold = 0.5;
			components = 
			[
				"door_br_a", "door_br_shadow", "window_br_02"
			];
		}
	];
	lights = 
	[
		{
			component = "head_light_left_01";
			gridCells = 
			[
				6
			];
			threshold = 0.1f;
		}, 
		{
			component = "head_light_right_01";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_left_01";
			gridCells = 
			[
				6
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_left_02";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_right_01";
			gridCells = 
			[
				7
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_right_02";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}, 
		{
			component = "reverse_light_left_01";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "reverse_light_right_01";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_left_01";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_right_01";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}, 
		{
			component = "break_light_back_01";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.1f;
		}
	];
	deformableParts = 
	[
		{
			component = "bumper_f_01";
			zones = 
			[
				{
					shapes = 
					[
						0, 1, 2, 3, 4, 5
					];
					gridCells = 
					[
						6, 7
					];
				}
			];
		}, 
		{
			component = "diodes";
			zones = 
			[
				{
					shapes = 
					[
						0, 1, 2, 3, 4, 5
					];
					gridCells = 
					[
						6, 7
					];
				}
			];
		}, 
		{
			component = "bumper_hearse_b_01";
			zones = 
			[
				{
					shapes = 
					[
						0, 1, 2, 3
					];
					gridCells = 
					[
						0, 1
					];
				}
			];
		}, 
		{
			component = "hood_a";
			zones = 
			[
				{
					shapes = 
					[
						0, 1
					];
					gridCells = 
					[
						6, 7
					];
				}
			];
		}, 
		{
			component = "trunk_a";
			zones = 
			[
				{
					shapes = 
					[
						0
					];
					gridCells = 
					[
						0, 1, 8, 9
					];
				}
			];
		}, 
		{
			component = "trunk_b";
			zones = 
			[
				{
					shapes = 
					[
						0, 1, 2, 3, 4
					];
					gridCells = 
					[
						0, 1, 8, 9
					];
				}
			];
		}, 
		{
			component = "body_01";
			zones = 
			[
				{
					shapes = 
					[
						1, 2, 3, 4, 5, 6, 7, 9
					];
					gridCells = 
					[
						6, 7
					];
				}, 
				{
					shapes = 
					[
						13, 15, 16
					];
					gridCells = 
					[
						0, 1
					];
				}
			];
		}
	];
}

VehicleVillefortAlvaradoHearseUIData : VehicleDefaultUIData
{
	productionYear = "2044-2055";
	driveLayout = "LocKey#45371";
	horsepower = 407.0f;
	mass = 2324.0f;
	info = "LocKey#53541";
}

