module Base
{
	model MMZLTBase
	{
		mesh = vehicles/Vehicle_MMZLT_Body,
		shader = vehicle,
		invertX = FALSE,
		scale = 1,
	}

	model VAZfrontwheelleft
	{
		mesh = vehicles/Vehicle_VAZ_Wheel,
		texture = vehicles/Vehicle_VAZ_wheel,
	}
	model VAZfrontwheelright
	{
		mesh = vehicles/Vehicle_VAZ_Wheel,
		texture = vehicles/Vehicle_VAZ_wheel,
	}

	vehicle MMZLTTrailer
	{
		mechanicType = 1,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 4,
		playerDamageProtection = 0.8,

		model
		{
			file = MMZLTBase,
			scale = 1.7100,
			offset = 0.0117 0.1863 0.1366,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_YEL,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_GRE,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_HAK,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_YEL2,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_GRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_WHY,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_YEL_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_GRE_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_BLU_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_HAK_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_RED_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_YEL2_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_GRY_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_WHY_BT,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_BLU_ST,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_GRY_ST,
		}

		skin
		{
			texture = Vehicles/Vehicle_MMZ_WHY_ST,
		}



                textureShadow = Shadows/Vehicle_MMZTrailer_shadow,
		textureMask = Vehicles/Vehicle_MMZ_Mask,
		textureLights = Vehicles/Vehicle_MMZ_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_MMZ_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_MMZ_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_MMZ_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_MMZ_Damage2,
		textureRust = Vehicles/Vehicle_MMZ_Rust,
		extents = 0.8571 0.3975 1.0311,
		mass = 270,
		physicsChassisShape = 0.8199 0.2981 0.9689,
		centerOfMassOffset = 0.0062 0.2795 0.0600,
		shadowExtents = 0.6983 0.8337,
		shadowOffset = 0.0000 0.0630,
		maxSpeed = 90f,
		brakingForce = 1,
		stoppingMovementForce = 2.0f,
		rollInfluence = 1.0f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 40,
		suspensionCompression = 2.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 3.0f,
		frontEndHealth = 100,
		rearEndHealth = 100,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3168 -0.1366 -0.1553,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3354 -0.1366 -0.1553,
			radius = 0.15f,
			width = 0.2f,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			mechanicRequireKey = false,

			container
			{
				capacity = 200,
			}
		}

		area TruckBed
		{
			xywh = 0.0000 0.0643 1.1579 1.2982,
		}

		area TireFrontLeft
		{
			xywh = 0.6550 -0.0175 0.4444 0.4795,
		}

		area TireFrontRight
		{
			xywh = -0.6433 -0.0175 0.4444 0.4795,
		}

		template = Tire/part/TireFrontLeft,
		template = Tire/part/TireFrontRight,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = VAZfrontwheelleft,
			}
			
			table install
			{
				requireInstalled = SuspensionFrontLeft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = VAZfrontwheelright,
			}

			table install
			{
				requireInstalled = SuspensionFrontRight,
			}
		}

		template = Suspension/part/SuspensionFrontLeft,
		template = Suspension/part/SuspensionFrontRight,

		attachment trailer
		{
			offset = -0.0058 -0.0877 0.7719,
			rotate = 0.0000 0.0000 0.0000,
			canAttach = trailer,
			updateconstraint = false,
		}
	}
}
