module Base
{
	model ODAZBase
	{
		mesh = vehicles/Vehicle_ODAZ_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}
	vehicle ODAZTrailer
	{
		mechanicType = 2,
		offRoadEfficiency = 2,
		engineRepairLevel = 4,
		playerDamageProtection = 1,

		model
		{
			file = ODAZBase,
			scale = 1.5000,
			7500,
			offset = 0.0133 0.1933 -0.9200,
		}

		spawnOffsetY = 0.19392952,

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_GRE1,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_YEL,
		}

		textureMask = Vehicles/Vehicle_ODAZ_Mask,
		textureLights = Vehicles/Vehicle_ODAZ_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_ODAZ_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_ODAZ_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_ODAZ_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_ODAZ_Damage2,
		textureRust = Vehicles/Vehicle_ODAZ_Rust,
		extents = 1.4800 0.3333 2.9333,
		mass = 200,
		physicsChassisShape = 1.4133 0.5867 2.8000,
		centerOfMassOffset = 0.0000 0.1867 -1.0667,
		shadowExtents = 1.3250 4.7604,
		shadowOffset = 0.0000 0.0230,
		engineForce = 8000,
		engineQuality = 1000,
		engineLoudness = 1000,
		maxSpeed = 90f,
		brakingForce = 1,
		stoppingMovementForce = 2.0f,
		rollInfluence = 0.15f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 40,
		suspensionCompression = 4.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.16f,
		wheelFriction = 1.0f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 2,

		physics box
		{
			offset = 0.0000 0.0667 0.9200,
			extents = 0.9067 0.6133 0.1000,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.7267 0.0067,
			extents = 1.4133 0.1800 5.0933,
			rotate = 0.0000 0.0000 0.0000,
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.4800 -0.1400 0.2200,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.5333 -0.1400 0.2200,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.4800 -0.1400 -0.5200,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.5333 -0.1400 -0.5200,
			radius = 0.3f,
			width = 0.2f,
		}

		area TruckBed
		{
			xywh = 0.0000 0.0000 2.0000 5.5200,
		}

		area TireFrontLeft
		{
			xywh = 0.9600 -0.7067 0.4267 0.4267,
		}

		area TireFrontRight
		{
			xywh = -0.9600 -0.7067 0.4267 0.4267,
		}

		area TireRearLeft
		{
			xywh = 0.9600 -1.4467 0.4267 0.4267,
		}

		area TireRearRight
		{
			xywh = -0.9600 -1.4467 0.4267 0.4267,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			mechanicRequireKey = false,

			container
			{
				capacity = 750,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = ODAZfrontwheelleft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = ODAZfrontwheelright,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = ODAZbackwheelleft,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = ODAZbackwheelright,
			}
		}

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		lua
		{
			create = Vehicles.Create.Default,
		}

		attachment trailer
		{
			offset = -0.0133 0.1733 3.1400,
			rotate = 0.0000 0.0000 0.0000,
			canAttach = trailer,
		}
	}
}
