package Vehicle
using RTDB, BaseStats, Driving, Camera

v_standard25_mahir_supron : Vehicle_4w_Default
{
	entityTemplatePath = "base\vehicles\standard\v_standard25_mahir_supron_01__basic_01.ent";
	visualTags = 
	[
		"Standard"
	];
	manufacturer = "Vehicle.Mahir";
	destroyedAppearance = "mahir_supron__basic_burnt_01";
	randomPassengers = 
	[
		"Passengers.LowlifeDriverEntry", "Passengers.LowlifePassengerFrontEntry", "Passengers.LowlifePassengerBackEntry"
	];
	displayName = "LocKey#1609";
	vehicleUIData = "Vehicle.VehicleMahirSupronUIData";
	fk< UIIcon > icon = "UIIcon.mahir_supron__basic_player_01";
	headlightColor = 
	[
		255, 240, 200, 255
	];
	fxWheelsDecals = "Vehicle.FxWheels_Radial_S";
	model = "Vehicle.Supron";
	string hijackDifficulty = "TRIVIAL";
	string crackLockDifficulty = "TRIVIAL";
	widgetStyleSheetPath = "base/gameplay/gui/widgets/vehicle/mahir/mahir_regular.inkstyle";
	fk< VehicleDataPackage > vehDataPackage = "Vehicle.VehicleDataPackageStandard25";
	player_audio_resource = "v_car_mahir_supron";
	traffic_audio_resource = "v_car_mahir_supron_traffic";
	statModifierGroups += 
	[
		"VehicleStatPreset.Weak"
	];
	enableDestruction = true;
	destruction = "Vehicle.VehicleDestructionParamsSupron";
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.32f;
			rimRadius = 0.22f;
			tireWidth = 0.20f;
			wheelOffset = 0.03f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.32f;
			rimRadius = 0.22f;
			tireWidth = 0.20f;
			wheelOffset = 0.03f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
	vehDriveModelData = "Vehicle.VehicleDriveModelData_Supron";
	vehEngineData = 
	{
		engineMaxTorque = 230.f;
		finalGearTorqueDecimationScalor = 0.95f;
	} : VehicleEngineData_4_Regular_Medium;
	tppCameraPresets = 
	[
		"Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_High_Close", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_High_Medium", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_High_Far", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_High_DriverCombatClose", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_High_DriverCombatMedium", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_High_DriverCombatFar", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_Low_Close", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_Low_Medium", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_Low_Far", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_Low_DriverCombatClose", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_Low_DriverCombatMedium", "Camera.VehicleTPP_v_standard25_mahir_supron_CameraPreset_Low_DriverCombatFar"
	];
	vehDriver_FPPCameraParams = 
	{
		enable_rear_view = true;
		rear_view_offset = ( 0.0000, -1.8321, 1.4891 );
	} : VehicleDriverFPPCameraParamsDefault;
	trafficSuspension = "Vehicle.TrafficSuspension_Standard";
}

VehicleWheelDrivingPreset_Supron_Front : VehicleWheelDrivingPreset_4_FWD_Front
{
	mass = 15.0f;
	maxBrakingTorque = 300.0f;
	frictionMulLongitudinal = 0.87f;
	frictionMulLateral = 0.88f;
	tireLateralSlipEffectsMul = 0.95f;
	swaybarStiffness = 19.0f;
	swaybarLengthScalar = 1.4f;
	swaybarDisplacementLimit = 0.25;
	springStiffness = 20.0f;
	springDamping = 3600;
	springReboundDamping = 3300;
	springBoundDampingLowRate = 2000.0f;
	springReboundDampingLowRate = 1800.0f;
	springDampingLowRateCompression = 0.15f;
	springDampingHighRateCompression = 0.30f;
	extremeCompressionEventScalor = 0.8f;
	logicalSuspensionCompressionLength = 0.41f;
	visualSuspensionDroop = 0.12f;
	wheelsVerticalOffset = 0.01f;
}

VehicleWheelDrivingPreset_Supron_Rear : VehicleWheelDrivingPreset_4_FWD_Rear
{
	mass = 15.0f;
	maxBrakingTorque = 240.0f;
	frictionMulLongitudinal = 0.87f;
	frictionMulLateral = 0.87f;
	swaybarStiffness = 13.0f;
	swaybarLengthScalar = 1.3f;
	swaybarDisplacementLimit = 0.25;
	springStiffness = 18.0f;
	springDamping = 3700;
	springReboundDamping = 3100;
	springBoundDampingLowRate = 1900.0f;
	springReboundDampingLowRate = 1800.0f;
	springDampingLowRateCompression = 0.15f;
	springDampingHighRateCompression = 0.30f;
	extremeCompressionEventScalor = 0.8f;
	logicalSuspensionCompressionLength = 0.41f;
	visualSuspensionDroop = 0.10f;
	wheelsVerticalOffset = 0.01f;
}

