package Vehicle
using RTDB, BaseStats, Driving

v_standard2_chevalier_thrax : Vehicle_4w_Default
{
	model = "Vehicle.Thrax";
	fxWheelsDecalsFrontOverride = "Vehicle.FxWheels_Radial_M";
	fxWheelsDecals = "Vehicle.FxWheels_Radial_L";
	entityTemplatePath = "base\vehicles\standard\v_standard2_chevalier_thrax__basic_01.ent";
	visualTags = 
	[
		"Standard"
	];
	manufacturer = "Vehicle.Chevillon";
	randomPassengers = 
	[
		"Passengers.CorporatDriverEntry", "Passengers.CorporatPassengerFrontEntry", "Passengers.CorporatPassengerBackEntry"
	];
	displayName = "LocKey#1624";
	vehicleUIData = "Vehicle.VehicleChevillonThraxUIData";
	fk< UIIcon > icon = "UIIcon.chevalier_thrax__basic_player_01";
	headlightColor = 
	[
		210, 210, 255, 255
	];
	destroyedAppearance = "chevalier_thrax__basic_burnt_01";
	widgetStyleSheetPath = "base/gameplay/gui/widgets/vehicle/chevillon/chevillon_stylesheet_regular.inkstyle";
	statModifiers += 
	[
		{
			statType = "BaseStats.PowerLevel";
			modifierType = "Additive";
			value = 5;
		} : ConstantStatModifier
	];
	statModifierGroups += 
	[
		"VehicleStatPreset.Durable"
	];
	vehDataPackage = 
	{
		canStoreBody = true;
	} : VehicleDataPackageDefault;
	player_audio_resource = "v_car_chevalier_thrax";
	traffic_audio_resource = "v_car_chevalier_thrax_traffic";
	string hijackDifficulty = "EASY";
	string crackLockDifficulty = "EASY";
	enableDestruction = true;
	destruction = "Vehicle.VehicleDestructionParamsThrax";
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.42f;
			rimRadius = 0.33f;
			tireWidth = 0.27f;
			wheelOffset = 0.06f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.42f;
			rimRadius = 0.33f;
			tireWidth = 0.35f;
			wheelOffset = -0.05f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
	vehDriveModelData = "Vehicle.VehicleDriveModelData_Thrax";
	vehEngineData = 
	{
		reverseDirDelay = 0.4f;
	} : VehicleEngineData_4_Regular_Large;
	vehDriver_FPPCameraParams = 
	{
		lookat_offset_vertical = 0.02f;
		rear_view_offset = ( 0.0000, -1.8087, 0.9435 );
		enable_rear_view = true;
	} : VehicleDriverFPPCameraParamsDefault;
	vehDriverCombat_FPPCameraParams = 
	{
		lookat_yaw_left_offset = 0.6f;
		lookat_yaw_left_up_offset = 0.0f;
		lookat_yaw_right_offset = 0.35f;
		lookat_yaw_right_up_offset = 0.0f;
		lookat_offset_vertical = 0.02f;
		is_forward_offset = 1.0f;
		forward_offset_value = 0.0f;
	} : VehicleDriverCombatFPPCameraParamsDefault;
	tppCameraPresets = 
	[
		"Camera.VehicleTPP_4w_Limo_Thrax_High_Close", "Camera.VehicleTPP_4w_Limo_Thrax_High_Medium", "Camera.VehicleTPP_4w_Limo_Thrax_High_Far", "Camera.VehicleTPP_4w_Limo_Thrax_High_DriverCombatClose", "Camera.VehicleTPP_4w_Limo_Thrax_High_DriverCombatMedium", "Camera.VehicleTPP_4w_Limo_Thrax_High_DriverCombatFar", "Camera.VehicleTPP_4w_Limo_Thrax_Low_Close", "Camera.VehicleTPP_4w_Limo_Thrax_Low_Medium", "Camera.VehicleTPP_4w_Limo_Thrax_Low_Far", "Camera.VehicleTPP_4w_Limo_Thrax_Low_DriverCombatClose", "Camera.VehicleTPP_4w_Limo_Thrax_Low_DriverCombatMedium", "Camera.VehicleTPP_4w_Limo_Thrax_Low_DriverCombatFar"
	];
	trafficSuspension = "Vehicle.TrafficSuspension_Standard";
}

