module Base
{
	model W460SBase
	{
		mesh = vehicles/Vehicles_84mercW460_Body|w460_swb_body,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	model W460Sinterior
	{
		mesh = vehicles/Vehicles_84mercW460_Body|w460_swb_interior,
		texture = Vehicles/Vehicles_84mercLWB4_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	vehicle 84mercSWB
	{
		mechanicType = 2,
		offRoadEfficiency = 1.15,
		engineRepairLevel = 4,
		playerDamageProtection = 1.2,
		engineRPMType = firebird,

		model
		{
			file = W460SBase,
			scale = 0.9000,
			offset = 0.0000 0.6333 0.0000,
		}

		spawnOffsetY = 0,

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Dark_green,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Black,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Curry_yellow,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Mahogany_brown,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Old_mans_gold,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Red,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Red_oxide,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Saphire_blue,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_Yellow_green,
		}

		skin
		{
			texture = Vehicles/Vehicles_84mercSWB_Shell_LH,
		}

		textureRust = Vehicles/Vehicles_84mercXWB_Rust,
		textureMask = Vehicles/Vehicles_84mercSWB_Mask,
		textureLights = Vehicles/Vehicles_84mercSWB_Lights,
		textureDamage1Shell = Vehicles/Vehicles_84mercSWB_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_84mercSWB_Damage1,
		textureDamage1Overlay = Vehicles/Vehicles_84mercXWB_Blood,
		textureDamage2Overlay = Vehicles/Vehicles_84mercXWB_Blood,

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

		extents = 1.8000 1.5556 4.0222,
		mass = 760,
		physicsChassisShape = 1.8000 1.5556 4.0222,
		centerOfMassOffset = 0.0000 0.9222 0.1333,
		shadowExtents = 1.9799 4.1571,
		shadowOffset = 0.0000 0.1101,
		engineForce = 4100,
		maxSpeed = 85f,
		engineLoudness = 82,
		engineQuality = 85,
		brakingForce = 83,
		stoppingMovementForce = 3.5f,
		rollInfluence = 0.90f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 40,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.20,
		wheelFriction = 1.5f,
		frontEndHealth = 650,
		rearEndHealth = 450,
		seats = 2,

		wheel FrontLeft
		{
			front = true,
			offset = 0.7889 -0.6111 1.3444,
			radius = 0.35f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.7889 -0.6111 1.3444,
			radius = 0.35f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.7889 -0.6333 -1.0444,
			radius = 0.35f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.7889 -0.6333 -1.0444,
			radius = 0.35f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.4222 0.0111 -0.0556,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.1111 -1.0222 -0.3444,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.4222 0.0111 -0.0556,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.0889 -1.0222 -0.3333,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.5333 1.5556 0.7778,
		}

		area TruckBed
		{
			xywh = -0.5556 -2.2667 1.1111 0.7778,
		}

		area Roofrack
		{
			xywh = 0.0000 -0.8667 2.4889 2.6000,
		}

		area Bodykit
		{
			xywh = 1.2889 -1.6444 0.7778 0.7778,
		}

		area SeatFrontLeft
		{
			xywh = 1.2889 0.2000 0.7778 1.0444,
		}

		area SeatFrontRight
		{
			xywh = -1.2889 0.2000 0.7778 1.0444,
		}

		area SeatRearRight
		{
			xywh = -1.2889 -0.9889 0.7778 0.7778,
		}

		area SeatRearLeft
		{
			xywh = 1.2889 -0.9889 0.7778 0.7778,
		}

		area GasTank
		{
			xywh = -0.9778 -2.0889 0.8444 0.4222,
		}

		area TireFrontLeft
		{
			xywh = 1.4667 1.3556 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.4667 1.3556 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.4667 -1.0333 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.4667 -1.0333 0.4222 0.4222,
		}

		template = W460SWBTrunkCompartment,
		template = W460STrunkDoor,
		template = W460EngineDoor,
		template = W460SeatsFront,
		template = W460SDoors,
		template = W460CBumpersFront,
		template = W460SBumpersRear,
		template = W460SRoofracks,
		template = W460SBodykit,
		template = W460SMudflaps,
		template = W460SSpareTires,
		template = W460SArmor,
		template = W460CSnorkel,
		template = W460CGuards,

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

			model w460Sint
			{
				file = W460Sinterior,
				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 lwbtisbat
			{
				file = W640CBattery,
				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 = W460CTires,
		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,

		part HeadlightLeft
		{
			table uninstall
			{
				requireUninstalled = W460Guards,
			}
		}

		part HeadlightRight
		{
			table uninstall
			{
				requireUninstalled = W460Guards,
			}
		}

		template = W460CWindshield,
		template = W460SRearWindshield,
		template = W460SWindows,
		useChassisPhysicsCollision = false,

		physics box
		{
			offset = 0.0000 0.5444 0.1222,
			extents = 1.8000 0.8000 3.9333,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.3000 -0.6222,
			extents = 1.6444 0.7111 2.1111,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.2667 -1.6521,
			extents = 1.6444 0.7333 0.2444,
			rotate = 15.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 1.1889 0.4723,
			extents = 1.6444 0.8444 0.4000,
			rotate = -30.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.4778 -2.0222,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.4667 2.3000,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
