module Base
{
	model 49ford8NBase
	{
		mesh = vehicles/Vehicles_49ford8N_Body|ford8N_body,
		shader = damn_vehicle_shader,
		scale = 0.1,
	}
	model 49ford8NMuff
	{
		mesh = vehicles/Vehicles_49ford8N_Body|ford8N_exhaust,
		shader = damn_vehicle_shader,
		scale = 0.1,
	}
	model 49ford8NTISbattery
	{
		mesh = vehicles/Vehicles_49ford8N_Body|TIS_CarBattery,
		shader = damn_vehicle_shader,
		scale = 0.1,
	}
	vehicle 49ford8N
	{
		mechanicType = 2,
		offRoadEfficiency = 1.5,
		engineRepairLevel = 4,
		playerDamageProtection = 1.1,

		model
		{
			file = 49ford8NBase,
			scale = 0.9000,
			offset = 0.0000 0.4889 0.0556,
		}

		skin
		{
			texture = Vehicles/Vehicles_49ford8N_Shell,
		}

		textureRust = Vehicles/Vehicles_49ford8N_Rust,
		textureMask = Vehicles/Vehicles_49ford8N_Mask,
		textureLights = Vehicles/Vehicles_49ford8N_Lights,
		textureDamage1Shell = Vehicles/Vehicles_49ford8N_Shell_Damage1,
		textureDamage2Shell = Vehicles/Vehicles_49ford8N_Shell_Damage2,
		textureDamage1Overlay = Vehicles/Vehicles_49ford8N_Overlays_Blood1,
		textureDamage2Overlay = Vehicles/Vehicles_49ford8N_Overlays_Blood1,
		textureShadow = Vehicles/Vehicles_49ford8N_Shadow,

		sound
		{
			engine = VehicleEngineSmallCar,
			engineStart = VehicleEngineSmallCar,
			engineTurnOff = VehicleEngineSmallCar,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailSmallCar,
		}

		extents = 1.4444 1.3111 2.7111,
		mass = 397,
		physicsChassisShape = 1.4444 1.3111 2.7111,
		centerOfMassOffset = 0.0000 0.8889 0.0333,
		shadowExtents = 3.5652 3.4816,
		shadowOffset = -0.0032 0.0191,
		engineForce = 2500,
		gearRatioCount = 3,
		gearRatioR = 3.50,
		gearRatio1 = 3.0,
		gearRatio2 = 3.0,
		gearRatio3 = 3.0,
		maxSpeed = 12f,
		engineLoudness = 77,
		engineQuality = 55,
		brakingForce = 30,
		stoppingMovementForce = 4.0f,
		rollInfluence = 0.95f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 60,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.20f,
		wheelFriction = 3.0f,
		frontEndHealth = 165,
		rearEndHealth = 150,
		seats = 1,

		wheel FrontLeft
		{
			front = true,
			offset = 0.6556 -0.3222 0.9667,
			radius = 0.35f,
			width = 0.11f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.6556 -0.3222 0.9667,
			radius = 0.35f,
			width = 0.11f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.6444 -0.1222 -0.8556,
			radius = 0.60f,
			width = 0.38f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.6444 -0.1222 -0.8556,
			radius = 0.60f,
			width = 0.38f,
		}

		template! = PassengerCommon,

		passenger FrontLeft
		{
			door = DoorFrontLeft,
			area = SeatFrontLeft,
			showPassenger = true,
			hasRoof = false,

			position inside
			{
				offset = 0.0000 0.4222 -0.6222,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.1111 -0.5556 -0.1556,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		area Engine
		{
			xywh = -1.1333 0.5000 0.8222 1.3556,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.7111 1.4444 0.7778,
		}

		area SeatFrontLeft
		{
			xywh = 1.1111 0.2778 0.7778 0.9111,
		}

		area GasTank
		{
			xywh = 0.0000 1.7667 0.4222 0.4222,
		}

		area TireFrontLeft
		{
			xywh = 1.3444 1.0444 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.3444 1.0444 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.5000 -0.7889 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.5000 -0.7889 0.4222 0.4222,
		}

		template = F8NTrunkCompartment,
		template = F8NTrunkDoor,
		template = F8NSeat,
		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}

			uninstall
			{
				skills = Mechanics:7,
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,

		part Battery
		{
			model forn8NBat
			{
				file = 49ford8NTISbattery,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model forn8NMuff
			{
				file = 49ford8NMuff,
			}

			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = F8NEngineDoor,

		part Heater
		{
			category = engine,

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

		part PassengerCompartment
		{
			category = nodisplay,

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

		template = F8NWindows,
		template = F8NDoors,
		template = F8NTires,
		template = F8NBumpers,
		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,

		attachment trailer
		{
			offset = 0.0000 -0.0667 -1.4889,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.0444 1.4667,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
