module Base
{
	template vehicle 85chevyStepVanStock
	{
		mechanicType = 2,
		offRoadEfficiency = 0.85,
		engineRepairLevel = 4,
		playerDamageProtection = 1.2,

		model
		{
			file = 85chevyStepVanBase,
			scale = 0.9000,
			offset = 0.0000 0.0556 0.0000,
		}

		spawnOffsetY = 0,

		textureRust = Vehicles/Vehicles_85chevyStepVan_Rust,
		textureMask = Vehicles/Vehicles_85chevyStepVan_Mask,
		textureLights = Vehicles/Vehicles_85chevyStepVan_Lights,
		textureDamage1Shell = Vehicles/Vehicles_85chevyStepVan_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_85chevyStepVan_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_85chevyStepVan_Blood,
		textureDamage2Overlay = Vehicles/Vehicles_85chevyStepVan_Blood,

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

		extents = 2.0667 2.0889 5.6667,
		mass = 620,
		physicsChassisShape = 2.0667 2.0889 5.6667,
		centerOfMassOffset = 0.0000 1.0667 -0.4111,
		shadowExtents = 2.1466 6.3237,
		shadowOffset = 0.0000 -0.3455,
		engineForce = 2500,
		maxSpeed = 65f,
		engineLoudness = 75,
		engineQuality = 77,
		brakingForce = 62,
		stoppingMovementForce = 2.0f,
		rollInfluence = 0.93f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 41,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 11,
		suspensionRestLength = 0.3,
		wheelFriction = 1.6f,
		frontEndHealth = 250,
		rearEndHealth = 150,
		seats = 2,
		isSmallVehicle = false,

		wheel FrontLeft
		{
			front = true,
			offset = 0.7778 -0.1222 1.6556,
			radius = 0.32f,
			width = 0.19f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.7778 -0.1222 1.6556,
			radius = 0.32f,
			width = 0.19f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.6889 -0.1222 -1.4556,
			radius = 0.32f,
			width = 0.38f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.6889 -0.1222 -1.4556,
			radius = 0.32f,
			width = 0.38f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.6333 0.6556 0.8667,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3222 -0.4444 0.8222,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.6222 0.6111 0.4111,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3111 -0.4444 0.8556,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.8131 1.5778 0.7778,
		}

		area TruckBed
		{
			xywh = 0.0000 -3.8000 1.1778 1.1111,
		}

		area Roofrack
		{
			xywh = -1.4222 -0.0556 0.7778 0.7778,
		}

		area SeatFrontLeft
		{
			xywh = 1.4222 0.8333 0.7778 0.8444,
		}

		area SeatFrontRight
		{
			xywh = -1.4222 0.8333 0.7778 0.8444,
		}

		area SeatRearRight
		{
			xywh = -1.4222 -0.1111 0.7778 1.0444,
		}

		area SeatRearLeft
		{
			xywh = 1.4222 0.2333 0.7778 0.3556,
		}

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

		area TireFrontLeft
		{
			xywh = 1.5556 1.6333 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.5556 1.6333 0.4222 0.4222,
		}

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

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

		template = STP85Tires,
		template = STP85Seats,
		template = STP85FrontBumpers,
		template = STP85RearBumpers,
		template = STP85EngineDoor,
		template = STP85TrunkDoors,
		template = STP85TrunkCompartment,
		template = STP85Doors,
		template = STP85Armor,
		template = STP85Vents,
		template = STP85Roofrack,
		template = STP85Barrier,

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

			model STP85int
			{
				file = 85chevyStepVanInterior,
				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
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,

		part Battery
		{
			model STP85tisbat
			{
				file = 85chevyStepVanTISBattery,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model superMuff4001
			{
				file = 85chevyStepVanExhaust,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			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 = STP85Windows,
		template = STP85Windshields,
		template = DAMNglobal,
		template = DAMN85chevyStepVan,
		useChassisPhysicsCollision = false,

		physics box
		{
			offset = 0.0000 1.0556 -0.7887,
			extents = 2.0444 2.1111 4.5333,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.0633 -3.1444,
			extents = 1.8667 0.1111 0.1778,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.3644 1.9333,
			extents = 2.0444 0.7333 0.9111,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.0912 2.4444,
			extents = 1.9556 0.1778 0.1111,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.7111 1.9134,
			extents = 2.0444 0.4444 0.8444,
			rotate = 25.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.4111 1.4101,
			extents = 2.0444 1.3111 0.4889,
			rotate = -15.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 0.0333 -3.2778,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 0.0333 2.4222,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
