module Base
{
	model ZAZ968MBase
	{
		mesh = vehicles/Vehicle_ZAZ968M_Body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model ZAZ968Mfrontwheelleft
	{
		mesh = vehicles/Vehicle_ZAZ968M_Wheel,
		texture = vehicles/Vehicle_ZAZ968M_wheel,
	}
	model ZAZ968Mfrontwheelright
	{
		mesh = vehicles/Vehicle_ZAZ968M_Wheel,
		texture = vehicles/Vehicle_ZAZ968M_wheel,
	}
	model ZAZ968Mbackwheelleft
	{
		mesh = vehicles/Vehicle_ZAZ968M_Wheel,
		texture = vehicles/Vehicle_ZAZ968M_wheel,
	}
	model ZAZ968Mbackwheelright
	{
		mesh = vehicles/Vehicle_ZAZ968M_Wheel,
		texture = vehicles/Vehicle_ZAZ968M_wheel,
	}
	vehicle ZAZ968M
	{
		mechanicType = 1,
		offRoadEfficiency = 1.8,
		engineRepairLevel = 3,
		playerDamageProtection = 2.0,

		model
		{
			file = ZAZ968MBase,
			scale = 1.7300,
			offset = 0.0316 0.1526 0.0000,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_GRE,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_ORN,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_RED,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_YEL,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_BEZH,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_GRE2,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZAZ968M_WHY,
		}




                textureRust = Vehicles/Vehicle_ZAZ968M_Rust,
		textureMask = Vehicles/Vehicle_ZAZ968M_Mask,
		textureLights = Vehicles/Vehicle_ZAZ968M_Lights,
		textureDamage1Overlay = Vehicles/Vehicles_ZAZ968M_Blood_Mask,
		textureDamage2Overlay = Vehicles/Vehicles_ZAZ968M_Blood_Hvy,
		textureDamage1Shell = Vehicles/Vehicle_ZAZ968M_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_ZAZ968M_DAMAGE2,

		sound
		{
			engine = VehicleEngineSUV,
			engineStart = engine_start_zaz,
			engineTurnOff = engine_off_zaz,
			horn = horn_zaz,
			ignitionFail = fail_start_engine_zaz,
		}

		extents = 0.8421 0.6526 1.9053,
		mass = 1000,
		physicsChassisShape = 0.7789 0.6000 1.8526,
		centerOfMassOffset = 0.0211 0.3105 0.0000,
		shadowExtents = 0.6684 1.7601,
		shadowOffset = 0.0263 -0.0030,
		engineForce = 3000,
		engineQuality = 12,
		engineLoudness = 89,
		maxSpeed = 50f,
		gearRatioCount = 4,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 40,
		rollInfluence = 0.9f,
		steeringIncrement = 0.03,
		steeringClamp = 0.28,
		suspensionStiffness = 45,
		suspensionCompression = 1.85,
		suspensionDamping = 0.90,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.7f,
		frontEndHealth = 200,
		rearEndHealth = 150,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3000 -0.1263 0.6211,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3263 -0.1263 0.6211,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3000 -0.1263 -0.4579,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3263 -0.1263 -0.4579,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1421 0.0632 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6263 -0.4105 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1684 0.0632 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6316 -0.4053 0.0053,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1421 0.0632 -0.2842,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6263 -0.4105 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1684 0.0632 -0.2842,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6316 -0.4053 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0211 -1.0632 0.6000 0.2842,
		}

		area TruckBed
		{
			xywh = 0.0211 1.0895 0.6105 0.2737,
		}

		area SeatFrontLeft
		{
			xywh = 0.6474 0.1579 0.4000 0.4842,
		}

		area SeatFrontRight
		{
			xywh = -0.6053 0.1579 0.4000 0.4842,
		}

		area SeatRearRight
		{
			xywh = -0.3368 0.1579 0.0421 0.4842,
		}

		area SeatRearLeft
		{
			xywh = 0.3789 0.1579 0.0421 0.4842,
		}

		area GasTank
		{
			xywh = 0.5053 -0.7789 0.2000 0.2842,
		}

		area TireFrontLeft
		{
			xywh = 0.6263 0.6211 0.4421 0.4421,
		}

		area TireFrontRight
		{
			xywh = -0.5842 0.6211 0.4421 0.4421,
		}

		area TireRearLeft
		{
			xywh = 0.6263 -0.4579 0.4421 0.4421,
		}

		area TireRearRight
		{
			xywh = -0.5842 -0.4579 0.4421 0.4421,
		}

		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 = Basic Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Basic 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: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,
		template = Windshield/part/WindshieldRear,

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

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

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

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

		template = Brake,

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

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

		template = Suspension,

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

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

		template = Headlight,

		attachment trailerfront
		{
			offset = -0.0053 -0.0842 1.0000,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = -0.0053 -0.0842 -1.0053,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
