module Base
{
	model 90fordF350ambulanceBase
	{
		mesh = vehicles/Vehicles_90fordF350ambulance_Body|f350_body,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	model 90fordF350ambulanceInterior
	{
		mesh = vehicles/Vehicles_90fordF350ambulance_Body|f350_interior,
		texture = Vehicles/Vehicles_90fordF350ambulance_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	model 90fordF350ambulanceTISBattery
	{
		mesh = vehicles/Vehicles_90fordF350ambulance_Body|TIS_CarBattery,
		texture = Vehicles/Vehicles_90fordF350ambulance_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	vehicle 90fordF350ambulance
	{
		mechanicType = 2,
		offRoadEfficiency = 1.05,
		engineRepairLevel = 4,
		playerDamageProtection = 1.2,

		model
		{
			file = 90fordF350ambulanceBase,
			scale = 0.9000,
			offset = 0.0000 0.4889 0.8111,
		}

		spawnOffsetY = 0,

		skin
		{
			texture = Vehicles/Vehicles_90fordF350ambulance_Shell_white,
		}

		skin
		{
			texture = Vehicles/Vehicles_90fordF350ambulance_Shell_red,
		}

		skin
		{
			texture = Vehicles/Vehicles_90fordF350ambulance_Shell_white,
		}

		skin
		{
			texture = Vehicles/Vehicles_90fordF350ambulance_Shell_red,
		}

		skin
		{
			texture = Vehicles/Vehicles_90fordF350ambulance_Shell_green,
		}

		skin
		{
			texture = Vehicles/Vehicles_90fordF350ambulance_Shell_redBlack,
		}

		textureRust = Vehicles/Vehicles_90fordF350ambulance_Rust,
		textureMask = Vehicles/Vehicles_90fordF350ambulance_Mask,
		textureLights = Vehicles/Vehicles_90fordF350ambulance_Lights,
		textureDamage1Shell = Vehicles/Vehicles_90fordF350ambulance_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_90fordF350ambulance_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_90fordF350ambulance_Blood,
		textureDamage2Overlay = Vehicles/Vehicles_90fordF350ambulance_Blood,
		textureShadow = Vehicles/Vehicles_90fordF350ambulance_Shadow,

		lightbar
		{
			soundSiren = VehicleSiren,
			leftCol = 1;0;0,
			rightCol = 1;0;0,
		}

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

		extents = 2.2667 2.0889 6.8222,
		mass = 900,
		physicsChassisShape = 2.2667 2.0889 6.8222,
		centerOfMassOffset = 0.0000 1.0556 -0.2333,
		shadowExtents = 2.5132 6.7682,
		shadowOffset = 0.0000 -0.2468,
		engineForce = 4100,
		maxSpeed = 80f,
		engineLoudness = 75,
		engineQuality = 88,
		brakingForce = 85,
		stoppingMovementForce = 3.2f,
		rollInfluence = 0.95f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 38,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.40,
		wheelFriction = 1.8f,
		frontEndHealth = 600,
		rearEndHealth = 550,
		seats = 5,

		wheel FrontLeft
		{
			front = true,
			offset = 0.8222 -0.5778 1.5333,
			radius = 0.37f,
			width = 0.22f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.8222 -0.5778 1.5333,
			radius = 0.37f,
			width = 0.22f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.9000 -0.5778 -2.5000,
			radius = 0.37f,
			width = 0.44f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.9000 -0.5778 -2.5000,
			radius = 0.37f,
			width = 0.44f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.4889 0.0444 0.1000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.3333 -0.8889 -0.1889,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}

			switchSeat RearLeft
			{
			}

			switchSeat RearRight
			{
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.4889 0.0444 0.1000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.3111 -0.8889 -0.1778,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}

			switchSeat RearLeft
			{
			}

			switchSeat RearRight
			{
			}
		}

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

			position inside
			{
				offset = -0.7333 0.2333 -2.8778,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.0000 -0.8889 -4.8000,
				rotate = 0.0000 0.0000 0.0000,
				area = TruckBed,
			}

			switchSeat FrontLeft
			{
			}

			switchSeat FrontRight
			{
			}

			switchSeat Stretcher
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound =,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.7333 0.2333 -2.1111,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.5889 -0.9000 -1.8778,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}

			switchSeat FrontLeft
			{
			}

			switchSeat FrontRight
			{
			}

			switchSeat Stretcher
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound =,
			}
		}

		passenger Stretcher
		{
			showPassenger = true,
			hasRoof = true,
			door = DoorRear,

			position inside
			{
				offset = 0.1667 0.0333 -2.7889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.0778 -0.9444 -4.7111,
				rotate = 0.0000 0.0000 0.0000,
				area = TruckBed,
			}

			switchSeat RearLeft
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound =,
			}

			switchSeat RearRight
			{
				anim = Climb_WindowB,
				rate = 0.23,
				sound =,
			}
		}

		area Engine
		{
			xywh = 0.0000 3.5667 1.6889 0.7778,
		}

		area TruckBed
		{
			xywh = -0.2222 -4.0333 1.5556 0.7778,
		}

		area StorageLeft
		{
			xywh = 1.5222 -0.3111 0.7778 1.3778,
		}

		area StorageCorner
		{
			xywh = 1.1889 -3.4111 1.2667 2.0222,
		}

		area StorageRight
		{
			xywh = -1.5222 -2.7889 0.7778 1.0444,
		}

		area SeatFrontLeft
		{
			xywh = 1.5222 1.1111 0.7778 1.0444,
		}

		area SeatFrontRight
		{
			xywh = -1.5222 1.1111 0.7778 1.0444,
		}

		area SeatRearRight
		{
			xywh = -1.5222 -0.5889 0.7778 0.8222,
		}

		area GasTank
		{
			xywh = 1.4111 -1.4222 0.8444 0.8444,
		}

		area TireFrontLeft
		{
			xywh = 1.4444 2.3778 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.4444 2.3778 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.6889 -1.6444 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.6889 -1.6444 0.4222 0.4222,
		}

		template = F350Tires,
		template = F350Seats,
		template = F350Doors,
		template = F350Bumpers,
		template = F350EngineDoor,
		template = F350TrunkDoors,
		template = F350Storage,
		template = F350Sidesteps,
		template = F350Armor,

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

			model F350int
			{
				file = 90fordF350ambulanceInterior,
				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 F350tisbat
			{
				file = 90fordF350ambulanceTISBattery,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			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_HAM,
		template = Headlight,
		template = F350Windshield,
		template = F350Windows,
        useChassisPhysicsCollision = false,

		physics box
		{
			offset = 0.0000 1.0667 -1.6222,
			extents = 2.3556 2.1333 4.0444,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.4334 1.7444,
			extents = 1.9778 0.8667 2.6889,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.1436 0.9000,
			extents = 1.6889 0.5556 0.8667,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.9939 1.4333,
			extents = 1.6889 0.7778 0.4000,
			rotate = -40.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.4667 -4.5778,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.4444 2.5333,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
