module Base
{
	model 93fordF350Extra
	{
		mesh = vehicles/Vehicles_93fordF350_Body|f350_dually_fenders,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	vehicle 93fordF350dually
	{
		mechanicType = 2,
		offRoadEfficiency = 1.1,
		engineRepairLevel = 4,
		playerDamageProtection = 1.3,

		model
		{
			file = 93fordF350Base,
			scale = 0.9000,
			offset = 0.0000 0.5333 0.1333,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_white,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_beige,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_green,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_yellow,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_red,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_darkBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_lightBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_maroon,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_black,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_camo,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_blueWhite,
		}

		skin
		{
			texture = Vehicles/Vehicles_93fordF350_Shell_redWhite,
		}

		textureRust = Vehicles/Vehicles_93fordF350_Rust,
		textureMask = Vehicles/Vehicles_93fordF350_Mask,
		textureLights = Vehicles/Vehicles_93fordF350_Lights,
		textureDamage1Shell = Vehicles/Vehicles_93fordF350_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_93fordF350_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_93fordF350_Blood1,
		textureDamage2Overlay = Vehicles/Vehicles_93fordF350_Blood1,
		textureShadow = Vehicles/Vehicles_93fordF350dually_Shadow,

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

		extents = 2.0000 1.3778 6.4444,
		mass = 880,
		physicsChassisShape = 2.0000 1.3778 6.4444,
		centerOfMassOffset = 0.0000 0.8444 0.0000,
		shadowExtents = 2.5986 6.4483,
		shadowOffset = 0.0001 0.0190,
		engineForce = 4200,
		maxSpeed = 85f,
		engineLoudness = 85,
		engineQuality = 76,
		brakingForce = 65,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.96f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 37,
		suspensionCompression = 3.84,
		suspensionDamping = 2.84,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.20f,
		wheelFriction = 1.7f,
		frontEndHealth = 650,
		rearEndHealth = 450,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.8333 -0.6000 2.1667,
			radius = 0.38f,
			width = 0.25f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.8333 -0.6000 2.1667,
			radius = 0.38f,
			width = 0.25f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.9333 -0.6000 -2.0444,
			radius = 0.38f,
			width = 0.50f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.9333 -0.6000 -2.0444,
			radius = 0.38f,
			width = 0.50f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.5111 0.0333 0.6111,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.2444 -0.9111 0.3000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.5111 0.0333 0.6111,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.2556 -0.9111 0.3333,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.5111 0.0333 -0.2111,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.2778 -0.9000 -0.5556,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.5111 0.0333 -0.2111,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.2778 -0.9000 -0.5333,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 3.6111 1.7556 0.7778,
		}

		area TruckBed
		{
			xywh = 0.0000 -3.6111 1.7556 0.7778,
		}

		area Toolbox
		{
			xywh = 0.0000 -0.8667 3.5556 0.9111,
		}

		area Roofrack
		{
			xywh = 0.0000 -1.8889 3.5556 4.2222,
		}

		area SeatFrontLeft
		{
			xywh = 1.3889 1.0444 0.7778 1.1333,
		}

		area SeatFrontRight
		{
			xywh = -1.3889 1.0444 0.7778 1.1333,
		}

		area SeatRearRight
		{
			xywh = -1.3889 0.0333 0.7778 0.8889,
		}

		area SeatRearLeft
		{
			xywh = 1.3889 0.0333 0.7778 0.8889,
		}

		area GasTank
		{
			xywh = 1.6667 -1.0778 0.4222 0.4222,
		}

		area TireFrontLeft
		{
			xywh = 1.6667 2.3000 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.6667 2.3000 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.6667 -1.9111 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.6667 -1.9111 0.4222 0.4222,
		}

		template = F3502Seats,
		template = F3502TrunkCompartmentDually,

        part F3502Trunk
		{
			container
			{
				capacity = 155,
			}
		}

		template = F3502TrunkDoor,

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

			model f350Int
			{
				file = 93fordF350Interior,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			model f350dually
			{
				file = 93fordF350Extra,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			model fx50_int
			{
				file = 93fordFx50Interior,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			model f350_bed
			{
				file = 93fordF350BaseBed,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			model f350longint
			{
				file = 93fordFx50LongbedInterior,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			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,

		part Battery
		{
			model 3502Bat
			{
				file = 93fordF350TISbattery,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model 3502Muff
			{
				file = 93fordF350Muff,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = F3502EngineDoor,

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		
		template = F3502Doors,
		template = F3502Armor,
		template = F3502Bumpers,
		template = F3502SideSteps,
		template = F3502MudflapsDually,
		template = F3502Roofrack,
		template = F3502TiresDually,
		template = F3502SpareTires,
		template = F3502RoofLights,
		template = F3502TruckBedAddonsOFF,
		template = F3502TruckBedAddons,
		template = F3502TruckBedCover,
		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,
        template = F3502Windshields,
		template = F3502Windows,
        template = F3502Collision,

        template = DAMNglobal,
		template = DAMN93fordF350dually,

		physics box
		{
			offset = 0.0000 0.4333 -1.9111,
			extents = 2.4111 0.5444 1.1111,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.3222 -3.5111,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.3222 3.2556,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
