module Base
{
	model BRDMBase
	{
		mesh = vehicles/Vehicle_BRDM_Body,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}
	model BRDMfrontwheelleft
	{
		mesh = vehicles/Vehicle_BRDM_Wheel_L,
		texture = vehicles/Vehicle_BRDM_GRE,
	}
	model BRDMfrontwheelright
	{
		mesh = vehicles/Vehicle_BRDM_Wheel_R,
		texture = vehicles/Vehicle_BRDM_GRE,
	}
	model BRDMbackwheelleft
	{
		mesh = vehicles/Vehicle_BRDM_Wheel_L,
		texture = vehicles/Vehicle_BRDM_GRE,
	}
	model BRDMbackwheelright
	{
		mesh = vehicles/Vehicle_BRDM_Wheel_R,
		texture = vehicles/Vehicle_BRDM_GRE,
	}
	vehicle BRDM
	{
		mechanicType = 2,
		offRoadEfficiency = 100,
		engineRepairLevel = 5,
		playerDamageProtection = 10.0,

		model
		{
			file = BRDMBase,
			scale = 1.6600,
			7500,
			offset = 0.0000 0.1446 0.0000,
		}

		skin
		{
			texture = Vehicles/Vehicle_BRDM_GRE,
		}

		textureMask = Vehicles/Vehicle_BRDM_Mask,
		textureLights = Vehicles/Vehicle_BRDM_lights,
		textureDamage1Overlay = Vehicles/Vehicle_BRDM_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_BRDM_DAMAGE2,
		textureDamage1Shell = Vehicles/Vehicle_BRDM_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_BRDM_DAMAGE2,
		textureRust = Vehicles/Vehicle_BRDM_Rust,

		sound
		{
			engine = VehicleEngineOffRoad,
			engineStart = start_engine_GAZ66,
			engineTurnOff = engine_off_GAZ66,
			horn = horn_ZIL,
			ignitionFail = fail_start_engine_GAZ66,
		}

		extents = 1.1928 0.6506 2.9277,
		mass = 1000,
		physicsChassisShape = 1.0843 1.0000 2.7831,
		centerOfMassOffset = 0.0000 0.2590 0.0000,
		shadowExtents = 1.0865 2.6086,
		shadowOffset = 0.0000 -0.0106,
		engineForce = 3500,
		engineQuality = 50,
		engineLoudness = 100,
		maxSpeed = 40f,
		gearRatioCount = 4,
		gearRatioR = 8.09,
		gearRatio1 = 7.44,
		gearRatio2 = 5.29,
		gearRatio3 = 4,
		brakingForce = 35,
		rollInfluence = 0.5f,
		steeringIncrement = 0.02,
		steeringClamp = 0.4,
		suspensionStiffness = 100,
		suspensionCompression = 1.80,
		suspensionDamping = 0.1,
		maxSuspensionTravelCm = 3,
		suspensionRestLength = 0.1,
		wheelFriction = 1.0f,
		frontEndHealth = 50000,
		rearEndHealth = 50000,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.4458 -0.1446 0.7590,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.4337 -0.1446 0.7590,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.4458 -0.1446 -0.8434,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.4337 -0.1446 -0.8434,
			radius = 0.3f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2410 0.3614 0.8012,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.8795 -0.4639 0.6024,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2410 0.3614 0.8012,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8735 -0.4639 0.6024,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1446 0.0602 -0.2831,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6265 -0.4096 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1687 0.0602 -0.2831,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6325 -0.4036 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 -1.6265 0.5422 0.3253,
		}

		area SeatFrontLeft
		{
			xywh = 0.8133 0.5422 0.4337 0.4217,
		}

		area SeatFrontRight
		{
			xywh = -0.8133 0.5422 0.4337 0.4217,
		}

		area SeatRearRight
		{
			xywh = -0.3373 0.1566 0.0482 0.4819,
		}

		area SeatRearLeft
		{
			xywh = 0.3795 0.1566 0.0482 0.4819,
		}

		area GasTank
		{
			xywh = 0.2711 -1.5964 0.2530 0.2651,
		}

		area TireFrontLeft
		{
			xywh = 0.8012 0.7229 0.4337 0.4337,
		}

		area TireFrontRight
		{
			xywh = -0.8012 0.7229 0.4337 0.4337,
		}

		area TireRearLeft
		{
			xywh = 0.8012 -0.8434 0.4337 0.4337,
		}

		area TireRearRight
		{
			xywh = -0.8012 -0.8434 0.4337 0.4337,
		}

		template = EngineDoor,

		part EngineDoor
		{
			itemType = ProjectRussia.brdmHood,
			mechanicRequireKey = false,
			repairMechanic = true,
		}

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

		part Seat*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}
		}

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

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

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

		template = GasTank,

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

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

		template = Battery,
		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 = Windshield/part/Windshield,
		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template! = BRDM_ATA2Bullbar,

		part DoorFrontLeft
		{
			category = door,
			itemType = ProjectRussia.brdmDoorFrontLeft,
		}

		part DoorFrontRight
		{
			category = door,
			itemType = ProjectRussia.brdmDoorFrontRight,
		}

		template = Tire,

		part TireFrontLeft
		{
			itemType = ProjectRussia.brdmTire,

			model InflatedTirePlusWheel
			{
				file = BRDMfrontwheelleft,
			}
		}

		part TireFrontRight
		{
			itemType = ProjectRussia.brdmTire,

			model InflatedTirePlusWheel
			{
				file = BRDMfrontwheelright,
			}
		}

		part TireRearLeft
		{
			itemType = ProjectRussia.brdmTire,

			model InflatedTirePlusWheel
			{
				file = BRDMbackwheelleft,
			}
		}

		part TireRearRight
		{
			itemType = ProjectRussia.brdmTire,

			model InflatedTirePlusWheel
			{
				file = BRDMbackwheelright,
			}
		}

		template = Brake,

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

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

		template = Suspension,

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

			table uninstall
			{
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
			}
		}

		template = Headlight,
		template = Radio,

		part Radio*
		{
			itemType = Radio.HamRadio2,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.0120 1.4518,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
