module Base
{
	model ODAZ_TENTBase
	{
		mesh = vehicles/Vehicle_ODAZ_TENT_Body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model ODAZfrontwheelleft
	{
		mesh = vehicles/Vehicle_ODAZ_Wheel,
		texture = vehicles/Vehicle_ODAZ_wheel,
		shader = vehiclewheel,
	}
	model ODAZfrontwheelright
	{
		mesh = vehicles/Vehicle_ODAZ_Wheel,
		texture = vehicles/Vehicle_ODAZ_wheel,
	}
	model ODAZbackwheelleft
	{
		mesh = vehicles/Vehicle_ODAZ_Wheel,
		texture = vehicles/Vehicle_ODAZ_wheel,
	}
	model ODAZbackwheelright
	{
		mesh = vehicles/Vehicle_ODAZ_Wheel,
		texture = vehicles/Vehicle_ODAZ_wheel,
	}
	vehicle ODAZ_TENTTrailer
	{
		mechanicType = 2,
		offRoadEfficiency = 2,
		engineRepairLevel = 5,
		playerDamageProtection = 1,

		model
		{
			file = ODAZ_TENTBase,
			scale = 1.5000,
			7500,
			offset = 0.0133 0.1867 -0.9200,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_YELBLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_YELHAK,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_YELGRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_BLUBLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_GRYBLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_BLUGRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_GRYGRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_GRYHAK,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_GREHAK,
		}

		skin
		{
			texture = Vehicles/Vehicle_ODAZ_TENT_GREGRY,
		}

		textureMask = Vehicles/Vehicle_ODAZ_TENT_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_TENT_Rust,
		extents = 1.4800 0.3867 3.0133,
		mass = 200,
		physicsChassisShape = 1.4133 0.6000 2.9333,
		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 = 10.0f,
		rollInfluence = 1.0f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 100,
		suspensionCompression = 1.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.0f,
		frontEndHealth = 500,
		rearEndHealth = 500,
		seats = 2,

		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 -2.7467 1.3333 0.3867,
		}

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

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

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

		physics box
		{
			offset = 0.0000 0.7733 0.0133,
			extents = 1.4533 0.1400 5.1600,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 0.1800 3.1533,
			rotate = 0.0000 0.0000 0.0000,
			canAttach = trailer,
			updateconstraint = false,
		}
	}
}