VehicleDriveModelData_Thrax : VehicleDriveModelData_Regular_Medium_RWD
{
	momentOfInertia = ( 5500.0f, 950.0f, 6040.0f );
	chassis_mass = 2140.0f;
	total_mass = 2140.0f;
	wheelTurnMaxAddPerSecond = 65.f;
	wheelTurnMaxSubPerSecond = 105.f;
	turnUpdateMidSpeedTurnMul = 0.81f;
	turnUpdateMaxSpeedTurnMul = 0.41f;
	turnUpdateMidSpeedTurnChangeMul = 1.15f;
	turnUpdateMaxSpeedTurnChangeMul = 1.4f;
	antiSwaybarDampingScalor = 0.75f;
	handbrakeBrakingTorque = 1100.f;
	wheelSetup = 
	{
		frontPreset = 
		{
		} : VehicleWheelDrivingPreset_Thrax_Front;
		backPreset = 
		{
		} : VehicleWheelDrivingPreset_Thrax_Rear;
	} : VehicleWheelDrivingSetup_4_RWD;
	burnOut = 
	{
		lateralForceMaxAcceleration = 0.33f;
		lateralForceMaxSpeed = 6.0f;
		maxDriveWheelSlipRatio = 17.0f;
		lateralAccelForwardSpeedMaxDecimation = 1.0f;
		lateralSlipRatioInfluence = 0.4f;
		maxLateralAccelSlipRatioMultipler = 0.85f;
		maxLongFrictionSlipRatioMultipler = 0.63f;
		burnOutGripBonus = 6.5f;
		maxBrakeForceModifier = 0.9f;
		minBrakeForceModifier = 0.06f;
	} : VehicleBurnOut_4w_RWD_Lux;
}

VehicleWheelDrivingPreset_Thrax_Front : VehicleWheelDrivingPreset_Cortes_Front
{
	maxBrakingTorque = 540.0f;
	frictionMulLateral = 0.86f;
	tireLateralSlipEffectsMul = 0.65f;
	swaybarStiffness = 19.0f;
	swaybarLengthScalar = 1.7f;
	swaybarDisplacementLimit = 0.2f;
	springDamping = 3600;
	springReboundDamping = 3300;
	springBoundDampingLowRate = 2000.0f;
	springReboundDampingLowRate = 1800.0f;
	springDampingLowRateCompression = 0.30f;
	springDampingHighRateCompression = 0.50f;
	wheelsVerticalOffset = 0.05f;
	visualSuspensionCompressionLength = 0.01f;
}

VehicleWheelDrivingPreset_Thrax_Rear : VehicleWheelDrivingPreset_Cortes_Rear
{
	maxBrakingTorque = 320.0f;
	tireLateralSlipEffectsMul = 0.9f;
	tireLongitudinalSlipEffectsMul = 1.0f;
	swaybarStiffness = 17.0f;
	swaybarLengthScalar = 1.4f;
	swaybarDisplacementLimit = 0.2f;
	springDamping = 3500;
	springReboundDamping = 3200;
	springBoundDampingLowRate = 1900.0f;
	springReboundDampingLowRate = 1700.0f;
	springDampingLowRateCompression = 0.30f;
	springDampingHighRateCompression = 0.50f;
	wheelsVerticalOffset = 0.05f;
	visualSuspensionCompressionLength = 0.25f;
}

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

v_standard2_chevalier_thrax_poor : v_standard2_chevalier_thrax
{
	visualTags = 
	[
		"Poor"
	];
	headlightColor = 
	[
		255, 230, 150, 255
	];
	randomPassengers = 
	[
		"Passengers.CorporatDriverEntry", "Passengers.CorporatPassengerFrontEntry", "Passengers.CorporatPassengerBackEntry"
	];
}

v_standard2_chevalier_thrax_premium : v_standard2_chevalier_thrax
{
	visualTags = 
	[
		"Premium"
	];
	headlightColor = 
	[
		175, 200, 255, 255
	];
	randomPassengers = 
	[
		"Passengers.CorpoArasakaDriverEntry", "Passengers.CorpoArasakaPassengerFrontEntry", "Passengers.CorpoArasakaPassengerBackEntry"
	];
}

