module Base
{
	model KAMAZ_MILBase
	{
		mesh = vehicles/Vehicle_KAMAZ_MIL_Body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}

        model KUMfrontwheelleft
	{
		mesh = vehicles/Vehicle_URAL_Wheel_FRONT,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model KUMfrontwheelright
	{
		mesh = vehicles/Vehicle_URAL_Wheel_FRONT,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model KUMbackwheelleft
	{
		mesh = vehicles/Vehicle_URAL_Wheel_REAR,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model KUMbackwheelright
	{
		mesh = vehicles/Vehicle_URAL_Wheel_REAR,
		texture = vehicles/Vehicle_URAL_wheel,
	}

	vehicle KAMAZ_MIL
	{
		mechanicType = 2,
		offRoadEfficiency = 2.5,
		engineRepairLevel = 5,
		playerDamageProtection = 2,

		model
		{
			file = KAMAZ_MILBase,
			scale = 1.3500,
			7500,
			offset = 0.0142 0.2128 0.0709,
		}

		skin
		{
			texture = Vehicles/Vehicle_KAMAZ_MIL,
		}

		textureMask = Vehicles/Vehicle_KAMAZ_MIL_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.4894 0.8936 3.9716,
		mass = 1200,
		physicsChassisShape = 1.4894 1.0213 3.9716,
		centerOfMassOffset = 0.0071 0.3546 -0.0638,
		shadowExtents = 1.3463 3.6398,
		shadowOffset = 0.0000 0.0230,
		engineForce = 3500,
		engineQuality = 50,
		engineLoudness = 130,
		maxSpeed = 45f,
		gearRatioCount = 5,
		gearRatioR = 7.38,
		gearRatio1 = 7.82,
		gearRatio2 = 4.03,
		gearRatio3 = 2.50,
		gearRatio4 = 1.53,
		gearRatio5 = 1.00,
		brakingForce = 50,
		rollInfluence = 0.4f,
		steeringIncrement = 0.8,
		steeringClamp = 0.2,
		suspensionStiffness = 60,
		suspensionCompression = 0.75,
		suspensionDamping = 0.95,
		maxSuspensionTravelCm = 4,
		suspensionRestLength = 0.2,
		wheelFriction = 0.8f,
		frontEndHealth = 350,
		rearEndHealth = 350,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.6170 -0.2766 1.1206,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.6241 -0.2766 1.1206,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = -0.0071 -0.2837 -1.3617,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.0071 -0.2837 -0.6028,
			radius = 0.3f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.3191 0.4823 1.1986,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.0851 -0.4752 1.3475,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.3546 0.4823 1.1986,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.1064 -0.4752 1.3475,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.1206 1.2766 0.4255,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.2411 1.1773 0.4255,
		}

		area SeatFrontLeft
		{
			xywh = 0.9574 1.4397 0.4255 0.5957,
		}

		area SeatFrontRight
		{
			xywh = -0.9574 1.4539 0.4255 0.6099,
		}

		area GasTank
		{
			xywh = 0.9574 0.2624 0.4255 0.4255,
		}

		area TireFrontLeft
		{
			xywh = 0.9574 1.1844 0.4255 0.4255,
		}

		area TireFrontRight
		{
			xywh = -0.9574 1.1844 0.4255 0.4255,
		}

		area TireRearLeft
		{
			xywh = 0.9574 -0.5390 0.4255 0.4255,
		}

		area TireRearRight
		{
			xywh = 0.9574 -1.2908 0.4255 0.4255,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 400,
			}
		}

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

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

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

		template = GloveBox,

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

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

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

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:3,
				recipes = Basic Mechanics,
			}

			uninstall
			{
				skills = Mechanics:3,
				recipes = Basic Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = EngineDoor,

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

			table uninstall
			{
				recipes = Basic 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 = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = Tire,

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

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

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

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

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Advanced Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:6,
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Advanced Mechanics,
			}
		}

		template = Radio,
		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 -0.0709 -2.2695,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.1277 2.0567,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