VehicleBurnOut_Supron : VehicleBurnOut_4w_FWD
{
	maxSpeedToInitiateBurnOut = 12.0f;
	lateralForceMaxAcceleration = 0.2f;
	lateralForceMaxSpeed = 1.8f;
	maxDriveWheelSlipRatio = 10.0f;
	maxLongFrictionSlipRatioMultipler = 0.7f;
}

VehicleDriveModelData_Supron : VehicleDriveModelData_Regular_Small_FWD
{
	chassis_mass = 1600.0f;
	total_mass = 1600.0f;
	center_of_mass_offset = ( 0.0f, 0.15f, 0.36f );
	momentOfInertia = ( 2370.0f, 805.0f, 2300.0f );
	airResistanceFactor = 2.2f;
	wheelTurnMaxSubPerSecond = 115.f;
	wheelsFrictionMap = "CarDrivingFrictionMap.Default_FWD";
	wheelSetup = 
	{
		frontPreset = 
		{
		} : VehicleWheelDrivingPreset_Supron_Front;
		backPreset = 
		{
		} : VehicleWheelDrivingPreset_Supron_Rear;
	} : VehicleWheelDrivingSetup_4_FWD;
	burnOut = 
	{
	} : VehicleBurnOut_Supron;
}

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

v_standard25_mahir_supron_poor : v_standard25_mahir_supron
{
	visualTags = 
	[
		"Poor"
	];
	headlightColor = 
	[
		255, 230, 150, 255
	];
	randomPassengers = 
	[
		"Passengers.LowlifeDriverEntry", "Passengers.LowlifePassengerFrontEntry", "Passengers.LowlifePassengerBackEntry"
	];
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.32f;
			rimRadius = 0.245f;
			tireWidth = 0.20f;
			wheelOffset = 0.03f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.32f;
			rimRadius = 0.245f;
			tireWidth = 0.20f;
			wheelOffset = 0.03f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
}

[ EP1 ]
v_standard25_mahir_supron_poor_dogtown : v_standard25_mahir_supron_poor
{
	[ EP1 ]
	randomPassengers = 
	[
		"Passengers.EP1StacksDriverEntry", "Passengers.EP1StacksWorkerPassengerFrontEntry", "Passengers.EP1StacksPassengerBackEntry"
	];
}

v_standard25_mahir_voodoo_boys : v_standard25_mahir_supron
{
	visualTags = 
	[
		"VoodooBoys"
	];
	headlightColor = 
	[
		255, 220, 220, 255
	];
}

v_standard25_mahir_mox : v_standard25_mahir_supron_sport
{
	visualTags = 
	[
		"TheMox"
	];
	headlightColor = 
	[
		255, 255, 255, 255
	];
}

v_standard25_mahir_supron_sport : v_standard25_mahir_supron
{
	visualTags = 
	[
		"Sport"
	];
	displayName = "LocKey#94031";
	vehicleUIData = 
	{
		horsepower = 155.0f;
		mass = 1231.0f;
		info = "LocKey#94423";
	} : VehicleMahirSupronUIData;
	headlightColor = 
	[
		210, 210, 255, 255
	];
	player_audio_resource = "v_car_mahir_supron_gt";
	traffic_audio_resource = "v_car_mahir_supron_traffic";
	fxWheelsDecals = "Vehicle.FxWheels_Radial_M";
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.32f;
			rimRadius = 0.255f;
			tireWidth = 0.27f;
			wheelOffset = 0.05f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.32f;
			rimRadius = 0.255f;
			tireWidth = 0.27f;
			wheelOffset = 0.05f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
	vehDriveModelData = 
	{
		wheelSetup = 
		{
			frontPreset = 
			{
				frictionMulLongitudinal = 0.89f;
				frictionMulLateral = 0.89f;
				tireLateralSlipEffectsMul = 0.85f;
				maxBrakingTorque = 350.0f;
				swaybarStiffness = 21.0f;
			} : VehicleWheelDrivingPreset_Supron_Front;
			backPreset = 
			{
				frictionMulLongitudinal = 0.89f;
				frictionMulLateral = 0.89f;
				tireLateralSlipEffectsMul = 1.25f;
				maxBrakingTorque = 280.0f;
				swaybarStiffness = 17.0f;
			} : VehicleWheelDrivingPreset_Supron_Rear;
		} : VehicleWheelDrivingSetup_4_FWD;
		burnOut = 
		{
			burnOutGripBonus = 6.0f;
		} : VehicleBurnOut_Supron;
	} : VehicleDriveModelData_Supron;
	vehEngineData = 
	{
		engineMaxTorque = 270.f;
	} : VehicleEngineData_4_Sport_Transaxle_Turbo;
}

