module Base
{
	model 83gmcGseriesVansKitL
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_bodykit,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	model 83gmcGseriesVansKitR
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_bodykit,
		shader = damn_vehicle_shader,
		invertX = TRUE,
		scale = 0.1,
	}
	model 83gmcGseriesVansinteriorA
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_interior_aTeam,
		texture = Vehicles/Vehicles_83gmcGseriesVans_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	model 83gmcGseriesVansmufflerA
	{
		mesh = vehicles/Vehicles_83gmcGseriesVans_Body|vand83_exhaust1,
		texture = Vehicles/Vehicles_83gmcGseriesVans_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	vehicle 83gmcG1500aTeam
	{
		mechanicType = 2,
		offRoadEfficiency = 1.1,
		engineRepairLevel = 4,
		playerDamageProtection = 1.2,

		model
		{
			file = 83gmcGseriesVansBase,
			scale = 0.9000,
			offset = 0.0000 0.6000 0.0000,
		}

		spawnOffsetY = 0,

		skin
		{
			texture = Vehicles/Vehicles_83gmcGseriesVans_Shell_ATeam,
		}

		textureRust = Vehicles/Vehicles_83gmcGseriesVans_Rust,
		textureMask = Vehicles/Vehicles_83gmcGseriesVans_Mask,
		textureLights = Vehicles/Vehicles_83gmcGseriesVans_Lights,
		textureDamage1Shell = Vehicles/Vehicles_83gmcGseriesVans_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_83gmcGseriesVans_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_83gmcGseriesVans_Blood,
		textureDamage2Overlay = Vehicles/Vehicles_83gmcGseriesVans_Blood,

		sound
		{
			engine = VehicleEngineCarNormal,
			engineStart = VehicleEngineCarNormal,
			engineTurnOff = VehicleEngineCarNormal,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailCarNormal,
		}

		extents = 2.0667 1.6222 5.2000,
		mass = 760,
		physicsChassisShape = 2.0667 1.6222 5.2000,
		centerOfMassOffset = 0.0000 0.8444 -0.1111,
		shadowExtents = 2.1911 5.4127,
		shadowOffset = 0.0000 -0.1122,
		engineForce = 4650,
		maxSpeed = 90f,
		engineLoudness = 75,
		engineQuality = 85,
		brakingForce = 85,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.91f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 36,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.40,
		wheelFriction = 1.8f,
		frontEndHealth = 450,
		rearEndHealth = 350,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.9556 -0.6556 1.6889,
			radius = 0.35f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.9556 -0.6556 1.6889,
			radius = 0.35f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.9556 -0.6556 -1.4778,
			radius = 0.35f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.9556 -0.6556 -1.4778,
			radius = 0.35f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,
			door = DoorFrontLeft,

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

			position outside
			{
				offset = 1.2889 -0.9333 0.6333,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,
			door = DoorFrontRight,

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

			position outside
			{
				offset = -1.3111 -0.9333 0.6333,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,
			hasRoof = true,
			door = DoorRearRight,

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

			position outside
			{
				offset = -1.2667 -0.9333 0.1778,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,
			door = DoorRearRight,

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

			position outside
			{
				offset = -1.2667 -0.9333 -0.2444,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.8778 1.5556 0.7778,
		}

		area TruckBed
		{
			xywh = 0.0000 -3.1000 1.4889 0.7778,
		}

		area SeatFrontLeft
		{
			xywh = 1.4222 1.1222 0.7778 0.9111,
		}

		area SeatFrontRight
		{
			xywh = -1.4222 1.1222 0.7778 0.9111,
		}

		area SeatRearRight
		{
			xywh = -1.4222 -0.0333 0.7778 1.3778,
		}

		area GasTank
		{
			xywh = 1.4222 -2.3222 0.7778 0.7778,
		}

		area TireFrontLeft
		{
			xywh = 1.4556 1.6778 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.4556 1.6778 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.4556 -1.5000 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.4556 -1.5000 0.4222 0.4222,
		}

		area Roofrack
		{
			xywh = 0.0000 -0.9889 3.3333 4.1778,
		}

		template = GMC83TrunkCompartment,
		template = GMC83TrunkCompartmentA,
		template = GMC83Armor,
		template = GMC83FrontBumperA,
		template = GMC83RearBumper,
		template = GMC83SeatsFour,
		template = GMC83SpareTireA,
		template = GMC83EngineDoor,
		template = GMC83DoorsA,
		template = GMC83SlideDoor,
		
		template = GMC83TrunkDoor,
		
		template = GMC83SunVisorA,
		template = GMC83SpoilerA,

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

			model gmcint
			{
				file = 83gmcGseriesVansinterior,
			}

			model gmcinta
			{
				file = 83gmcGseriesVansinteriorA,
			}

			model gmckitl
			{
				file = 83gmcGseriesVansKitL,
			}

			model gmckitr
			{
				file = 83gmcGseriesVansKitR,
			}

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

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

		template = GasTank,

		part GasTank
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,

		part Battery
		{
			model GMSbat5348
			{
				file = 83gmcGseriesVansbattery,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model muff6661
			{
				file = 83gmcGseriesVansmufflerA,
			}

			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 = GMC83TiresA,
		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_HAM,
		template = Headlight,
        template = GMC83Windshield,
		template = GMC83Windows,
        template = GMC83RearWindshield,
        template = DAMNglobal,
		template = DAMN83gmcG1500aTeam,
		useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.4445 -0.1333,
            extents = 2.0444 0.7556 5.0444,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 1.2333 -0.5015,
            extents = 1.7556 0.8222 3.6889,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 1.1778 -2.2995,
            extents = 1.7556 0.8667 0.3778,
            rotate = 18.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 1.1333 1.4178,
            extents = 1.7556 0.5778 0.8667,
            rotate = 48.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.7887 2.0444,
            extents = 1.7556 0.3111 0.6222,
            rotate = 21.0000 0.0000 0.0000,
        }

		attachment trailer
		{
			offset = 0.0000 -0.4111 -2.7556,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.4111 2.5222,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
