module Base
{
	model 76chevyBlazerRear
	{
		mesh = vehicles/Vehicles_76chevyKseries_Body|76chevy_blazer,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	model 76chevyBlazerInt
	{
		mesh = vehicles/Vehicles_76chevyKseries_Body|76chevy_blazer_interior,
		texture = vehicles/Vehicles_76chevyKseries_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	vehicle 76chevyBlazer
	{
		mechanicType = 2,
		offRoadEfficiency = 1.2,
		engineRepairLevel = 4,
		playerDamageProtection = 1.3,

		model
		{
			file = 76chevyKBase,
			scale = 0.9000,
			offset = 0.0000 0.5333 -0.4889,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_yubaGold,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_catalinaBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_crimsonRed,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_frostWhite,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_grecianBronze,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_hawaianBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_mediumLime,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_midnightBlack,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_silverGray,
		}

		skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_wheatlandYellow,
		}

        skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_hawaianBlue2,
		}

        skin
		{
			texture = Vehicles/Vehicles_76chevyBlazer_Shell_silverBlack,
		}

		textureRust = Vehicles/Vehicles_76chevySuburban_Rust,
		textureMask = Vehicles/Vehicles_76chevyBlazer_Mask,
		textureLights = Vehicles/Vehicles_76chevySuburban_Lights,
		textureDamage1Shell = Vehicles/Vehicles_76chevyKseries_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_76chevyKseries_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_76chevySuburban_Blood1,
		textureDamage2Overlay = Vehicles/Vehicles_76chevySuburban_Blood1,

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

		extents = 1.9778 1.3333 4.4222,
		mass = 700,
		physicsChassisShape = 1.9778 1.3333 4.4222,
		centerOfMassOffset = 0.0000 0.8222 -0.1444,
		shadowExtents = 2.0432 4.8483,
		shadowOffset = 0.0000 -0.1366,
		engineForce = 4000,
		maxSpeed = 75f,
		engineLoudness = 85,
		engineQuality = 74,
		brakingForce = 65,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.97f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 35,
		suspensionCompression = 3.84,
		suspensionDamping = 2.84,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.20f,
		wheelFriction = 1.7f,
		frontEndHealth = 450,
		rearEndHealth = 250,
		seats = 4,

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

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

		wheel RearLeft
		{
			front = false,
			offset = 0.8333 -0.6000 -0.7556,
			radius = 0.38f,
			width = 0.25f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.8333 -0.6000 -0.7556,
			radius = 0.38f,
			width = 0.25f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.4778 0.0444 0.3889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3000 -0.9556 0.0556,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.4778 0.0444 0.3889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3111 -0.9556 0.1111,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

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

			position inside
			{
				offset = 0.2889 0.1111 -0.4222,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3000 -0.9556 -0.0889,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

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

			position inside
			{
				offset = -0.2889 0.1111 -0.4222,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3111 -0.9556 -0.1333,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.4556 1.7556 0.7778,
		}

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

		area Roofrack
		{
			xywh = 0.0000 -1.3111 3.2000 3.6444,
		}

		area Toolbox
		{
			xywh = 0.0000 -1.3667 3.2000 0.8444,
		}

		area SeatFrontLeft
		{
			xywh = 1.3778 0.0778 0.7778 1.0000,
		}

		area SeatFrontRight
		{
			xywh = -1.3778 0.0778 0.7778 1.0000,
		}

		area SeatRearLeft
		{
			xywh = 1.3778 -0.8333 0.7778 0.8222,
		}

		area SeatRearRight
		{
			xywh = -1.3778 -0.8333 0.7778 0.8222,
		}

		area GasTank
		{
			xywh = -1.5444 -2.0000 0.4222 0.4222,
		}

		area TireFrontLeft
		{
			xywh = 1.5444 1.2444 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.5444 1.2444 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.5444 -1.2444 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.5444 -1.2444 0.4222 0.4222,
		}

		template = CH76SeatsK30,

		part SeatFrontLeft
		{
			model SeatFL
			{
				file = 76chevyBlazerSeatfl,
				scale = 1.0,
			}
		}

		part SeatFrontRight
		{
			model seatFR
			{
				file = 76chevyBlazerSeatfr,
				scale = 1.0,
			}
		}

		part SeatRearLeft
		{
			model SeatRL
			{
				file = 76chevyBlazerSeatrl,
				scale = 1.0,
			}
		}

		part SeatRearRight
		{
			model seatRR
			{
				file = 76chevyBlazerSeatrr,
				scale = 1.0,
			}
		}

		template = CH76TrunkCompartmentBlazer,
		template = CH76TrunkDoorBlazer,
		template = CH76EngineDoor,
		template = CH76BedCoverBlazer,
		
		template = CH76Doors,
		template = CH76ArmorBlazer,
		template = CH76BumpersBlazer,
		template = CH76Roofrack,

		part CH76Roofrack
		{
			model CH76Roofrack0
			{
				file = 76chevyKseriesRoofrack0,
				offset = 0.0000 0.0000 0.5000,
			}

			model CH76RoofrackLights0
			{
				file = 76chevyKseriesRoofrackLights0,
				offset = 0.0000 0.0000 0.5000,
			}
		}

		template = CH76Tires,
		template = CH76SpareTireBed,
		template = CH76SpareTireSwingBlazer,
		template = CH76RoofLightsOFF,
		template = CH76SideStepsShort,

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

			model 76chevyBlazerRear
			{
				file = 	76chevyBlazerRear,
			}

			model 76chevyBlazerInt
			{
				file = 76chevyBlazerInt,
			}

			model 76chevyIntCom
			{
				file = 76chevyKseriesInterior,
			}

			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 76chevyBat
			{
				file = 76chevyKseriesTISbattery,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model 76chevyMuff2
			{
				file = 76chevyK10Muff,
				offset = 0.0000 0.0000 0.5000,
			}

			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,
        template = CH76WindshieldsBlazer,
		template = CH76Windows,
		template = CH76WindowsBlazerBack,
        template = DAMNglobal,
		template = DAMN76chevyBlazer,
		useChassisPhysicsCollision = false,

		physics box
		{
			offset = 0.0000 0.5375 -0.0556,
			extents = 1.9556 0.7556 4.8889,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.2000 0.3074,
			extents = 1.6000 0.5778 0.7778,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.0556 0.7178,
			extents = 1.6000 0.7333 0.4444,
			rotate = -34.0000 0.0000 0.0000,
		}

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

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