module Base
{
	model GAZ66MIL
	{
		mesh = vehicles/Vehicle_GAZ66_Body|GAZ66body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model GAZ66MIL_Army_light
	{
		mesh = vehicles/Vehicle_GAZ66_Body|Army_light_truck,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model GAZ66MIL_SMU
	{
		mesh = vehicles/Vehicle_GAZ66_Body|SMU_truck,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model GAZ66MIL_Tent
	{
		mesh = vehicles/Vehicle_GAZ66_Body|Tent_truck,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model GAZ66frontwheelleft
	{
		mesh = vehicles/Vehicle_GAZ66_Wheel_L,
		texture = vehicles/Vehicle_GAZ66_WHEEL_B,
	}
	model GAZ66frontwheelright
	{
		mesh = vehicles/Vehicle_GAZ66_Wheel_R,
		texture = vehicles/Vehicle_GAZ66_WHEEL_B,
	}
	model GAZ66backwheelleft
	{
		mesh = vehicles/Vehicle_GAZ66_Wheel_L,
		texture = vehicles/Vehicle_GAZ66_WHEEL_B,
	}
	model GAZ66backwheelright
	{
		mesh = vehicles/Vehicle_GAZ66_Wheel_R,
		texture = vehicles/Vehicle_GAZ66_WHEEL_B,
	}
	vehicle GAZ66MIL
	{
		mechanicType = 2,
		offRoadEfficiency = 100,
		engineRepairLevel = 5,
		playerDamageProtection = 1.5,

		model
		{
			file = GAZ66MIL,
			scale = 1.6600,
			7500,
			offset = 0.0000 0.1988 0.0000,
		}

		skin
		{
			texture = Vehicles/Vehicle_GAZ66_MIL,
		}

		textureMask = Vehicles/Vehicle_GAZ66_Mask,
		textureLights = Vehicles/Vehicle_GAZ66_lights,
		textureDamage1Overlay = Vehicles/Vehicle_GAZ66_Blood_Mask,
		textureDamage2Overlay = Vehicles/Vehicle_GAZ66_Blood_Hvy,
		textureDamage1Shell = Vehicles/Vehicle_GAZ66_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_GAZ66_DAMAGE2,
		textureRust = Vehicles/Vehicle_GAZ66_Rust,

		sound
		{
			engine = VehicleEngineOffRoad,
			engineStart = start_engine_GAZ66,
			engineTurnOff = engine_off_GAZ66,
			horn = horn_ZIL,
			ignitionFail = fail_start_engine_GAZ66,
		}

		extents = 1.1687 0.6506 2.9036,
		mass = 1500,
		physicsChassisShape = 1.0843 1.2169 2.7831,
		centerOfMassOffset = 0.0000 0.4277 0.0000,
		shadowExtents = 1.0624 2.7532,
		shadowOffset = 0.0000 -0.0106,
		engineForce = 3500,
		engineQuality = 40,
		engineLoudness = 90,
		maxSpeed = 35f,
		gearRatioCount = 4,
		gearRatioR = 8.09,
		gearRatio1 = 7.44,
		gearRatio2 = 5.29,
		gearRatio3 = 4,
		brakingForce = 35,
		rollInfluence = 0.5f,
		steeringIncrement = 0.02,
		steeringClamp = 0.4,
		suspensionStiffness = 65,
		suspensionCompression = 1.83,
		suspensionDamping = 0.1,
		maxSuspensionTravelCm = 3,
		suspensionRestLength = 0.1,
		wheelFriction = 1.0f,
		frontEndHealth = 300,
		rearEndHealth = 300,
		seats = 2,

		part SMU
		{
			category = nodisplay,

			model SMU
			{
				file = GAZ66MIL_SMU,
			}

			lua
			{
				init = ATATuning2.Init.setAllModelsVisible,
			}
		}

		part Army_light
		{
			category = nodisplay,

			model Army_light
			{
				file = GAZ66MIL_Army_light,
			}

			lua
			{
				init = ATATuning2.Init.setAllModelsVisible,
			}
		}

		part Tent
		{
			category = nodisplay,

			model Tent
			{
				file = GAZ66MIL_Tent,
			}

			lua
			{
				init = ATATuning2.Init.setAllModelsVisible,
			}
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.4458 -0.1928 0.8735,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.4578 -0.1928 0.8735,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.4458 -0.1928 -0.7711,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.4578 -0.1928 -0.7711,
			radius = 0.3f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2410 0.3614 0.8012,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.8795 -0.4639 0.6024,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2410 0.3614 0.8012,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8735 -0.4639 0.6024,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.6084 0.9157 0.4337,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.6566 1.0843 0.5301,
		}

		area SeatFrontLeft
		{
			xywh = 0.8012 0.9096 0.4337 0.4217,
		}

		area SeatFrontRight
		{
			xywh = -0.8012 0.9096 0.4337 0.4217,
		}

		area GasTank
		{
			xywh = 0.0000 0.1747 2.1687 0.4578,
		}

		area TireFrontLeft
		{
			xywh = 0.8012 0.9157 0.4337 0.4337,
		}

		area TireFrontRight
		{
			xywh = -0.8012 0.9157 0.4337 0.4337,
		}

		area TireRearLeft
		{
			xywh = 0.8012 -0.7169 0.4337 0.4337,
		}

		area TireRearRight
		{
			xywh = -0.8012 -0.7169 0.4337 0.4337,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 250,
			}
		}

		template = EngineDoor,

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

			table uninstall
			{
				recipes =  Basic Mechanics,
			}
		}

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

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

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

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

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:5,
				recipes = Advanced Mechanics,
			}

			uninstall
			{
				skills = Mechanics:5,
				recipes = Advanced Mechanics,
			}
		}

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

		part Muffler
		{
			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 = GAZ66frontwheelleft,
			}
		}

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

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

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

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:4,
				recipes = Intermediate Mechanics,
			}

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

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
			}

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

		template = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.0120 1.4518,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 0.0482 -1.4398,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