VehicleDestructionParamsSupron : VehicleDestructionParamsDefault_4w
{
	gridDimensions = ( 1.8f, 3.35f, 0.55f );
	gridLocalOffset = ( 0.0f, 0.05f, 0.9f );
	chargePortCenter = ( -0.899035454f, -1.44633007f, 0.646572351f );
	glass = 
	[
		{
			component = "window_f";
			effect = "damage_windshield";
			isWindshield = true;
			gridCells = 
			[
				6, 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;
		}, 
		{
			component = "window_bl";
			effect = "damage_glass_bl";
			gridCells = 
			[
				2, 10
			];
			threshold = 0.1;
		}, 
		{
			component = "window_br";
			effect = "damage_glass_br";
			gridCells = 
			[
				3, 11
			];
			threshold = 0.1;
		}, 
		{
			component = "body_01_window_bl_01";
			effect = "damage_glass_body_01_window_bl_01";
			gridCells = 
			[
				0, 18
			];
			threshold = 0.1;
		}, 
		{
			component = "body_01_window_br_01";
			effect = "damage_glass_body_01_window_br_01";
			gridCells = 
			[
				1, 9
			];
			threshold = 0.1;
		}, 
		{
			component = "trunk_a_window_01";
			effect = "damage_glass_trunk_a_window_01";
			gridCells = 
			[
				0, 8
			];
			threshold = 0.15;
		}, 
		{
			component = "trunk_b_window_01";
			effect = "damage_glass_trunk_b_window_01";
			gridCells = 
			[
				1, 9
			];
			threshold = 0.15;
		}
	];
	detachableParts = 
	[
		{
			name = "TrunkLeft";
			gridCells = 
			[
				0
			];
			threshold = 0.8;
			components = 
			[
				"trunk_a", "trunk_a_shadow", "trunk_a_window_01"
			];
		}, 
		{
			name = "License_plate";
			gridCells = 
			[
				1
			];
			threshold = 0.07;
			components = 
			[
				"license_plate"
			];
		}, 
		{
			name = "TrunkRight";
			gridCells = 
			[
				1
			];
			threshold = 0.8;
			components = 
			[
				"trunk_b", "trunk_b_shadow", "trunk_b_window_01"
			];
		}, 
		{
			name = "Hood";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.8;
			components = 
			[
				"hood_a", "hood_a_shadow"
			];
		}, 
		{
			name = "BumperFront";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.7;
			components = 
			[
				"bumper_f_01", "bumper_f_shadow"
			];
		}, 
		{
			name = "junk_fuelcell_01";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.5;
			components = 
			[
				"junk_fuelcell_01"
			];
		}, 
		{
			name = "junk_engine";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.5;
			components = 
			[
				"junk_engine"
			];
		}, 
		{
			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", "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"
			];
		}, 
		{
			name = "DoorBackLeft";
			gridCells = 
			[
				2
			];
			threshold = 0.5;
			components = 
			[
				"door_bl_a", "door_bl_shadow", "window_bl"
			];
		}, 
		{
			name = "DoorBackRight";
			gridCells = 
			[
				3
			];
			threshold = 0.5;
			components = 
			[
				"door_br_a", "door_br_shadow", "window_br"
			];
		}
	];
	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_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 = 
			[
				6
			];
			threshold = 0.1f;
		}, 
		{
			component = "position_light_right_03";
			gridCells = 
			[
				7
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_left_01";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_right_01";
			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;
		}
	];
	deformableParts = 
	[
		{
			component = "hood_a";
			zones = 
			[
				{
					shapes = 
					[
						0, 1
					];
					gridCells = 
					[
						6, 7
					];
				}
			];
		}, 
		{
			component = "trunk_a";
			zones = 
			[
				{
					shapes = 
					[
						0, 1
					];
					gridCells = 
					[
						0, 1
					];
				}
			];
		}, 
		{
			component = "body_01";
			zones = 
			[
				{
					shapes = 
					[
						7, 8, 10
					];
					gridCells = 
					[
						6, 7
					];
				}, 
				{
					shapes = 
					[
						15, 16, 17
					];
					gridCells = 
					[
						0, 1
					];
				}
			];
		}
	];
}

VehicleMahirSupronUIData : VehicleDefaultUIData
{
	productionYear = "2047-2059";
	driveLayout = "LocKey#45370";
	horsepower = 110.0f;
	mass = 1220.0f;
	info = "LocKey#53564";
}

