module Base
{
	model 87fordB700Base
	{
		mesh = vehicles/Vehicles_87fordB700_Body|b700_body,
		shader = damn_vehicle_shader,
		scale = 0.1,
	}
	model 87fordB700Interior
	{
		mesh = vehicles/Vehicles_87fordB700_Body|b700_interior_bus,
		texture = vehicles/Vehicles_87fordB700_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 87fordB700Engine
	{
		mesh = vehicles/Vehicles_87fordB700_Body|b700_interior,
		texture = vehicles/Vehicles_87fordB700_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 87fordB700Roof
	{
		mesh = vehicles/Vehicles_87fordB700_Body|b700_roof,
		texture = vehicles/Vehicles_87fordB700_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	model 87fordB700Battery
	{
		mesh = vehicles/Vehicles_87fordB700_Body|TIS_CarBattery,
		texture = vehicles/Vehicles_87fordB700_Interior,
		shader = vehiclewheel,
		scale = 0.1,
	}
	vehicle 87fordB700school
	{
		mechanicType = 2,
		offRoadEfficiency = 1.1,
		engineRepairLevel = 4,
		playerDamageProtection = 1.2,
		engineRPMType = van,

		model
		{
			file = 87fordB700Base,
			scale = 0.9000,
			offset = 0.0000 0.8889 0.8222,
		}

		spawnOffsetY = 0,

		skin
		{
			texture = Vehicles/Vehicles_87fordB700school_Shell,
		}

		textureRust = Vehicles/Vehicles_87fordB700_Rust,
		textureMask = Vehicles/Vehicles_87fordB700_Mask,
		textureLights = Vehicles/Vehicles_87fordB700_Lights,
		textureDamage1Shell = Vehicles/Vehicles_87fordB700_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_87fordB700_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_87fordB700_Blood1,
		textureDamage2Overlay = Vehicles/Vehicles_87fordB700_Blood1,

		lightbar
		{
			soundSiren = B700,
			leftCol = 1;0;0,
			rightCol = 1;0.6;0,
		}

		sound
		{
			engine = VehicleEngineSUV,
			engineStart = VehicleEngineSUV,
			engineTurnOff = VehicleEngineSUV,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailSUV,
		}

		extents = 2.4889 2.1778 9.4444,
		mass = 950,
		physicsChassisShape = 2.4889 2.1778 9.4444,
		centerOfMassOffset = 0.0000 1.2444 0.0000,
		shadowExtents = 2.5112 10.6223,
		shadowOffset = 0.0000 0.0111,
		engineForce = 5050,
		maxSpeed = 55f,
		engineLoudness = 130,
		engineQuality = 85,
		gearRatioCount = 4,
		gearRatioR = 4,
		gearRatio1 = 4,
		gearRatio2 = 3,
		gearRatio3 = 2.5,
		gearRatio4 = 1.0,
		brakingForce = 50,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.90f,
		steeringIncrement = 0.03,
		steeringClamp = 0.25,
		suspensionStiffness = 60,
		suspensionCompression = 4.83,
		suspensionDamping = 3.88,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.15f,
		wheelFriction = 1.9f,
		frontEndHealth = 3500,
		rearEndHealth = 3000,
		seats = 15,
		isSmallVehicle = false,

		wheel FrontLeft
		{
			front = true,
			offset = 1.0222 -0.8333 3.1778,
			radius = 0.45f,
			width = 0.30f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -1.0222 -0.8333 3.1778,
			radius = 0.45f,
			width = 0.30f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.8889 -0.8333 -2.6778,
			radius = 0.45f,
			width = 0.60f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.8889 -0.8333 -2.6778,
			radius = 0.45f,
			width = 0.60f,
		}

		template = B700Passengers,

		area Engine
		{
			xywh = -1.6444 3.8333 0.8000 1.0000,
		}

		area Roofrack
		{
			xywh = -1.8000 1.0778 1.1111 1.0222,
		}

		area TruckBed
		{
			xywh = 0.6778 -4.8333 2.3333 1.4444,
		}

		area StorageLeft
		{
			xywh = 1.6444 2.6333 0.8000 0.9333,
		}

		area Sign
		{
			xywh = 1.6444 1.7222 0.8000 0.9333,
		}

		area StorageRight
		{
			xywh = -1.6444 1.7000 0.8000 0.9333,
		}

		area SeatFrontLeft
		{
			xywh = 1.6444 2.6778 0.8000 0.8889,
		}

		area SeatFrontRight
		{
			xywh = -1.6444 2.6889 0.8000 1.0444,
		}

		area SeatMiddleRight
		{
			xywh = -1.6889 0.3222 0.8000 0.9333,
		}

		area SeatRearRight
		{
			xywh = -1.6889 -2.7778 0.8000 0.9333,
		}

		area SeatRearLeft
		{
			xywh = 1.6889 -1.2778 0.8000 0.9333,
		}

		area GasTank
		{
			xywh = -1.5889 -3.7111 0.4222 0.9333,
		}

		area TireFrontLeft
		{
			xywh = 1.9778 3.9556 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.9778 3.9556 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 2.1111 -1.9000 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -2.1111 -1.9000 0.4222 0.4222,
		}

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

			model b700INT
			{
				file = 87fordB700Interior,
			}

			model b700ENG
			{
				file = 87fordB700Engine,
			}

			model b700ROOF
			{
				file = 87fordB700Roof,
			}

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

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

		template = B700EngineDoor,
		template = B700StorageLids,
		template = B700TrunkCompartment,
		template = B700SideStorage,
		template = B700SeatDriver,
		template = B700SeatsPassengers,
		template = B700Bumpers,
		template = B700Windows,
		template = B700Windshields,
		template = B700Doors,
		template = B700Mudflaps,
		template = B700Armor,
		template = B700StopSign,
		template = B700Roofrack,
		template = B700SpareTires,
		template = B700NomadGear,
		template = B700GasTank,
		template = airBrake,
		template = Battery,

		part Battery
		{
			area = StorageLeft,

			model batlin
			{
				file = 87fordB700Battery,
				scale = 1.0,
			}

			table install
			{
				door = StorageLidLeft,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			area = TireRearRight,

			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = B700EngineDoor,

		part Heater
		{
			category = engine,

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

		part PassengerCompartment
		{
			category = nodisplay,

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

		template = B700Tires,
		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/part/HeadlightLeft,
		template = Headlight/part/HeadlightRight,
		template = Headlight/part/HeadlightRearLeft,
		template = Headlight/part/HeadlightRearRight,

		attachment trailer
		{
			offset = 0.0000 -0.7222 -5.6667,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.7222 3.9444,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
