module Base
{
	model URAL_NSTBase
	{
		mesh = vehicles/Vehicle_URAL_NST_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}
	model URALfrontwheelleft
	{
		mesh = vehicles/Vehicle_URAL_Wheel_FRONT,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model URALfrontwheelright
	{
		mesh = vehicles/Vehicle_URAL_Wheel_FRONT,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model URALbackwheelleft
	{
		mesh = vehicles/Vehicle_URAL_Wheel_REAR,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	model URALbackwheelright
	{
		mesh = vehicles/Vehicle_URAL_Wheel_REAR,
		texture = vehicles/Vehicle_URAL_wheel,
	}
	vehicle URAL_NST
	{
		mechanicType = 2,
		offRoadEfficiency = 100,
		engineRepairLevel = 5,
		playerDamageProtection = 10,

		model
		{
			file = URAL_NSTBase,
			scale = 1.4000,
			7500,
			offset = 0.0201 0.0738 0.0000,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_BLU,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_GRY,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_YEL,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_ORG,
		}

		skin
		{
			texture = Vehicles/Vehicle_URAL_BEZ,
		}

		textureMask = Vehicles/Vehicle_URAL_MIL_Mask,
		textureLights = Vehicles/Vehicle_URAL_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_URAL_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_URAL_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_URAL_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_URAL_Damage2,
		textureRust = Vehicles/Vehicle_URAL_Rust,

		sound
		{
			engine = VehicleEngineStepVan,
			engineStart = VehicleEngineStepVan,
			engineTurnOff = VehicleEngineStepVan,
			horn = VehicleHornVan,
			ignitionFail = VehicleIgnitionFailSUV,
		}

		extents = 1.3423 0.5235 4.0671,
		mass = 1100,
		physicsChassisShape = 1.4362 0.5369 4.0671,
		centerOfMassOffset = 0.0201 -0.1007 0.1141,
		shadowExtents = 1.2054 3.8613,
		shadowOffset = 0.0201 0.1304,
		engineForce = 6500,
		engineQuality = 50,
		engineLoudness = 130,
		maxSpeed = 30f,
		brakingForce = 45,
		rollInfluence = 0.4f,
		steeringIncrement = 0.8,
		steeringClamp = 0.2,
		suspensionStiffness = 60,
		suspensionCompression = 2.75,
		suspensionDamping = 2.95,
		maxSuspensionTravelCm = 5,
		suspensionRestLength = 0.2,
		wheelFriction = 0.8f,
		frontEndHealth = 250,
		rearEndHealth = 500,
		seats = 2,

		physics box
		{
			offset = 0.0000 0.7651 1.2886,
			extents = 1.4161 0.8926 1.6040,
			rotate = 0.0000 0.0000 0.0000,
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.5638 -0.2752 1.3826,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.5570 -0.2752 1.3826,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.0000 -0.2752 -1.4027,
			radius = 0.3f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = 0.0000 -0.2752 -0.6309,
			radius = 0.3f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2685 0.3691 0.6779,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.0201 -0.4765 0.7651,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2550 0.3758 0.6779,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.9933 -0.4765 0.7651,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0268 2.3691 0.5503 0.4295,
		}

		area TruckBed
		{
			xywh = -0.8792 0.3356 0.3490 0.4027,
		}

		area SeatFrontLeft
		{
			xywh = 0.9597 0.8389 0.4295 0.4698,
		}

		area SeatFrontRight
		{
			xywh = -0.9195 0.8389 0.4295 0.4698,
		}

		area GasTank
		{
			xywh = 0.9597 0.2617 0.4295 0.4295,
		}

		area TireFrontLeft
		{
			xywh = 0.9597 1.4564 0.4295 0.4295,
		}

		area TireFrontRight
		{
			xywh = -0.9195 1.4564 0.4295 0.4295,
		}

		area TireRearLeft
		{
			xywh = 0.9597 -0.5369 0.4295 0.4295,
		}

		area TireRearRight
		{
			xywh = -0.9195 -1.2886 0.4295 0.4295,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 20,
			}
		}

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

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

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

		template = GloveBox,

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

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

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

		template = GasTank,

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

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

		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			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,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = URALfrontwheelleft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = URALfrontwheelright,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = URALbackwheelleft,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = URALbackwheelright,
			}
		}

		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,

		template vehicle
		{
			part TCLConfig
			{
				category = nodisplay,

				table TCLConfig
				{
					trailerOutside = false,
				}
			}
		}

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