module Base
{
	model ZIL130GTBase
	{
		mesh = vehicles/Vehicle_ZIL_Body|Frame_Long,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model ZIL130GT_Bort
	{
		mesh = vehicles/Vehicle_ZIL_Body|Bort_Long,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model ZIL130GT_Tent
	{
		mesh = vehicles/Vehicle_ZIL_Body|Tent_Long,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}
	model ZILfrontwheelleft
	{
		mesh = vehicles/Vehicle_ZIL_Wheel_FRONT,
		texture = vehicles/Vehicle_ZIL_wheel,
	}
	model ZILfrontwheelright
	{
		mesh = vehicles/Vehicle_ZIL_Wheel_FRONT,
		texture = vehicles/Vehicle_ZIL_wheel,
	}
	model ZILbackwheelleft
	{
		mesh = vehicles/Vehicle_ZIL_Wheel_REAR,
		texture = vehicles/Vehicle_ZIL_wheel,
	}
	model ZILbackwheelright
	{
		mesh = vehicles/Vehicle_ZIL_Wheel_REAR,
		texture = vehicles/Vehicle_ZIL_wheel,
	}
	vehicle ZIL130GT
	{
		mechanicType = 2,
		offRoadEfficiency = 100,
		engineRepairLevel = 4,
		playerDamageProtection = 10,

		model
		{
			file = ZIL130GTBase,
			scale = 1.2500,
			offset = 0.0000 0.2720 0.7840,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_BLUBLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_BLUWGRA,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_ORNWGRA,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_ORNGRA,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_YELWYEL,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_GREWGRA,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_GRAGRA,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_GREGRE,
		}

		skin
		{
			texture = Vehicles/Vehicle_ZIL130_BEZHGRA,
		}

		textureMask = Vehicles/Vehicle_ZIL130G_Mask,
		textureLights = Vehicles/Vehicle_ZIL130_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_ZIL130_Blood_Mask,
		textureDamage2Overlay = Vehicles/Vehicle_ZIL130_Blood_Hvy,
		textureDamage1Shell = Vehicles/Vehicle_ZIL130_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_ZIL130_DAMAGE2,
		textureRust = Vehicles/Vehicle_ZIL130G_Rust,

		sound
		{
			engine = VehicleEngineStepVan,
			engineStart = start_engine_ZIL,
			engineTurnOff = OKA_engine_off,
			horn = horn_ZIL,
			ignitionFail = fail_start_engine_ZIL,
		}

		extents = 1.6000 0.5440 5.1360,
		mass = 1100,
		physicsChassisShape = 0.6080 0.1920 4.4960,
		centerOfMassOffset = 0.0000 0.0000 -0.3120,
		shadowExtents = 1.4187 4.3698,
		shadowOffset = -0.0021 -0.1861,
		engineForce = 4500,
		engineQuality = 55,
		engineLoudness = 145,
		maxSpeed = 30f,
		gearRatioCount = 5,
		gearRatioR = 7.30,
		gearRatio1 = 7.50,
		gearRatio2 = 5.10,
		gearRatio3 = 4.20,
		gearRatio4 = 3.90,
		gearRatio5 = 2.00,
		brakingForce = 40,
		rollInfluence = 0.5f,
		steeringIncrement = 0.8,
		steeringClamp = 0.5,
		suspensionStiffness = 100,
		suspensionCompression = 1,
		suspensionDamping = 1.5,
		maxSuspensionTravelCm = 7,
		suspensionRestLength = 0.7,
		wheelFriction = 5.5f,
		frontEndHealth = 250,
		rearEndHealth = 500,
		seats = 2,

		part Bort
		{
			category = nodisplay,

			model Bort
			{
				file = ZIL130GT_Bort,
			}

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

		part Tent
		{
			category = nodisplay,

			model Tent
			{
				file = ZIL130GT_Tent,
			}

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

		physics box
		{
			offset = 0.0000 0.6560 1.4480,
			extents = 1.3680 1.1040 1.6000,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.6560 -0.9600,
			extents = 1.4480 1.1040 2.8960,
			rotate = 0.0000 0.0000 0.0000,
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.5600 -0.2720 0.7920,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.5520 -0.2720 0.7920,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.5200 -0.2720 -2.0560,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.5200 -0.2720 -2.0560,
			radius = 0.3f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2640 0.2720 0.0400,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.0240 -0.4720 0.0160,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2480 0.2720 0.0400,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.9920 -0.4720 0.0160,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.4800 0.8640 0.4480,
		}

		area TruckBed
		{
			xywh = 0.0000 -3.0960 1.3440 0.4320,
		}

		area SeatFrontLeft
		{
			xywh = 1.0240 0.8800 0.4480 0.4800,
		}

		area SeatFrontRight
		{
			xywh = -1.0240 0.8800 0.4480 0.4800,
		}

		area GasTank
		{
			xywh = 1.0240 0.1680 0.4480 0.4480,
		}

		area TireFrontLeft
		{
			xywh = 1.0240 1.6000 0.4480 0.4480,
		}

		area TireFrontRight
		{
			xywh = -1.0240 1.6000 0.4480 0.4480,
		}

		area TireRearLeft
		{
			xywh = 1.0240 -1.2800 0.4480 0.4480,
		}

		area TireRearRight
		{
			xywh = -1.0240 -1.2800 0.4480 0.4480,
		}

		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 = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 500,
			}
		}

		template = GasTank,

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

			uninstall
			{
				skills = Mechanics:3,
				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 = ZILfrontwheelleft,
			}
		}

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

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

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

		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:4,
				recipes = Intermediate Mechanics,
			}

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

		template = Headlight,

		template vehicle
		{
			part TCLConfig
			{
				category = nodisplay,

				table TCLConfig
				{
					trailerOutside = false,
				}
			}
		}

		attachment trailer
		{
			offset = -0.0240 -0.0560 -3.1840,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}
	}
}
