module Base
{
	vehicle en_hon_civicwagon_85
	{
		model
		{
			file = en_hon_civicwagon_85_Base,
			scale = 1.0000,
			offset = 0.0000 0.4500 0.0000,
		}

		skin
		{
			texture = Vehicles/Vehicle_en_hon_civicwagon_85_Ext_Shell,
		}

		textureMask = Vehicles/Vehicle_en_hon_civicwagon_85_Mask,
		textureLights = Vehicles/Vehicle_en_hon_civicwagon_85_Overlay_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_en_hon_civicwagon_85_Overlay_Blood,
		textureDamage2Overlay = Vehicles/Vehicle_en_hon_civicwagon_85_Overlay_Blood,
		textureDamage1Shell = Vehicles/Vehicle_en_hon_civicwagon_85_Overlay_Damage,
		textureDamage2Shell = Vehicles/Vehicle_en_hon_civicwagon_85_Overlay_Damage,
		textureRust = Vehicles/Vehicle_en_hon_civicwagon_85_Overlay_Rust,

		sound
		{
			engine = VehicleEngineSmallCar02,
			engineStart = VehicleEngineSmallCar02,
			engineTurnOff = VehicleEngineSmallCar02,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailSmallCar02,
		}

		extents = 1.4600 1.1000 3.6200,
		physicsChassisShape = 1.4600 1.1000 3.4400,
		centerOfMassOffset = 0.0000 0.5500 0.0000,
		shadowExtents = 1.4673 3.6362,
		shadowOffset = 0.0000 0.0024,
		mechanicType = 1,
		offRoadEfficiency = 1.0,
		playerDamageProtection = 0.9,
		frontEndHealth = 150,
		rearEndHealth = 150,
		mass = 820,
		engineRepairLevel = 4,
		engineForce = 4000,
		engineLoudness = 65,
		engineQuality = 80,
		maxSpeed = 80f,
		brakingForce = 85,
		stoppingMovementForce = 3.0f,
		rollInfluence = 1.0f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 40,
		suspensionCompression = 2.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.6f,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.6300 -0.4800 1.1300,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.6300 -0.4800 1.1300,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.6300 -0.4800 -1.0800,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.6300 -0.4800 -1.0800,
			radius = 0.28f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.3400 -0.1300 0.1300,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.9500 -0.7500 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.3400 -0.1300 0.1300,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.9500 -0.7500 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.3400 -0.1300 -0.7200,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.9700 -0.7500 -0.7600,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.3400 -0.1300 -0.7200,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.9700 -0.7500 -0.7600,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 2.2200 1.4000 0.8200,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.2200 1.4000 0.8200,
		}

		area SeatFrontLeft
		{
			xywh = 1.1400 0.2500 0.8200 0.8200,
		}

		area SeatFrontRight
		{
			xywh = -1.1400 0.2500 0.8200 0.8200,
		}

		area SeatRearLeft
		{
			xywh = 1.1400 -0.6500 0.8200 0.8200,
		}

		area SeatRearRight
		{
			xywh = -1.1400 -0.6500 0.8200 0.8200,
		}

		area GasTank
		{
			xywh = 1.1400 -1.3900 0.8200 0.8200,
		}

		area TireFrontLeft
		{
			xywh = 1.0700 1.1400 0.6800 0.6800,
		}

		area TireFrontRight
		{
			xywh = -1.0700 1.1400 0.6800 0.6800,
		}

		area TireRearLeft
		{
			xywh = 1.0700 -1.1100 0.6800 0.6800,
		}

		area TireRearRight
		{
			xywh = -1.0700 -1.1100 0.6800 0.6800,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 68,
			}
		}

		template = TrunkDoor,

		part TrunkDoor
		{
			model TrunkDoor
			{
				file = en_hon_civicwagon_85_Trunk,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 5.0,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1.0,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

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

			model
			{
				file = en_hon_civicwagon_85_Interior,
			}

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

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

		template = GasTank,

		part GasTank
		{
			mechanicRequireKey = true,
		}

		template = Battery,

		part Battery
		{
			model Battery
			{
				file = en_hon_civicwagon_85_Battery,
			}
		}

		template = Engine,
		template = Muffler,

		part Muffler
		{
			model Muffler
			{
				file = en_hon_civicwagon_85_Muffler,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			model EngineDoor
			{
				file = en_hon_civicwagon_85_Hood,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 5.0,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1.0,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part Heater
		{
			category = engine,

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

		part PassengerCompartment
		{
			category = nodisplay,

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

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearLeft,
		template = Window/part/WindowRearRight,
		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,

		part WindowFrontLeft
		{
			model Default
			{
				file = en_hon_civicwagon_85_WindowFL,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.1,
			}
		}

		part WindowFrontRight
		{
			model Default
			{
				file = en_hon_civicwagon_85_WindowFR,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.1,
			}
		}

		part WindowRearLeft
		{
			model Default
			{
				file = en_hon_civicwagon_85_WindowRL,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.1,
			}
		}

		part WindowRearRight
		{
			model Default
			{
				file = en_hon_civicwagon_85_WindowRR,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.1,
			}
		}

		part Window*
		{
			table install
			{
				recipes = Advanced Mechanics,
			}

			table uninstall
			{
				recipes = Advanced Mechanics,
			}
		}

		part Windshield
		{
			model Default
			{
				file = en_hon_civicwagon_85_Windshield,
			}
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Door/part/DoorRearLeft,
		template = Door/part/DoorRearRight,

		part DoorFrontLeft
		{
			model Default
			{
				file = en_hon_civicwagon_85_DoorFL,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part DoorFrontRight
		{
			model Default
			{
				file = en_hon_civicwagon_85_DoorFR,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part DoorRearLeft
		{
			model Default
			{
				file = en_hon_civicwagon_85_DoorRL,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part DoorRearRight
		{
			model Default
			{
				file = en_hon_civicwagon_85_DoorRR,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part Door*
		{
			table install
			{
				mechanicRequireKey = false,
			}

			table uninstall
			{
				mechanicRequireKey = false,
			}
		}

		template = Tire,

		part Tire*
		{
			model InflatedTirePlusWheel
			{
				file = en_hon_civicwagon_85_Wheel,
			}
		}

		template = Brake,

		part BrakeFrontLeft
		{
			model Default
			{
				file = en_hon_civicwagon_85_BrakeFL,
			}
		}

		part BrakeFrontRight
		{
			model Default
			{
				file = en_hon_civicwagon_85_BrakeFR,
			}
		}

		part BrakeRearLeft
		{
			model Default
			{
				file = en_hon_civicwagon_85_BrakeRL,
			}
		}

		part BrakeRearRight
		{
			model Default
			{
				file = en_hon_civicwagon_85_BrakeRR,
			}
		}

		part Brake*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Radio,
		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 -0.4400 -1.7400,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.3900 1.7000,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
