module Base
{
	vehicle 49powerWagonMP
	{
		mechanicType = 2,
		offRoadEfficiency = 1.4,
		engineRepairLevel = 4,
		playerDamageProtection = 1.2,

		model
		{
			file = 49powerWagonBase,
			scale = 0.9000,
			offset = 0.0000 0.6000 0.0000,
		}

		spawnOffsetY = 0,

		skin
		{
			texture = Vehicles/Vehicles_49powerWagon_ShellMP_green,
		}

		skin
		{
			texture = Vehicles/Vehicles_49powerWagon_ShellMP_blue,
		}

		textureRust = Vehicles/Vehicles_49powerWagon_Rust,
		textureMask = Vehicles/Vehicles_49powerWagon_Mask,
		textureLights = Vehicles/Vehicles_49powerWagon_Lights,
		textureDamage1Shell = Vehicles/Vehicles_49powerWagon_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_49powerWagon_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_49powerWagon_Blood,
		textureDamage2Overlay = Vehicles/Vehicles_49powerWagon_Blood,

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

		extents = 2.0444 1.3778 5.2222,
		mass = 900,
		physicsChassisShape = 2.0444 1.3778 5.2222,
		centerOfMassOffset = 0.0000 1.0222 -0.1444,
		shadowExtents = 2.2022 5.4793,
		shadowOffset = 0.0000 -0.2010,
		engineForce = 4560,
		maxSpeed = 80f,
		engineLoudness = 89,
		engineQuality = 83,
		brakingForce = 85,
		stoppingMovementForce = 3.5f,
		rollInfluence = 0.95f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 40,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 12,
		suspensionRestLength = 0.3,
		wheelFriction = 1.85f,
		frontEndHealth = 850,
		rearEndHealth = 450,
		seats = 5,

		wheel FrontLeft
		{
			front = true,
			offset = 0.9222 -0.5556 1.6222,
			radius = 0.43f,
			width = 0.26f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.9222 -0.5556 1.6222,
			radius = 0.43f,
			width = 0.26f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.9222 -0.5778 -1.5333,
			radius = 0.43f,
			width = 0.26f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.9222 -0.5778 -1.5333,
			radius = 0.43f,
			width = 0.26f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.3556 0.1667 0.3000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.1111 -1.0000 -0.0667,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.3556 0.1667 0.3000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.0889 -1.0000 -0.0556,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.3556 0.1667 -0.5889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.1000 -1.0111 -0.9000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.3556 0.1667 -0.5889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.0444 -1.0111 -0.8444,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		passenger TruckBed
		{
			showPassenger = true,
			hasRoof = false,
			door = FakeDoor,
			area = TruckBed,

			position inside
			{
				offset = -0.2111 0.3778 -1.7889,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.0000 -0.9778 -2.9556,
				rotate = 0.0000 0.0000 0.0000,
				area = TruckBed,
			}
		}

		area Engine
		{
			xywh = 1.4111 1.7000 0.7778 1.0667,
		}

		area TruckBed
		{
			xywh = 0.0000 -3.1556 1.3333 0.7778,
		}

		area StealThis
		{
			xywh = 0.0000 -1.8556 1.5556 1.7778,
		}

		area SeatFrontLeft
		{
			xywh = 1.4111 0.4667 0.7778 0.8000,
		}

		area SeatFrontRight
		{
			xywh = -1.4111 0.4667 0.7778 0.8000,
		}

		area SeatRearRight
		{
			xywh = -1.4111 -0.3889 0.7778 0.7778,
		}

		area SeatRearLeft
		{
			xywh = 1.4111 -0.3889 0.7778 0.7778,
		}

		area GasTank
		{
			xywh = -1.4111 -2.3778 0.7778 0.7778,
		}

		area TireFrontLeft
		{
			xywh = 1.4333 1.6333 0.4222 0.4222,
		}

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

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

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

		template = PWRTiresStock,
		template = PWRSeats,
		template = PWRFenders,
		template = PWRFrontBumpers,
		template = PWREngineDoor,
		template = PWRTrunkDoors,
		template = PWRTrunkCompartment,
		template = PWRDoors,
		template = PWRWindows,
		template = PWRWindshields,
		template = PWRSideskirts,
		template = PWRArmor,
		template = PWRSpareTireStock,

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

			model PWRint
			{
				file = 49powerWagonInterior,
			}

			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 PWRtisbat
			{
				file = 49powerWagonTISBattery,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model powerMuff
			{
				file = 49powerWagonExhaust,
			}

			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 SuspensionFrontLeft
		{
			model sus56486431
			{
				file = 49powerWagonSusfl,
			}
		}

		part SuspensionFrontRight
		{
			model sus56486741
			{
				file = 49powerWagonSusfr,
			}
		}

		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
		{
			model powerheadl
			{
				file = 49powerWagonheadlightfl,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			table install
			{
				requireInstalled = DAMNFenderFrontLeft,
			}
		}

		part HeadlightRight
		{
			model powerheadr
			{
				file = 49powerWagonheadlightfr,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			table install
			{
				requireInstalled = DAMNFenderFrontRight,
			}
		}

        useChassisPhysicsCollision = false,

		physics box
		{
			offset = 0.0000 0.5039 0.0000,
			extents = 2.0444 0.6000 4.2444,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.5922 -1.8556,
			extents = 1.5556 0.7778 1.8222,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.2371 -0.0778,
			extents = 1.5556 0.8667 1.7333,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.6471 1.4444,
			extents = 1.5556 0.8889 1.3111,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.5333 2.3010,
			extents = 1.7556 0.7111 0.3556,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.5111 -2.9222,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.5111 2.5556,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