v_standard2_chevalier_thrax_premium_quest : v_standard2_chevalier_thrax
{
	savable = true;
	visualTags = 
	[
		"Premium"
	];
	headlightColor = 
	[
		175, 200, 255, 255
	];
	randomPassengers = 
	[
		"Passengers.CorpoArasakaDriverEntry", "Passengers.CorpoArasakaPassengerFrontEntry", "Passengers.CorpoArasakaPassengerBackEntry"
	];
}

v_standard2_chevalier_thrax_ncu : v_standard2_chevalier_thrax
{
	displayName = "LocKey#22768";
	headlightColor = 
	[
		255, 255, 255, 255
	];
	visualTags = 
	[
		"NCU"
	];
	savable = true;
	priority = "SpawnableObjectPriority.Quest";
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.42f;
			rimRadius = 0.30f;
			tireWidth = 0.27f;
			wheelOffset = 0.06f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.42f;
			rimRadius = 0.30f;
			tireWidth = 0.35f;
			wheelOffset = -0.05f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
	vehicleUIData = 
	{
		horsepower = 440.0f;
	} : VehicleChevillonThraxUIData;
	vehDriveModelData = 
	{
		turnUpdateMaxSpeedTurnMul = 0.43f;
		turnUpdateMaxSpeedTurnChangeMul = 1.37f;
	} : VehicleDriveModelData_Thrax;
	vehEngineData = "Vehicle.VehicleEngineData_4_Regular_Large_SC";
	vehDriver_FPPCameraParams = 
	{
		lookat_offset_vertical = 0.02f;
		rear_view_offset = ( 0.0000, -1.6051, 1.0476 );
		enable_rear_view = true;
	} : VehicleDriverFPPCameraParamsDefault;
}

v_standard2_chevalier_thrax_combat_cab : v_standard2_chevalier_thrax
{
	appearanceName = "chevalier_thrax__basic_combat_cab_01";
	headlightColor = 
	[
		255, 255, 255, 255
	];
	displayName = "LocKey#22770";
}

v_standard2_chevalier_thrax_sixth_street : v_standard2_chevalier_thrax
{
	visualTags = 
	[
		"SixthStreet"
	];
	displayName = "LocKey#22770";
}

v_standard2_chevalier_thrax_maelstrom : v_standard2_chevalier_thrax
{
	displayName = "LocKey#22845";
	headlightColor = 
	[
		255, 220, 220, 255
	];
	visualTags = 
	[
		"Maelstrom"
	];
}

v_standard2_chevalier_thrax_valentino : v_standard2_chevalier_thrax
{
	displayName = "LocKey#22848";
	headlightColor = 
	[
		255, 220, 220, 255
	];
	visualTags = 
	[
		"Valentinos"
	];
	vehWheelDimensionsSetup = 
	{
		frontPreset = 
		{
			tireRadius = 0.42f;
			rimRadius = 0.30f;
			tireWidth = 0.27f;
			wheelOffset = 0.06f;
		} : VehicleWheelDimensionsPreset;
		backPreset = 
		{
			tireRadius = 0.42f;
			rimRadius = 0.30f;
			tireWidth = 0.35f;
			wheelOffset = -0.05f;
		} : VehicleWheelDimensionsPreset;
	} : VehicleWheelDimensionsSetup;
}

v_standard2_chevalier_thrax_dex : v_standard2_chevalier_thrax
{
	entityTemplatePath = "base\vehicles\standard\v_standard2_chevalier_thrax__dex.ent";
	headlightColor = 
	[
		175, 200, 255, 255
	];
}

v_standard2_chevalier_thrax_scavengers : v_standard2_chevalier_thrax
{
	entityTemplatePath = "ep1\vehicles\standard\v_standard2_chevalier_thrax__basic_01.ent";
	visualTags = 
	[
		"Scavengers"
	];
	player_audio_resource = "v_car_chevalier_thrax_scavenger";
	traffic_audio_resource = "v_car_chevalier_thrax_traffic";
}

