module Base
{
	model KAMAZBase
	{
		mesh = vehicles/Vehicle_KAMAZ_Body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model KAMAZfrontwheelleft
	{
		mesh = vehicles/Vehicle_KAMAZ_Wheel_FRONT,
		texture = vehicles/Vehicle_KAMAZ_wheel,
	}
	model KAMAZfrontwheelright
	{
		mesh = vehicles/Vehicle_KAMAZ_Wheel_FRONT,
		texture = vehicles/Vehicle_KAMAZ_wheel,
	}
	model KAMAZbackwheelleft
	{
		mesh = vehicles/Vehicle_KAMAZ_Wheel_REAR,
		texture = vehicles/Vehicle_KAMAZ_wheel,
	}
	model KAMAZbackwheelright
	{
		mesh = vehicles/Vehicle_KAMAZ_Wheel_REAR,
		texture = vehicles/Vehicle_KAMAZ_wheel,
	}
	vehicle KAMAZ
	{
		mechanicType = 2,
		offRoadEfficiency = 2.5,
		engineRepairLevel = 5,
		playerDamageProtection = 2,

		model
		{
			file = KAMAZBase,
			scale = 1.3500,
			7500,
			offset = 0.0148 0.1852 0.0741,
		}

		skin
		{
			texture = Vehicles/Vehicle_KAMAZ_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_KAMAZ_RED2,
		}

		skin
		{
			texture = Vehicles/Vehicle_KAMAZ_ORANGE,
		}

		skin
		{
			texture = Vehicles/Vehicle_KAMAZ_GRAY,
		}

		textureMask = Vehicles/Vehicle_KAMAZ_Mask,
		textureLights = Vehicles/Vehicle_KAMAZ_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_KAMAZ_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_KAMAZ_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_KAMAZ_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_KAMAZ_Damage2,
		textureRust = Vehicles/Vehicle_KAMAZ_Rust,

		sound
		{
			engine = VehicleEngineStepVan,
			engineStart = VehicleEngineStepVan,
			engineTurnOff = VehicleEngineStepVan,
			horn = VehicleHornVan,
			ignitionFail = VehiclegnitionFailStepVan,
		}

		extents = 1.5111 0.5778 3.7926,
		mass = 1100,
		physicsChassisShape = 1.4815 0.5333 3.7481,
		centerOfMassOffset = 0.0000 -0.0296 0.0444,
		shadowExtents = 1.3392 3.5689,
		shadowOffset = 0.0000 0.0230,
		engineForce = 6500,
		engineQuality = 45,
		engineLoudness = 130,
		maxSpeed = 55f,
		brakingForce = 50,
		rollInfluence = 0.4f,
		steeringIncrement = 0.8,
		steeringClamp = 0.2,
		suspensionStiffness = 60,
		suspensionCompression = 2.75,
		suspensionDamping = 2.95,
		maxSuspensionTravelCm = 5,
		suspensionRestLength = 0.2,
		wheelFriction = 0.8f,
		frontEndHealth = 1000,
		rearEndHealth = 1000,
		seats = 2,

		physics box
		{
			offset = 0.0000 0.7234 1.2411,
			extents = 1.4113 0.9716 1.2340,
			rotate = 0.0000 0.0000 0.0000,
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.6148 -0.2741 1.1185,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.6222 -0.2741 1.1185,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = -0.0074 -0.2815 -1.3556,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.0074 -0.2815 -0.6000,
			radius = 0.3f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.3185 0.4444 1.2000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.0815 -0.4741 1.3481,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.3556 0.4444 1.2000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.1111 -0.4741 1.3481,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.1185 1.2889 0.4296,
		}

		area TruckBed
		{
			xywh = -0.9852 0.5407 0.4593 0.5185,
		}

		area SeatFrontLeft
		{
			xywh = 0.9704 1.4444 0.4296 0.6074,
		}

		area SeatFrontRight
		{
			xywh = -0.9704 1.4519 0.4296 0.6222,
		}

		area GasTank
		{
			xywh = 0.9556 0.2593 0.4296 0.4296,
		}

		area TireFrontLeft
		{
			xywh = 0.9556 1.1852 0.4296 0.4296,
		}

		area TireFrontRight
		{
			xywh = -0.9556 1.1852 0.4296 0.4296,
		}

		area TireRearLeft
		{
			xywh = 0.9556 -0.5407 0.4296 0.4296,
		}

		area TireRearRight
		{
			xywh = 0.9556 -1.2889 0.4296 0.4296,
		}

		template = TrunkDoor,
		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 20,
			}
		}

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

		part Seat*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}

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

		template = GloveBox,

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

			container
			{
				capacity = 15,
				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,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

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

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

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

		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.0071 0.1348 -0.9645,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}
	}
}
