package Vehicle
using RTDB, BaseStats, Driving, Camera

v_utility4_kaukaz_zeya : Vehicle_4w_Default
{
	entityTemplatePath = "base\vehicles\utility\v_utility4_kaukaz_zeya__basic_01.ent";
	visualTags = 
	[
		"Standard"
	];
	manufacturer = "Vehicle.Kaukaz";
	destroyedAppearance = "kaukaz_zeya__basic_zeya_burnt_01";
	randomPassengers = 
	[
		"Passengers.WorkerSpecialistDriverEntry"
	];
	displayName = "LocKey#1623";
	vehicleUIData = "Vehicle.VehicleKaukazZeyaUIData";
	fxWheelsDecals = "Vehicle.FxWheels_AllTerrain_L";
	widgetStyleSheetPath = "base/gameplay/gui/widgets/vehicle/bratsk/bratsk_stylesheet_regular.inkstyle";
	model = "Vehicle.Zeya";
	player_audio_resource = "v_car_kaukaz_zeya";
	traffic_audio_resource = "v_car_kaukaz_zeya_traffic";
	statModifierGroups += 
	[
		"VehicleStatPreset.Strong"
	];
	enableDestruction = true;
	destruction = "Vehicle.VehicleDestructionParamsZeya";
	tags += 
	[
		"DisableChargePortDestruction"
	];
	unmountOffsetPosition = ( 2.5, 1.0, 2.5 );
	vehDataPackage = "Vehicle.VehicleDataPackageUtility4";
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.43f;
			rimRadius = 0.32f;
			tireWidth = 0.38f;
			wheelOffset = 0.08f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.43f;
			rimRadius = 0.32f;
			tireWidth = 0.38f;
			wheelOffset = 0.08f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
	vehDriveModelData = 
	{
		total_mass = 3000.0f;
		center_of_mass_offset = ( 0.0f, 0.1f, 0.2f );
		wheelSetup = 
		{
			frontPreset = 
			{
				maxBrakingTorque = 150.0f;
				springStiffness = 50.f;
				springDamping = 12000;
			} : VehicleWheelPreset_Regular_Front;
			backPreset = 
			{
				maxBrakingTorque = 100.0f;
				springStiffness = 50.f;
				springDamping = 12000;
			} : VehicleWheelPreset_Regular_Back;
		} : VehicleWheelDrivingSetup_4_RWD;
	} : VehicleDriveModelData_Utility;
	vehEngineData = 
	{
		resistanceTorque = 400.f;
	} : Vehicle.VehicleEngineData_4_Utility;
	tppCameraPresets = 
	[
		"Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_High_Close", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_High_Medium", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_High_Far", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_High_DriverCombatClose", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_High_DriverCombatMedium", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_High_DriverCombatFar", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_Low_Close", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_Low_Medium", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_Low_Far", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_Low_DriverCombatClose", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_Low_DriverCombatMedium", "Camera.VehicleTPP_v_utility4_kaukaz_zeya_Preset_Low_DriverCombatFar"
	];
	vehDriver_FPPCameraParams = 
	{
		enable_rear_view = true;
		rear_view_offset = ( 0.0000, -2.0230, 0.6005 );
	} : VehicleDriverFPPCameraParamsDefault;
	vehDriverCombat_FPPCameraParams = 
	{
		lookat_yaw_left_offset = 0.65f;
		lookat_yaw_left_up_offset = 0.0f;
		lookat_yaw_right_offset = 0.2f;
		lookat_yaw_right_up_offset = 0.0f;
		lookat_offset_vertical = 0.05f;
		is_forward_offset = 1.0f;
		forward_offset_value = 0.0f;
	} : VehicleDriverCombatFPPCameraParamsDefault;
	weaponSafeModeBounds = 
	{
		enableSafeModeBounds = true;
		backBound = 
		{
			yawMin = -100.0f;
			yawMax = 180.f;
		};
	} : WeaponSafeModeBounds;
	trafficSuspension = "Vehicle.TrafficSuspension_Utility";
}

