module Base
{
	model MMZLBase
	{
		mesh = vehicles/Vehicle_MMZL_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 MMZLTrailer
	{
		mechanicType = 1,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 4,
		playerDamageProtection = 0.8,

		model
		{
			file = MMZLBase,
			scale = 1.6000,
			offset = 0.0117 0.1871 0.1345,
		}

		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.8655 0.3977 1.0292,
		mass = 260,
		physicsChassisShape = 0.8187 0.3041 0.9708,
		centerOfMassOffset = 0.0058 0.2807 0.0585,
		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.3158 -0.1345 -0.1579,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3333 -0.1345 -0.1579,
			radius = 0.15f,
			width = 0.2f,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			mechanicRequireKey = false,

			container
			{
				capacity = 150,
			}
		}

		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,
		}
	}
}
