module Base
{
	model MTZ80GREBase
	{
		mesh = vehicles/Vehicle_MTZ80_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}
	model MTZGREfrontwheelleft
	{
		mesh = vehicles/Vehicle_MTZ_Wheel_FRONT,
		texture = vehicles/Vehicle_MTZ_GRE_wheel,
	}
	model MTZGREfrontwheelright
	{
		mesh = vehicles/Vehicle_MTZ_Wheel_FRONT,
		texture = vehicles/Vehicle_MTZ_GRE_wheel,
	}
	model MTZGREbackwheelleft
	{
		mesh = vehicles/Vehicle_MTZ_Wheel_REAR,
		texture = vehicles/Vehicle_MTZ_GRE_wheel,
	}
	model MTZGREbackwheelright
	{
		mesh = vehicles/Vehicle_MTZ_Wheel_REAR,
		texture = vehicles/Vehicle_MTZ_GRE_wheel,
	}
	vehicle MTZ80GRE
	{
		mechanicType = 2,
		offRoadEfficiency = 15,
		engineRepairLevel = 3,
		playerDamageProtection = 5,

		model
		{
			file = MTZ80GREBase,
			scale = 1.6700,
			7500,
			offset = 0.0000 0.4311 0.0000,
		}

		skin
		{
			texture = Vehicles/Vehicle_MTZ80_GRE,
		}

		textureShadow = Shadows/Vehicle_MTZ_shadow,
		textureMask = Vehicles/Vehicle_MTZ80_Mask,
		textureLights = Vehicles/Vehicle_MTZ80_Lights,
		textuGREamage1Overlay = Vehicles/Vehicle_MTZ80_DAMAGE1,
		textuGREamage2Overlay = Vehicles/Vehicle_MTZ80_DAMAGE2,
		textuGREamage1Shell = Vehicles/Vehicle_MTZ80_DAMAGE1,
		textuGREamage2Shell = Vehicles/Vehicle_MTZ80_DAMAGE2,
		textureRust = Vehicles/Vehicle_MTZ80_Rust,

		sound
		{
			engine = VehicleEngineVan,
			engineStart = start_engine_MTZ,
			engineTurnOff = OKA_engine_off,
			horn = horn_ZIL,
			ignitionFail = fail_start_engine_MTZ,
		}

		extents = 1.0419 0.3234 1.9401,
		mass = 1000,
		physicsChassisShape = 0.3114 0.8503 1.8563,
		centerOfMassOffset = 0.0000 0.2455 0.0359,
		shadowExtents = 1.2554 2.2514,
		shadowOffset = 0.0000 0.1247,
		engineForce = 2400,
		engineQuality = 35,
		engineLoudness = 99,
		maxSpeed = 8f,
		gearRatioCount = 4,
		gearRatioR = 7.09,
		gearRatio1 = 5.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 10,
		rollInfluence = 0.9f,
		steeringIncrement = 0.1,
		steeringClamp = 0.5,
		suspensionStiffness = 40,
		suspensionCompression = 0.80,
		suspensionDamping = 0.80,
		maxSuspensionTravelCm = 5,
		suspensionRestLength = 0.2,
		wheelFriction = 1.3f,
		frontEndHealth = 300,
		rearEndHealth = 500,
		seats = 1,

		physics box
		{
			offset = 0.0000 0.4671 -0.4671,
			extents = 1.0299 0.9281 0.8503,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.2335 0.8263,
			extents = 1.0299 0.4731 0.4671,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.7246 -0.2096,
			extents = 0.6467 0.8922 0.7784,
			rotate = 0.0000 0.0000 0.0000,
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.4192 -0.4311 0.8263,
			radius = 0.22f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.4192 -0.4311 0.8263,
			radius = 0.22f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3772 -0.2814 -0.4671,
			radius = 0.42f,
			width = 0.3f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3772 -0.2814 -0.4671,
			radius = 0.42f,
			width = 0.3f,
		}

		passenger FrontLeft
		{
			door = DoorFrontLeft,
			area = SeatFrontLeft,

			position inside
			{
				offset = 0.0000 0.1737 -0.2275,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6826 -0.5509 -0.1377,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		template! = PassengerCommon,

		area Engine
		{
			xywh = 0.6946 0.3653 0.3473 0.3952,
		}

		area TruckBed
		{
			xywh = -0.6347 -0.4611 0.2275 0.2395,
		}

		area SeatFrontLeft
		{
			xywh = 0.6766 0.0000 0.3114 0.2395,
		}

		area GasTank
		{
			xywh = 0.1257 -1.1198 0.3832 0.3713,
		}

		area TireFrontLeft
		{
			xywh = 0.5329 0.8263 0.4311 0.4311,
		}

		area TireFrontRight
		{
			xywh = -0.5329 0.8263 0.4311 0.4311,
		}

		area TireRearLeft
		{
			xywh = 0.7066 -0.4671 0.4311 0.4311,
		}

		area TireRearRight
		{
			xywh = -0.7066 -0.4671 0.4311 0.4311,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 10,
			}
		}

		template = Seat/part/SeatFrontLeft,

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

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

		part GloveBox
		{
			area = SeatFrontLeft,
			itemType = Base.GloveBox,
			mechanicRequireKey = false,

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

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

		template = GasTank,

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

			uninstall
			{
				skills = Mechanics:4,
				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 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*
		{
			window
			{
				openable = false,
			}

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

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

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

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

		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,

		template vehicle
		{
			part TCLConfig
			{
				category = nodisplay,

				table TCLConfig
				{
					trailerOutside = false,
				}
			}
		}

		attachment trailer
		{
			offset = 0.0000 -0.2515 -0.9581,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