v_utility4_kaukaz_zeya_quest : v_utility4_kaukaz_zeya
{
	savable = true;
	tags += 
	[
		"Immortal", "IgnoreImpulses"
	];
	vehDefaultState = 
	{
		DisableAllInteractions = true;
	};
}

v_utility4_kaukaz_zeya_container : v_utility4_kaukaz_zeya
{
	entityTemplatePath = "base\vehicles\utility\v_utility4_kaukaz_zeya__container_01.ent";
	visualTags = 
	[
		"Standard"
	];
	destroyedAppearance = "kaukaz_zeya__basic_zeya_burnt_container_01";
	randomPassengers = 
	[
		"Passengers.WorkerSpecialistDriverEntry"
	];
	tags += 
	[
		"TriggerPrevention"
	];
}

[ EP1 ]
v_utility4_kaukaz_zeya_container_dogtown : v_utility4_kaukaz_zeya_container
{
	[ EP1 ]
	randomPassengers = 
	[
		"Passengers.EP1StacksWorkerDriverEntry", "Passengers.EP1StacksWorkerPassengerFrontEntry"
	];
}

v_utility4_kaukaz_zeya_freight : v_utility4_kaukaz_zeya
{
	entityTemplatePath = "base\vehicles\utility\v_utility4_kaukaz_zeya__freight_01.ent";
	visualTags = 
	[
		"Standard"
	];
	destroyedAppearance = "kaukaz_zeya__basic_zeya_burnt_freight_01";
	randomPassengers = 
	[
		"Passengers.WorkerSpecialistDriverEntry"
	];
	tags += 
	[
		"TriggerPrevention"
	];
}

v_utility4_kaukaz_zeya_full : v_utility4_kaukaz_zeya
{
	entityTemplatePath = "base\vehicles\utility\v_utility4_kaukaz_zeya__full_01.ent";
	visualTags = 
	[
		"Standard"
	];
	destroyedAppearance = "kaukaz_zeya__basic_zeya_burnt_full_01";
	randomPassengers = 
	[
		"Passengers.MunicipialMaleDriverEntry"
	];
	tags += 
	[
		"TriggerPrevention"
	];
}

[ EP1 ]
v_utility4_kaukaz_zeya_full_dogtown : v_utility4_kaukaz_zeya_full
{
	[ EP1 ]
	randomPassengers = 
	[
		"Passengers.EP1StacksWorkerDriverEntry", "Passengers.EP1StacksWorkerPassengerFrontEntry"
	];
}

v_utility4_kaukaz_zeya_barrels : v_utility4_kaukaz_zeya
{
	entityTemplatePath = "base\vehicles\utility\v_utility4_kaukaz_zeya__barrels_01.ent";
	visualTags = 
	[
		"Standard"
	];
	destroyedAppearance = "kaukaz_zeya__basic_zeya_burnt_barrels_01";
	randomPassengers = 
	[
		"Passengers.MunicipialMaleDriverEntry"
	];
	tags += 
	[
		"TriggerPrevention"
	];
	player_audio_resource = "v_car_kaukaz_zeya_barrels";
	traffic_audio_resource = "v_car_kaukaz_zeya_traffic";
}

[ EP1 ]
v_utility4_kaukaz_zeya_barrels_dogtown : v_utility4_kaukaz_zeya_barrels
{
	[ EP1 ]
	randomPassengers = 
	[
		"Passengers.EP1StacksWorkerDriverEntry", "Passengers.EP1StacksWorkerPassengerFrontEntry"
	];
}

v_utility4_kaukaz_zeya_kurtz : v_utility4_kaukaz_zeya
{
	entityTemplatePath = "ep1\vehicles\utility\v_utility4_kaukaz_zeya__kurtz_01.ent";
	destroyedAppearance = "kaukaz_zeya__basic_zeya_burnt_full_01";
}

