module Base
{
	model CheeseSliceBase
	{
		mesh = vehicles/Vehicles_CheeseSlice_Body,
		shader = vehicle,
		invertX = TRUE,
		scale = .008,
	}
	model cheeseslicefrontwheelleft
	{
		mesh = vehicles/Vehicles_CheeseSlice_Wheel,
		texture = vehicles/CheeseWheelTexture,
		shader = vehiclewheel,
	}
	model cheeseslicefrontwheelright
	{
		mesh = vehicles/Vehicles_CheeseSlice_Wheel,
		texture = vehicles/CheeseWheelTexture,
		shader = vehiclewheel,
	}
	model cheeseslicebackwheelleft
	{
		mesh = vehicles/Vehicles_CheeseSlice_Wheel,
		texture = vehicles/CheeseWheelTexture,
		shader = vehiclewheel,
	}
	model cheeseslicebackwheelright
	{
		mesh = vehicles/Vehicles_CheeseSlice_Wheel,
		texture = vehicles/CheeseWheelTexture,
		shader = vehiclewheel,
	}
	vehicle cheeseslice
	{
		mechanicType = 1,
		offRoadEfficiency = 1.2,
		engineRepairLevel = 4,
		playerDamageProtection = 1.2,

		model
		{
			file = CheeseSliceBase,
			scale = 1.0000,
			offset = 0.0000 -0.0200 -0.5500,
		}

		skin
		{
			texture = Vehicles/vehicles_CheeseSlice,
		}

		textureRust = Vehicles/Vehicles_CheeseSlice_Rust,
		textureMask = Vehicles/CheeseSliceMask,
		textureLights = Vehicles/Vehicles_CheeseSlice_Lights,
		textureDamage1Overlay = Vehicles/Vehicles_CheeseSlice_Overlays_Damaged01,
		textureDamage2Overlay = Vehicles/Vehicles_CheeseSlice_Overlays_Damaged02,
		textureDamage1Shell = Vehicles/Vehicles_CheeseSlice_Shell_Damaged01,
		textureDamage2Shell = Vehicles/Vehicles_CheeseSlice_Shell_Damaged02,

		sound
		{
			horn = Cheese_grommit,
		}

		extents = 1.6200 1.2600 2.3800,
		mass = 650,
		physicsChassisShape = 1.6600 1.2800 2.3800,
		centerOfMassOffset = 0.0000 0.6000 -0.0500,
		engineForce = 7200,
		maxSpeed = 90f,
		engineLoudness = 80,
		engineQuality = 70,
		brakingForce = 50,
		stoppingMovementForce = 4.0f,
		rollInfluence = 1.0f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 25,
		suspensionCompression = 4.83,
		suspensionDamping = 3.88,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.20f,
		wheelFriction = 1.4f,
		frontEndHealth = 165,
		rearEndHealth = 150,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.5500 -0.0400 1.5600,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.5500 -0.0400 1.5600,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.9100 -0.0400 -0.4000,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.9100 -0.0400 -0.4000,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.3000 0.3300 -0.2400,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.7000 -0.5600 0.4500,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.3100 0.3300 -0.2400,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.7000 -0.5600 0.4500,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.4400 1.1400 0.4000,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.4000 1.1400 0.4800,
		}

		area SeatFrontLeft
		{
			xywh = 1.0600 0.1000 0.8000 0.8000,
		}

		area SeatFrontRight
		{
			xywh = -1.0600 0.1000 0.8000 0.8000,
		}

		area GasTank
		{
			xywh = -0.8400 -0.6400 0.4000 0.4000,
		}

		area TireFrontLeft
		{
			xywh = 0.8400 0.8200 0.4000 0.4000,
		}

		area TireFrontRight
		{
			xywh = -0.8400 0.8200 0.4000 0.4000,
		}

		area TireRearLeft
		{
			xywh = 0.8400 -0.7900 0.4000 0.4000,
		}

		area TireRearRight
		{
			xywh = -0.8400 -0.7900 0.4000 0.4000,
		}

		template = TrunkDoor,

		part TrunkDoor
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.SmallTrunk,

			container
			{
				capacity = 40,
			}
		}

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,

		part Seat*
		{
			container
			{
				capacity = 20,
			}

			table install
			{
				skills = Mechanics:2,
			}

			table uninstall
			{
				skills = Mechanics:2,
			}
		}

		part GloveBox
		{
			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,

			container
			{
				capacity = 5,
				test = Vehicles.ContainerAccess.GloveBox,
			}

			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}

			uninstall
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,

		part Windshield*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearRight,
		template = Window/part/WindowRearLeft,

		part Window*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,

		part Door*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

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

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

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

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

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

		template = Radio,
		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 0.1000 -0.9500,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 0.1008 1.4341,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
