module Base
{
	model UAZ469_PPS
	{
		mesh = vehicles/Vehicle_UAZ469_Body|UAZ469PPSBody,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}

	model UAZ469_PPS_Lights
	{
		mesh = vehicles/Vehicle_UAZ469_Body|Lights2,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_Interior
	{
		mesh = vehicles/Vehicle_UAZ469_Body|Interior,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_Tent
	{
		mesh = vehicles/Vehicle_UAZ469_Body|Tent2,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_Windshield
	{
		mesh = vehicles/Vehicle_UAZ469_Body|windshieldT,
		shader = vehicle_multiuv,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_fl_window
	{
		mesh = vehicles/Vehicle_UAZ469_Body|FL_window,
		shader = vehicle_multiuv,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_fr_window
	{
		mesh = vehicles/Vehicle_UAZ469_Body|FR_window,
		shader = vehicle_multiuv,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_rl_window
	{
		mesh = vehicles/Vehicle_UAZ469_Body|RL_window,
		shader = vehicle_multiuv,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_rr_window
	{
		mesh = vehicles/Vehicle_UAZ469_Body|RR_window,
		shader = vehicle_multiuv,
                invertX = false,
		scale = 1,
	}
	model UAZ469_PPS_rear_window
	{
		mesh = vehicles/Vehicle_UAZ469_Body|Rear_windshield2,
		shader = vehicle_multiuv,
		scale = 1,
	}
	model UAZWfrontwheelleft
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelW,           
	}
	model UAZWfrontwheelright
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelW,        
	}
	model UAZWbackwheelleft
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelW,
	}
	model UAZWbackwheelright
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelW, 
	}
	vehicle UAZ469_PPS
	{
		mechanicType = 1,
		offRoadEfficiency = 100,
		engineRepairLevel = 4,
		playerDamageProtection = 1,

		model
		{
			file = UAZ469_PPS,
			scale = 1.4000,
			offset = 0.0000 0.1500 0.0643,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ469_PPS,
		}

		textureMask = Vehicles/Vehicle_UAZ469PPS_Mask,
		textureLights = Vehicles/Vehicle_UAZ469_lights,
		textureDamage1Overlay = Vehicles/Vehicle_UAZ469_Blood_Mask,
		textureDamage2Overlay = Vehicles/Vehicle_UAZ469_Blood_Hvy,
		textureDamage1Shell = Vehicles/Vehicle_UAZ469_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_UAZ469_DAMAGE2,
		textureRust = Vehicles/Vehicle_UAZ469T_Rust,

		sound
		{
			engine = VehicleEngineOffRoad,
			engineStart = UAZ_start_engine,
			engineTurnOff = engine_off_GAZ66,
			horn = horn_zaz,
			ignitionFail = UAZ_fail_start_engine,
		}

		lightbar
		{
			soundSiren = VehicleSiren,
			leftCol = 0;0;1,
			rightCol = 0;0;1,
		}

		extents = 1.0429 0.6571 2.1571,
		mass = 1000,
		physicsChassisShape = 0.9857 0.6571 2.1571,
		centerOfMassOffset = 0.0000 0.3643 0.0000,
		shadowExtents = 0.9187 2.0361,
		shadowOffset = 0.0000 0.0438,
		engineForce = 3200,
		engineQuality = 50,
		engineLoudness = 80,
		maxSpeed = 75f,
		gearRatioCount = 4,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 50,
		rollInfluence = 0.9f,
		steeringIncrement = 0.03,
		steeringClamp = 0.28,
		suspensionStiffness = 40,
		suspensionCompression = 1.83,
		suspensionDamping = 0.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.5f,
		frontEndHealth = 90,
		rearEndHealth = 90,
		seats = 4,

		part Lights
		{
			category = nodisplay,

			model Lights
			{
				file = UAZ469_PPS_Lights,
			}

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

		part Interior
		{
			category = nodisplay,

			model Interior
			{
				file = UAZ469_PPS_Interior,
			}

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

		part Tent
		{
			category = nodisplay,

			model Tent
			{
				file = UAZ469_PPS_Tent,
			}

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

		template = Windshield/part/Windshield,

		part Windshield
		{
			category = bodywork,

			model Default
			{
				file = UAZ469_PPS_windshield,
			}

			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Window/part/WindowFrontLeft,

		part WindowFrontLeft
		{
			parent = DoorFrontLeft,
			category = door,

			model WindowFrontLeft
			{
				file = UAZ469_PPS_fl_window,
			}
		}

		template = Window/part/WindowFrontRight,

		part WindowFrontRight
		{
			parent = DoorFrontRight,
			category = door,

			model WindowFrontRight
			{
				file = UAZ469_PPS_fr_window,
			}
		}

		template = Window/part/WindowRearLeft,

		part WindowRearLeft
		{
			parent = DoorRearLeft,
			category = door,

			model WindowRearLeft
			{
				file = UAZ469_PPS_rl_window,
			}
		}

		template = Window/part/WindowRearRight,

		part WindowRearRight
		{
			parent = DoorRearRight,
			category = door,

			model WindowRearRight
			{
				file = UAZ469_PPS_rr_window,
			}
		}

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Windshield/part/WindshieldRear,

		part WindshieldRear
		{
			model Default
			{
				file = UAZ469_PPS_rear_window,
			}

			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.3929 -0.1929 0.6286,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3929 -0.1929 0.6286,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3929 -0.1929 -0.7071,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3929 -0.1929 -0.7071,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,

			position inside
			{
				offset = 0.2000 0.2214 -0.1000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.8286 -0.4143 -0.0643,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,

			position inside
			{
				offset = -0.2143 0.2214 -0.1000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8500 -0.5643 -0.0643,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,

			position inside
			{
				offset = 0.2143 0.2500 -0.5357,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.8286 -0.4071 -0.4071,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			showPassenger = true,

			position inside
			{
				offset = -0.2429 0.2500 -0.5357,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8500 -0.4071 -0.3714,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.3000 0.8571 0.4429,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.3357 0.6286 0.5143,
		}

		area SeatFrontLeft
		{
			xywh = 0.7429 0.1429 0.4429 0.5286,
		}

		area SeatFrontRight
		{
			xywh = -0.7429 0.1357 0.4429 0.5286,
		}

		area SeatRearRight
		{
			xywh = -0.7429 -0.3286 0.4429 0.4857,
		}

		area SeatRearLeft
		{
			xywh = 0.7429 -0.3286 0.4429 0.4857,
		}

		area GasTank
		{
			xywh = 0.7429 -0.0571 0.4429 0.4429,
		}

		area TireFrontLeft
		{
			xywh = 0.7429 0.7857 0.4429 0.4429,
		}

		area TireFrontRight
		{
			xywh = -0.7429 0.7857 0.4429 0.4429,
		}

		area TireRearLeft
		{
			xywh = 0.7500 -0.6714 0.4429 0.4429,
		}

		area TireRearRight
		{
			xywh = -0.7429 -0.6714 0.4429 0.4429,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 80,
			}
		}

		template = TrunkDoor,
		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

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

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

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

			container
			{
				capacity = 7,
				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 = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Door/part/DoorRearLeft,
		template = Door/part/DoorRearRight,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

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

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

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

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

		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 = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.0857 1.2214,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0823 -1.2785,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