VehicleDestructionParamsZeya : VehicleDestructionParamsDefault_4w
{
	gridDimensions = ( 1.9f, 4.2f, 0.7f );
	gridLocalOffset = ( 0.0f, 0.4f, 1.3f );
	chargePortCenter = ( -1.01262093f, 0.609028995f, -0.0325624645f );
	glass = 
	[
		{
			component = "window_f";
			effect = "damage_windshield";
			isWindshield = true;
			gridCells = 
			[
				6, 7
			];
			threshold = 0.15;
		}, 
		{
			component = "window_f_02";
			effect = "damage_windshield";
			gridCells = 
			[
				6
			];
			threshold = 0.15;
		}, 
		{
			component = "window_f_03";
			effect = "damage_windshield";
			gridCells = 
			[
				7
			];
			threshold = 0.15;
		}, 
		{
			component = "window_fl";
			effect = "damage_glass_fl";
			gridCells = 
			[
				4, 12
			];
			threshold = 0.1;
		}, 
		{
			component = "window_fr";
			effect = "damage_glass_fr";
			gridCells = 
			[
				5, 13
			];
			threshold = 0.1;
		}
	];
	detachableParts = 
	[
		{
			name = "License_plate";
			gridCells = 
			[
				1
			];
			threshold = 0.07;
			components = 
			[
				"license_plate"
			];
		}, 
		{
			name = "Hood";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.8;
			components = 
			[
				"hood_a", "hood_a_shadow"
			];
		}, 
		{
			name = "BumperFront_01";
			gridCells = 
			[
				6
			];
			threshold = 0.7;
			components = 
			[
				"bumper_f_01", "bumper_f_01_shadow"
			];
		}, 
		{
			name = "BumperFront_02";
			gridCells = 
			[
				7
			];
			threshold = 0.7;
			components = 
			[
				"bumper_f_02", "bumper_f_02_shadow"
			];
		}, 
		{
			name = "BumperBack";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.7;
			components = 
			[
				"bumper_b_01", "bumper_b_shadow"
			];
		}, 
		{
			name = "MirrorLeft_01";
			gridCells = 
			[
				4
			];
			threshold = 0.07;
			components = 
			[
				"mirror_fl_01", "mirror_fl_01_shadow"
			];
		}, 
		{
			name = "MirrorRight_01";
			gridCells = 
			[
				5
			];
			threshold = 0.07;
			components = 
			[
				"mirror_fr_01", "mirror_fr_01_shadow"
			];
		}, 
		{
			name = "DoorFrontLeft";
			gridCells = 
			[
				4
			];
			threshold = 0.5;
			components = 
			[
				"door_fl_a", "door_fl_shadow", "window_fl"
			];
		}, 
		{
			name = "DoorFrontRight";
			gridCells = 
			[
				5
			];
			threshold = 0.5;
			components = 
			[
				"door_fr_a", "door_fr_shadow", "window_fr"
			];
		}
	];
	wheels = 
	[
		{
			name = "FrontLeft";
			intact = "tire_01_fl_a";
			flat = "tire_flat_01_fl_a";
		}, 
		{
			name = "FrontRight";
			intact = "tire_01_fr_a";
			flat = "tire_flat_01_fr_a";
		}, 
		{
			name = "BackRight";
			intact = "tire_01_br_a";
			flat = "tire_flat_01_br_a";
		}, 
		{
			name = "BackLeft";
			intact = "tire_01_bl_a";
			flat = "tire_flat_01_bl_a";
		}
	];
	lights = 
	[
		{
			component = "head_light_left_01";
			gridCells = 
			[
				6
			];
			threshold = 0.1f;
		}, 
		{
			component = "head_light_left_02";
			gridCells = 
			[
				6
			];
			threshold = 0.1f;
		}, 
		{
			component = "head_light_right_01";
			gridCells = 
			[
				7
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_left_01";
			gridCells = 
			[
				6
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_right_01";
			gridCells = 
			[
				7
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_left_02";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_right_02";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_left_03";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_right_03";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_01";
			gridCells = 
			[
				0, 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 = "position_light_left_back_01";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_right_back_01";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}
	];
}

VehicleKaukazZeyaUIData : VehicleDefaultUIData
{
	productionYear = "2066-2077";
	driveLayout = "LocKey#45371";
	horsepower = 165.0f;
	mass = 3200.0f;
	info = "LocKey#53576";
}