VehicleDestructionParamsThrax : VehicleDestructionParamsDefault_4w
{
	gridDimensions = ( 2.1f, 5.5f, 0.3f );
	gridLocalOffset = ( 0.0f, -0.2f, 0.6f );
	chargePortCenter = ( -1.12145042f, -2.10750866f, 0.440423906f );
	glass = 
	[
		{
			component = "window_f";
			effect = "damage_windshield";
			isWindshield = true;
			gridCells = 
			[
				4, 5
			];
			threshold = 0.15;
		}, 
		{
			component = "window_fr";
			effect = "damage_glass_fr";
			gridCells = 
			[
				5, 13
			];
			threshold = 0.1;
		}, 
		{
			component = "window_fl";
			effect = "damage_glass_fl";
			gridCells = 
			[
				4, 12
			];
			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 = "window_b";
			effect = "damage_glass_b";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.1;
		}
	];
	detachableParts = 
	[
		{
			name = "Trunk";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.7;
			components = 
			[
				"trunk_a", "trunk_a_shadow"
			];
		}, 
		{
			name = "Hood";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.8;
			components = 
			[
				"hood_a", "hood_a_shadow"
			];
		}, 
		{
			name = "v_standard2_chevalier_thrax__ext01_cage_01";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.8;
			components = 
			[
				"v_standard2_chevalier_thrax__ext01_cage_01"
			];
		}, 
		{
			name = "v_standard2_chevalier_thrax__ext01_mirror_fl_01";
			gridCells = 
			[
				4
			];
			threshold = 0.07;
			components = 
			[
				"v_standard2_chevalier_thrax__ext01_mirror_fl_01", "mirror_fl_01_shadow"
			];
		}, 
		{
			name = "v_standard2_chevalier_thrax__ext01_mirror_fr_01";
			gridCells = 
			[
				5
			];
			threshold = 0.07;
			components = 
			[
				"v_standard2_chevalier_thrax__ext01_mirror_fr_01", "mirror_fl_01_shadow"
			];
		}, 
		{
			name = "License_plate";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.07;
			components = 
			[
				"license_plate"
			];
		}, 
		{
			name = "BumperFront";
			gridCells = 
			[
				6, 7
			];
			threshold = 0.7;
			components = 
			[
				"bumper_f_01", "bumper_f_shadow"
			];
		}, 
		{
			name = "BumperBack";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.6;
			components = 
			[
				"bumper_b_01", "bumper_b_shadow"
			];
		}, 
		{
			name = "DoorFrontLeft";
			gridCells = 
			[
				4
			];
			threshold = 0.7;
			components = 
			[
				"door_fl_a", "door_fl_shadow", "window_fl"
			];
		}, 
		{
			name = "DoorFrontRight";
			gridCells = 
			[
				5
			];
			threshold = 0.7;
			components = 
			[
				"door_fr_a", "door_fr_shadow", "window_fr"
			];
		}, 
		{
			name = "DoorBackLeft";
			gridCells = 
			[
				2
			];
			threshold = 0.7;
			components = 
			[
				"door_bl_a", "door_bl_shadow", "window_bl"
			];
		}, 
		{
			name = "DoorBackRight";
			gridCells = 
			[
				3
			];
			threshold = 0.7;
			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 = "brake_light_left_01";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_left_02";
			gridCells = 
			[
				0
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_right_01";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}, 
		{
			component = "brake_light_right_02";
			gridCells = 
			[
				1
			];
			threshold = 0.1f;
		}, 
		{
			component = "break_light_01";
			gridCells = 
			[
				0, 1
			];
			threshold = 0.2f;
		}, 
		{
			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 = "bumper_b_01";
			zones = 
			[
				{
					shapes = 
					[
						0, 1, 2
					];
					gridCells = 
					[
						0, 1, 8, 9
					];
				}
			];
		}, 
		{
			component = "bumper_f_01";
			zones = 
			[
				{
					shapes = 
					[
						0, 1, 2
					];
					gridCells = 
					[
						6, 7, 14, 15
					];
				}
			];
		}, 
		{
			component = "body_01";
			zones = 
			[
				{
					shapes = 
					[
						6, 7, 8, 10
					];
					gridCells = 
					[
						6, 7
					];
				}, 
				{
					shapes = 
					[
						15, 16, 17
					];
					gridCells = 
					[
						0, 1
					];
				}
			];
		}
	];
}

VehicleChevillonThraxUIData : VehicleDefaultUIData
{
	productionYear = "2062";
	driveLayout = "LocKey#45371";
	horsepower = 388.0f;
	mass = 2063.0f;
	info = "LocKey#53550";
}

