module Base
{
	model 89defender110Extra2
	{
		mesh = vehicles/Vehicles_89defender_Body|defender_110_body_utility,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	vehicle 89defender110utility
	{
		mechanicType = 2,
		offroadEfficiency = 1.15,
		engineRepairLevel = 4,
		playerDamageProtection = 1.4,
		engineRPMType = van,

		model
		{
			file = 89defender110Base,
			scale = 0.9000,
			offset = 0.0000 0.4333 -0.0778,
		}

		skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_arizonaTan,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_arranBeige,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_black,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_bronzeGreen,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_camelTrophyYellow,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_corallinRed,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_darkGrey,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_lincolnGreen,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_tamarBlue,
		}
        skin
		{
			texture = Vehicles/Vehicles_89defender110_Shell_white,
		}

		textureRust = Vehicles/Vehicles_89defender110_Rust,
		textureMask = Vehicles/Vehicles_89defender110_Mask,
		textureLights = Vehicles/Vehicles_89defender_Lights,
		textureDamage1Shell = Vehicles/Vehicles_89defender_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_89defender_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_89defender_Blood,
		textureDamage2Overlay = Vehicles/Vehicles_89defender_Blood,

		sound
		{
			engine = VehicleEngineOffRoad,
			engineStart = VehicleEngineOffRoad,
			engineTurnOff = VehicleEngineOffRoad,
			horn = VehicleHornJeep,
			ignitionFail = VehicleIgnitionFailOffRoad,
		}

		extents = 1.7333 1.5111 4.3556,
		mass = 770,
		physicsChassisShape = 1.7333 1.5111 4.3556,
		centerOfMassOffset = 0.0000 0.9111 -0.1556,
		shadowExtents = 1.8453 4.7043,
		shadowOffset = -0.0026 -0.1462,
		engineForce = 4300,
		maxSpeed = 75f,
		engineLoudness = 80,
		engineQuality = 78,
		brakingForce = 55,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.96f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 36,
		suspensionCompression = 3.85,
		suspensionDamping = 2.85,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.20f,
		wheelFriction = 1.7f,
		frontEndHealth = 150,
		rearEndHealth = 165,
		seats = 5,

		wheel FrontLeft
		{
			front = true,
			offset = 0.7556 -0.4444 1.5111,
			radius = 0.37f,
			width = 0.26f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.7556 -0.4444 1.5111,
			radius = 0.37f,
			width = 0.26f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.7556 -0.4444 -1.2667,
			radius = 0.37f,
			width = 0.26f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.7556 -0.4444 -1.2667,
			radius = 0.37f,
			width = 0.26f,
		}

		template = PassengerSeat5,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.4111 0.2667 0.0889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.1778 -0.7333 0.0889,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.4111 0.2667 0.0889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.1667 -0.7333 0.1000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.4222 0.2667 -0.6444,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.2000 -0.7222 -0.7889,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearMiddle
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.0000 0.2667 -0.6444,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.2111 -0.6667 -0.9889,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.4222 0.2667 -0.6333,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.1889 -0.6667 -0.7556,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.4111 1.3333 0.7778,
		}

		area TruckBed
		{
			xywh = 0.2000 -2.7222 1.3333 0.7778,
		}

		area Roofrack
		{
			xywh = 0.0000 -0.7000 3.1333 2.7778,
		}

		area StorageLeft
		{
			xywh = 1.2556 -1.5333 0.7778 1.2222,
		}

		area StorageRight
		{
			xywh = -1.2556 -1.5333 0.7778 1.2222,
		}

		area SeatFrontLeft
		{
			xywh = 1.2556 0.3000 0.7778 0.8889,
		}

		area SeatFrontRight
		{
			xywh = -1.2556 0.3000 0.7778 0.8889,
		}

		area SeatRearRight
		{
			xywh = -1.2556 -0.5333 0.7778 0.7778,
		}

		area SeatRearLeft
		{
			xywh = 1.2556 -0.5333 0.7778 0.7778,
		}

		area GasTank
		{
			xywh = -1.3111 -2.0111 0.4222 0.4222,
		}

		area TireFrontLeft
		{
			xywh = 1.3111 1.4333 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.3111 1.4333 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.3111 -1.3444 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.3111 -1.3444 0.4222 0.4222,
		}

		template = DEF89TrunkCompartment,

            part DEF89Trunk
		    {
                container
                {
                    capacity = 110,
                    test = DAMN.ContainerAccess.TrunkSecondRow,
                }
		    }
		template = DEF89Tires,
		template = DEF89Seats5,
		template = DEF89EngineDoor,
		template = DEF89Doors4,
		template = DEF89Windows110U,
		template = DEF89Windshields110,
		template = DEF89TrunkDoor110,
		template = DEF89Mudflaps110,
		template = DEF89SidestepsLong,
		template = DEF89BumpersFront,
		template = DEF89BumpersRear110,
		template = DEF89Snorkel,
		template = DEF89SpareTire110,
		template = DEF89Armor110,
		template = DEF89RoofrackM110,
		template = DEF89Vents,

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

			model defcommonbod
			{
				file = 89defenderBase,
			}

			model defint
			{
				file = 89defenderInterior,
			}

			model def110int
			{
				file = 89defender110Interior,
			}

			model def110extra2
			{
				file = 89defender110Extra2,
			}

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

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

        template = DEF89CenterConsole,

		template = GasTank,

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

			uninstall
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,

        part Battery
        {
            area = SeatFrontLeft,

            table uninstall
			{
				requireUninstalled = SeatFrontLeft,
			}
        }

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model def110exh
			{
				file = 89defender110Exhaust,
			}

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

		attachment trailer
		{
			offset = 0.0000 -0.1889 -2.4000,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.1556 2.2556,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
